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

Blog

One API key for every image model

1 min readWritten by Unified Image API


Every image-generation provider ships its own SDK, its own auth scheme, its own polling contract and its own invoice. Wire up three of them and you are keeping three integrations alive, rotating three sets of credentials, and still have no single number telling you what image generation cost you last month.

Unified Image API collapses that into one endpoint. One API key, one credit balance, and switching models is a single field in the request body.

bash
curl -X POST "$API_BASE/v1/generations" \
  -H "Authorization: Bearer $UIA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"nanobanana","prompt":"a brass sextant on graph paper","resolution":"1K","ratio":"1:1"}'

Exactly-once billing

Credits are reserved the moment you submit a job and captured only when it succeeds. Failed and cancelled jobs are refunded automatically — no support ticket, no month-end reconciliation. Every request accepts an idempotency key, so a retry after a dropped connection resolves to the original job instead of generating and billing a second image.

Async by default

Generation is a job, not a blocking request. POST /v1/generations returns 202 Accepted with an id; poll GET /v1/generations/{id} or register a webhook and we will call you once, with signed payloads and retries with backoff until you answer 2xx. Presigned download URLs are valid for fifteen minutes and can be re-issued at any time.

Cards and crypto

Credits are prepaid. Buy a pack with a card, or deposit USDT and have the balance credited on confirmation — the same balance, the same per-model prices, no separate plan tiers.

Start with the API reference, or read what Nano Banana costs per image and how it handles prompts.

About the author

Written by Unified Image API — genmux API.

More about us