Skip to navigation

BeatAPI Image API

View as Markdown

Create one asynchronous image generation task with a stable BeatAPI model ID.

Model names tell you how a model is billed. -beta is a line at a fixed price per image. The official versions are billed per token: the bare name for GPT Image 2.6 (for example gpt-image-2.6-flare) and -std for older families (for example gpt-image-2-std). The quality option is accepted on the official GPT Image versions, on flux-3.1-image (quality or fast) and on mj-v8.2 (hd). seedream-5.5 is the official Seedream 5.5, billed per output image plus each reference image; seedream-5.5-beta charges a fixed price per output image and reference images are free.

ModelInput modesRequired fieldsMain controls
qwen-image-2.1Text, reference imagesmodel, promptUp to 10 references, 1K/2K, transparent PNG/WebP, conditional prompt enhancement
nano-bananaText, reference imagesmodel, promptUp to 3 references, fixed 1K, PNG/JPEG output
nano-banana-2Text, reference imagesmodel, promptUp to 14 references, 1K/2K/4K, PNG/JPEG output
nano-banana-2-stdText, reference imagesmodel, promptnano-banana-2 billed by tokens; asynchronous only
nano-banana-2.1Text, reference imagesmodel, promptSame fields as Nano Banana 2, at lower per-image prices. Up to 14 references, 1K/2K/4K, PNG/JPEG output
nano-banana-2-liteText, reference imagesmodel, promptUp to 14 references, fixed 1K, PNG/JPEG output
nano-banana-2-lite-stdText, reference imagesmodel, promptnano-banana-2-lite billed by tokens; asynchronous only
nano-banana-proText, reference imagesmodel, promptUp to 14 references, 1K/2K/4K, PNG/JPG output
nano-banana-pro-stdText, reference imagesmodel, promptnano-banana-pro billed by tokens; asynchronous only
gpt-image-2Text, reference imagesmodel, promptUp to 16 references, broad aspect ratios, up to 4K
gpt-image-2-stdText, reference imagesmodel, promptgpt-image-2 billed by tokens, with quality; asynchronous only
gpt-image-2.5-flareText, reference imagesmodel, promptUp to 16 references, 16 aspect ratios, up to 4K
gpt-image-2.5-flare-stdText, reference imagesmodel, promptgpt-image-2.5-flare billed by tokens, with quality; asynchronous only
gpt-image-2.5-sunburstText, reference imagesmodel, promptUp to 16 references, 16 aspect ratios, up to 4K
gpt-image-2.5-sunburst-stdText, reference imagesmodel, promptgpt-image-2.5-sunburst billed by tokens, with quality; asynchronous only
gpt-image-2.6-flareText, reference imagesmodel, promptBilled by tokens, with quality; up to 16 references, up to 4K; animated GIF with a chosen frame size
gpt-image-2.6-sunburstText, reference imagesmodel, promptBilled by tokens, with quality; up to 16 references, up to 4K; animated GIF with a chosen frame size
gpt-image-2.6-flare-betaText, reference imagesmodel, promptFixed price: up to 16 references, 16 aspect ratios, up to 4K; animated GIF from a prompt
gpt-image-2.6-sunburst-betaText, reference imagesmodel, promptFixed price: up to 16 references, 16 aspect ratios, up to 4K; animated GIF from a prompt
seedream-5-proText, reference imagesmodel, promptUp to 10 references, 1K/2K
seedream-5-liteText, reference imagesmodel, promptUp to 6 references, 2K only
seedream-5.5Text, reference imagesmodel, promptOfficial version: up to 10 references, 1K/1.5K/2K; layers: true splits one image into transparent PNG layers
seedream-5.5-betaText, reference imagesmodel, promptFixed price, free references: up to 10 references, 1K/1.5K/2K
minimax-h3-imageText, reference imagesmodel, promptBilled by tokens; up to 16 references, 1K/2K/4K (default 4K) or an exact size, png/jpeg/webp
minimax-h3-image-highspeedText, reference imagesmodel, promptThe Highspeed line of minimax-h3-image: same request, higher image-input and image-output rates
kling-image-v4Text, reference imagesmodel, promptUp to 10 reference images and named elements together, 2K/4K/8K, 1–9 images per task
grok-imagine-image-2.0Text, reference imagesmodel, promptUp to 5 references, automatic edit-mode selection
muse-imageText, reference imagesmodel, promptUp to 10 references, one native size per ratio (about 2.5 MP), no resolution tier
mj-v8.2Text, image prompts, follow-ups on earlier resultsmodel, promptFour images per call, action for variation, upscale, reroll, retexture, edit, blend and describe; fast or relax, hd
flux-3.1-imageText, reference imagesmodel, promptUp to 10 references, 1K/2K/4K, quality or fast mode, JPEG/PNG

Open the matching model page for every field, default, enum, combination rule, request example, response, and error behavior.

Choose a model by task

Find the task, send the fields in the second column, and pick one of the models in the third. The last column is the highest resolution among the models in that row; the table above gives each model’s own limits.

