genmux API is now generally available. Read the docs →
genmux API

Every model,one API key.

genmux API is one image and chat models API: one key, one balance, every model.

Pay per image or per token, in credits. OpenAI-compatible chat, async image jobs with webhooks, failed jobs refunded.

Per image or per 1M tokens, at the Scale pack rate. Failed image jobs are refunded; chat is billed on actual usage.

Popular and best-value models

The models people start with, plus the ones with the biggest verified saving against their maker's list price.

Savings compare our price at the Scale pack rate with the maker's published list price on a 75 % input / 25 % output mix; list prices checked September 6, 2026.

Works with your coding agent

One key, one OpenAI-compatible endpoint with tool calling; paste a verified config and pick a model with tools: true.

OpenCode · Aider · Cline · Roo Code · Continue

Set up your coding agent →

Tool calling for coding agents

POST /v1/chat/completions with OpenAI function calling — tools, tool_choice, streamed tool_calls — so OpenCode, Aider, Cline and Continue run on DeepSeek, Qwen3 and Doubao unchanged.

Async image jobs with webhooks

Submit a generation, get a job id back instantly, and get notified the moment it finishes — no polling required.

Exactly-once billing, one balance

Images are charged when the job succeeds and refunded on failure; chat is settled on the tokens actually used. One credit balance for both.

Keys, limits, allowlists

Scope API keys per project with request-per-second limits and CIDR allowlists you control from the dashboard.

Two requests.
One image — or one reply.

Submit a job, poll for the result. Every response below is real — copy the commands with your key and they run as-is.

One request, streamed back token by token. The last chunk carries the token usage and the cost in credits — the same shape the OpenAI SDK already understands.

Full API reference →
  1. 01 · Submit the jobt + 0 ms

    curl -s -X POST https://api.genmux.tech/v1/generations \
      -H "Authorization: Bearer $API_KEY" \
      -H "Idempotency-Key: $(uuidgen)" \
      -H "Content-Type: application/json" \
      -d '{"model":"nanobanana","prompt":"a red fox in snow","resolution":"1K","ratio":"1:1"}'
  2. 02 · Accepted — you hold the job idt + 41 ms

    202 Accepted
    {
      "id": "0d8b6a3e-2f1c-4a5b-9c1d-7e2f3a4b5c6d",
      "model": "nanobanana",
      "status": "queued",
      "cost": 2
    }
  3. 03 · Poll, or wait for the webhookt + 1 s

    curl -s https://api.genmux.tech/v1/generations/0d8b6a3e-2f1c-4a5b-9c1d-7e2f3a4b5c6d \
      -H "Authorization: Bearer $API_KEY"
  4. 04 · Done — the image is at the URLt + 52 s

    200 OK
    {  "id": "0d8b6a3e-2f1c-4a5b-9c1d-7e2f3a4b5c6d",  "model": "nanobanana",  "status": "succeeded",  "cost": 2,  "images": [{ "url": "https://…/0.png?X-Amz-Expires=900", "width": 1024, "height": 1024 }]}

Models

Every model behind the same key and the same balance. Image prices are credits per image; text prices are credits per 1M tokens, input and output.

Image models

Nano Banana API

Google's fast Gemini image model: general-purpose text-to-image and image-to-image at 1K with reference-image input — the lowest price per image in the catalogue.

from $0.025/image · 2 credits

Nano Banana API — pricing and quick start →

Nano Banana Pro API

Google's higher-fidelity Gemini image model: more detail and closer prompt adherence, with 1K, 2K and 4K output for hero shots and print-sized crops.

from $0.05/image · 4 credits

Nano Banana Pro API — pricing and quick start →

Qwen-Image 2.0 API

Alibaba's Qwen-Image 2.0: strong at rendering legible text inside images, including Chinese, and at illustration styles; 1K and 2K output with reference-image input.

from $0.038/image · 3 credits

Qwen-Image 2.0 API — pricing and quick start →

Qwen-Image Max API

The flagship of Alibaba's Qwen-Image line: the highest-fidelity tier for photoreal and text-heavy compositions, with 1K and 2K output and reference-image input.

from $0.10/image · 8 credits

Qwen-Image Max API — pricing and quick start →

Seedream 5.0 API

ByteDance's Seedream 5.0: a high-resolution model for photoreal frames and in-image text, served at 2K and 4K, with reference-image input.

from $0.20/image · 16 credits

Seedream 5.0 API — pricing and quick start →

Wan 2.7 Image API

Alibaba's Wan 2.7 Image (Tongyi Wanxiang): fast, low-cost text-to-image and reference-image generation at 1K and 2K — for previews and bulk generation.

from $0.025/image · 2 credits

Wan 2.7 Image API — pricing and quick start →

Text models

All 10 text models →

Simple, credit-based pricing

Buy a credit pack once, spend it as you generate. No subscriptions, no surprise invoices.

Starter

$9

500 credits

≈ 250 HD images

Buy Starter

Pro

$45

3,000 credits

≈ 1,500 HD images

Buy Pro

Scale

Best value

$150

12,000 credits

≈ 6,000 HD images

Buy Scale

How it works

01

Create an API key

Sign up, verify your email, and generate a scoped key from the dashboard.

02

Submit a generation

POST a prompt to /v1/generations for an image, or messages to /v1/chat/completions for a reply — the same key for both.

03

Poll, stream or get webhooked

Poll the image job or wait for the webhook; read chat replies as they stream. Usage and cost come back with every result.

One key. Every image and chat model.

Sign up, create an API key and send the first request in minutes — pay per image or per token, no subscription.