TaskFields to sendModelsHighest resolution
Text to imagemodel, promptAll models above8K
Edit or combine reference imagesmodel, prompt, imagesAll models above8K
Exact pixel sizemodel, prompt, sizegpt-image-2, gpt-image-2-std, gpt-image-2.5-flare, gpt-image-2.5-flare-std, gpt-image-2.5-sunburst, gpt-image-2.5-sunburst-std, gpt-image-2.6-flare, gpt-image-2.6-flare-beta, gpt-image-2.6-sunburst, gpt-image-2.6-sunburst-beta, minimax-h3-image, minimax-h3-image-highspeed4K
Transparent backgroundmodel, prompt, backgroundgpt-image-2, gpt-image-2-std, gpt-image-2.5-flare, gpt-image-2.5-flare-std, gpt-image-2.5-sunburst, gpt-image-2.5-sunburst-std, qwen-image-2.14K
Choose the output qualitymodel, prompt, qualitygpt-image-2-std, gpt-image-2.5-flare-std, gpt-image-2.5-sunburst-std, gpt-image-2.6-flare, gpt-image-2.6-sunburst, flux-3.1-image4K
Animated GIFmodel, prompt, output_format set to gifgpt-image-2.6-flare, gpt-image-2.6-flare-beta, gpt-image-2.6-sunburst, gpt-image-2.6-sunburst-beta4K
Several images in one taskmodel, prompt, nkling-image-v48K
Named elements with referencesmodel, prompt, elementskling-image-v48K
Prompt enhancementmodel, prompt, enhance_promptqwen-image-2.12K

Model names

NameWhat it meansBillingExamples
No suffix, older familiesThe fixed-price line of a model.One flat price per image, by size.gpt-image-2, nano-banana-2, seedream-5-pro
-stdThe same model and request, sold by tokens.Per token. quality is accepted on the GPT Image ones.gpt-image-2-std, nano-banana-2-std
No suffix, GPT Image 2.6 and MiniMax H3 ImageThe official versions.Per token.gpt-image-2.6-flare, minimax-h3-image
No suffix, Seedream 5.5The official version.One price per output image by size, plus a price for each reference image.seedream-5.5
-betaThe fixed-price line of GPT Image 2.6 and Seedream 5.5.A fixed price per image by size, and one price per GIF on GPT Image 2.6. Reference images are free on Seedream 5.5.gpt-image-2.6-flare-beta, seedream-5.5-beta
-highspeedThe same request as minimax-h3-image, at higher image-input and image-output rates.Per token.minimax-h3-image-highspeed

Check GET /v1/pricing for the current price of any of them.

List available models

GET /v1/media/models

ParameterLocationTypeRequiredAllowed values
media_typeQuerystringNoimage, video

This public endpoint does not require authentication.

curl "https://api.beatapi.io/v1/media/models?media_type=image"
{
"data": {
"object": "list",
"data": [
{
"id": "gpt-image-2",
"object": "generation_model",
"name": "GPT Image 2",
"media_type": "image",
"input_modes": ["text", "image"]
},
{
"id": "gpt-image-2.5-flare",
"object": "generation_model",
"name": "GPT Image 2.5 Flare",
"media_type": "image",
"input_modes": ["text", "image"]
},
{
"id": "gpt-image-2.5-sunburst",
"object": "generation_model",
"name": "GPT Image 2.5 Sunburst",
"media_type": "image",
"input_modes": ["text", "image"]
}
]
}
}
FieldTypeMeaning
idstringStable public model alias
objectstringgeneration_model
namestringDisplay name
media_typestringimage or video
input_modesstring[]Any of text, image, frames, reference
requires_topupbooleantrue: the model is refused with 403 forbidden until the account’s first top-up. false: at least one tier is open before it, not every call

Each entry also carries contract_version, availability, availability_checked_at, input_schema (the request contract of the model), output_type, price_key, validation_state and validated_at. Internal provider routing is not part of the public contract.

Shared create contract

POST /v1/images/tasks

Image tasks use https://api.beatapi.io. From Asia, if requests to it drop the connection or time out, use the Asia-optimized route https://api-asia.beatapi.io: same key, same paths, and it also serves file uploads (/v1/files) and task queries (/v1/tasks).

HeaderTypeRequiredRules
AuthorizationstringYesBearer <BEATAPI_API_KEY>
Content-TypestringYesapplication/json
Idempotency-KeystringNo, recommendedUp to 255 characters; one key per logical create

The body must match exactly one model schema. model is the discriminator; unknown fields are rejected.

curl https://api.beatapi.io/v1/images/tasks \
-X POST \
-H "Authorization: Bearer $BEATAPI_API_KEY" \
-H "Idempotency-Key: image-gpt-image-2-001" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-image-2",
"prompt": "Editorial product photograph on a warm stone pedestal.",
"aspect_ratio": "1:1",
"resolution": "1K"
}'

A valid request returns 201 Created with data.id, task_kind="image", the selected model, status="queued", usage metrics, and request_id. Poll GET /v1/tasks/{task_id}, waiting data.poll_after_seconds between calls, until succeeded or failed; successful image is in data.output.media[] and data.output.url.

An exact idempotent replay returns the accepted task. Reusing a key with a different body returns 409 idempotency_conflict.

Shared errors

HTTPCommon codeClient action
400bad_requestFix fields, values, combinations, counts, or media URLs
400content_policy_violationChange the prompt or input; do not resend unchanged
401missing_api_key / invalid_api_keySend the Bearer key, or replace a wrong, expired, disabled, or exhausted one
402insufficient_creditsTop up before creating a new task
403forbiddenNot allowed for this key or account — for example a model not available on free credit
409idempotency_conflictReuse the key only with the exact same body
429rate_limit_exceededHonor Retry-After
500internal_errorRetry once with backoff
503processing_unavailable / processing_timeout / processing_failed / result_transfer_failedRetry with backoff; nothing was charged

Error responses include error.code, an English error.message, error.retryable, error.request_id, and error.retry_after_seconds on a 429. A task that fails after it was accepted is still read with 200: see data.error_code and Errors for every code and retry rule. The per-model pages below are the production request contracts.