# imgnAI Katana API Compact Integration Guide for LLMs This document is for an LLM or coding agent seeking to integrate text/image/video AI via imgnAI. It keeps the important auth, payment, response-shape, media, and model-catalog rules in one compact file. The documentation site's top-nav `Copy for LLMs` button copies this same `/llms.txt` content. For full machine-readable current model metadata, call `GET /v1/models`. Individual model-card `Copy for LLMs` buttons prepend exact selected model details and examples, then include a compact shared API overview. imgnAI's API generates images, videos, and text/LLM completions from prompts, media references, input clips, and multimodal chat messages on models that support them. Public API calls must use HTTPS JSON requests. Do not call public endpoints with `http://` URLs. Image and video generation uses `/v1/generation-requests` for batches; single-request aliases are `/v1/images/generations` and `/v1/videos/generations`. Text models use `/v1/chat/completions`. Paid generation endpoints accept either an imgnAI API key/credit balance or x402 stablecoin payment. ## Service URLs and Account Setup - Base URL for this deployment: `https://kat.imgnai.com` - Public API calls must use HTTPS. If an integration ever sees an `http://` Katana base URL, replace it with `https://` before making calls. - Agent/bot routing: use only `https://kat.imgnai.com` for automated workflows, API calls, x402 payments, one-shot model requests, wallet balance top-ups, polling, and discovery. All other imgnAI endpoints are Cloudflare-protected browser/web-app surfaces and should not be accessed by agents or bots. - Do not direct agents to `https://imgnai.com`, `https://app.imgnai.com`, or any other imgnAI web/app domain. For credits/API-key accounts, the human user must log in there themselves and generate an API key and secret at https://app.imgnai.com/katana-api; agents should only use credentials the user supplies. - Human web app and credits: https://app.imgnai.com - API keys: https://app.imgnai.com/katana-api - Reference price used for rough USD estimates: $0.0052 per credit, based on Platinum Annual pricing. - Text model token prices shown in this guide are as of 2026-11-07 13:00:00 UTC. - For external/third-party text models, the service continually monitors partner-network pricing and prefers the lowest-cost qualified route available for each model, so callers receive the best current rate we can offer. Credits-based account setup and funding: - To use a credits-based account, the human user creates or opens their account at https://app.imgnai.com; login supports Google, Discord, Telegram, Twitter/X, Farcaster, or any Web3 wallet. - After signing in, the user can select `Manage Subscription` or `Get Credits` to top up with PayPal, credit card, debit card, Apple Pay, Google Pay, and other supported payment channels. - The user selects `API` or opens https://app.imgnai.com/katana-api to create API keys and view prompt and credit usage history. - To check a standard account credit balance by API, call `GET /v1/me/balance` with the account API key and secret. Text/OpenAI-compatible clients may use `Authorization: Bearer :`; other clients may use `X-API-Key` plus `X-API-Secret`. The response returns `credits` as a decimal string, so a Balance Service value of `2000` means `200.0` platform credits. - Prompt/result history can be switched off from the API page. Historical prompts and results are retained for a maximum of 72 hours after generation. x402 setup and funding: - x402 does not require an imgnAI web account or API key. Call `https://kat.imgnai.com` directly for one-shot payments, paid model requests, `POST /v1/x402/top-up`, balance checks, and discovery. Use a wallet funded with USDC on Base, Solana, or Monad, or MUSD on Mezo. - July 2026 x402 migration note: Base and Solana x402 settlement is Coinbase-facilitated, Mezo settlement is Mezo-facilitated, and Monad still uses imgnAI's local facilitator. Existing clients that added imgnAI gas/network overhead to Base or Solana payments must stop doing that and pay the exact returned `accept.amount`. For Base/Solana/Mezo, `extensions.imgnai.payment.accepts[].estimatedGasUsd` is `0.000000`; Monad may include local settlement overhead. Mezo amounts are 18-decimal atomic MUSD, not 6-decimal USDC. - Solana migration note: do not set the Solana transaction fee payer to `accept.payTo` and do not expect imgnAI to co-sign a payTo/oracle fee payer. Use `accept.extra.feePayer` as the transaction fee payer, keep `accept.payTo` as the USDC token recipient owner, and copy the selected `accepted` object unchanged into the paid retry. `accept.extra.recentBlockhash` may be absent; do not require a server-provided blockhash. - For one-request x402 payment, call the API endpoint without credentials, decode `PAYMENT-REQUIRED`, pay the exact returned Base USDC, Solana USDC, Mezo MUSD, or Monad USDC requirement, then retry with `PAYMENT-SIGNATURE`. This works well for throwaway test scripts or scripts intentionally run exactly once. - For production, long-lived, repeated, multi-model, or multi-call workflows, prefer topping up an imgnAI x402 wallet balance with `POST /v1/x402/top-up` and an `amount_usdc`, then send `X-Sign-In-With-X` on future requests. This avoids creating a new onchain payment for every inference request and lets text calls refund unused reserve back to the same balance. - Good practice before any x402-paid request: check whether the wallet already has backend-stored imgnAI x402 balance. Create a fresh `X-Sign-In-With-X` proof and call `GET /v1/x402/balance/{walletAddress}` before starting the generation/text request. - If existing onsite wallet balance covers the request, submit the generation/text request with `X-Sign-In-With-X` and no `PAYMENT-SIGNATURE` so imgnAI spends stored balance instead of creating a new onchain payment. - If the wallet balance covers a request, do not send `PAYMENT-SIGNATURE`: imgnAI does not charge the wallet onchain again and does not add settlement gas. It debits only the model/request subtotal or text reserve from the onsite wallet balance. - x402 wallet balance is tied to the settled payer wallet, network, and token asset. Read it with `GET /v1/x402/balance/{walletAddress}`. ## Authentication and x402 Payment Standard account billing uses API key headers. Do not place these credentials in the JSON body. ```http X-API-Key: X-API-Secret: ``` Text/OpenAI-compatible clients may use one combined bearer token: ```http Authorization: Bearer : ``` Anonymous paid calls use x402 instead of API keys. x402 follows the HTTP 402 flow: first call the endpoint without credentials, receive a `402 Payment Required` response, build and sign one of the returned stablecoin payment options, then retry the exact same request with the Base64 JSON payment payload in the `PAYMENT-SIGNATURE` header. imgnAI only starts processing after the x402 payment is verified and settled. x402 headers: ```http PAYMENT-REQUIRED: PAYMENT-SIGNATURE: X-402-Payment: PAYMENT-RESPONSE: X-Sign-In-With-X: ``` x402 details: - x402 protocol version: `2`. Every paid retry `PAYMENT-SIGNATURE` must decode to JSON with top-level numeric `"x402Version": 2` and top-level `"accepted"` equal to the exact selected `accepts[]` object. Do not derive the protocol version from `accepts[]`, because individual accept entries do not carry it. Do not omit `accepted`; imgnAI matches `scheme`, `network`, `amount`, `asset`, and `payTo` against current requirements. - Payment scheme: `exact`. - Currency: USDC atomic units with 6 decimals on Base, Solana, and Monad; MUSD atomic units with 18 decimals on Mezo. - Supported networks: Base (`eip155:8453`), Solana (`solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp`), Mezo (`eip155:31612`), and Monad (`eip155:143`). - Base is listed first and should be the default client choice. - The returned `accepts` entries include `scheme`, `network`, `asset`, `payTo`, `amount`, `maxAmountRequired`, `maxTimeoutSeconds`, and `extra` metadata. Base/Monad EVM `extra` includes `assetTransferMethod: "eip3009"`, `name`, and `version` for EIP-712 signing. Mezo `extra` includes `assetTransferMethod: "permit2"`, `name`, `version`, `symbol`, `decimals`, and `supportsEip2612`; the challenge also advertises `extensions.eip2612GasSponsoring`. Solana `extra` includes Coinbase's `feePayer`; `recentBlockhash` may be absent. - The decoded `PAYMENT-REQUIRED` object includes top-level `resource` as an object with `url`, `description`, and `mimeType`, plus `resourceUrl` as the URL string. Do not assume `resource` is a string. - `amount` is the exact atomic token amount for that network. For Coinbase-facilitated Base/Solana and Mezo-facilitated Mezo, this is the model/request subtotal with no added imgnAI settlement gas. Monad still uses imgnAI's local facilitator and may include local settlement overhead. Always pay the single returned `amount`; never add or subtract gas yourself. - For paid generation calls, the JSON 402 response body has `extensions.imgnai.payment.accepts[]` with Katana-specific `subtotalUsd`, `estimatedGasUsd`, and `totalUsd`; `accepts[].extra` is reserved for scheme-specific payment metadata. `estimatedGasUsd` is `0.000000` for Base/Solana/Mezo and may be positive for Monad. `amount` is the exact total. Do not construct a gas-only payment or alter `amount`. - `maxTimeoutSeconds` is the paid HTTP response budget. Image/video calls should still submit with `wait=false` and poll by `request_id` for final assets. - Image/video x402 prices use the generation credit cost multiplied by the current credit reference price (`1 credit = $0.0052` by default). Model metadata fields `x402_cost_usdc` and `x402_cost_usdc_readable` are derived from the same credit formula. The paid retry must still use the exact `amount` returned in `PAYMENT-REQUIRED`; for Base/Solana/Mezo that amount is the subtotal, while Monad may include local settlement overhead. - Optional wallet balance is available with `POST /v1/x402/top-up`, `GET /v1/x402/balance/{walletAddress}`, and `GET /v1/x402/transactions/{walletAddress}`. - Balance-first rule: before running any x402-paid request for a wallet, check that wallet's onsite imgnAI x402 balance with `X-Sign-In-With-X`. If balance is sufficient, make the actual request with `X-Sign-In-With-X` and omit `PAYMENT-SIGNATURE`; if insufficient, top up the wallet or intentionally use one-shot pay-as-you-go. - Wallet balance should be the default for anything that may be used more than once, any workflow with several model calls, or repeated calls to the same model. It avoids creating a new onchain payment for each request and supports text reserve refunds. One-shot pay-as-you-go remains useful for one-off test scripts. - Wallet-balance requests use `X-Sign-In-With-X` to prove wallet ownership. The backend verifies the wallet signature, ties balance to the settled payer wallet/network/asset, and never trusts wallet identifiers in the generation JSON body. - `X-Sign-In-With-X` is short-lived wallet authorization: Base/Mezo/Monad use EIP-191 personal-sign, Solana signs the UTF-8 message bytes, and the message must include `imgnAI`, wallet address, network, fresh nonce, and recent `issued_at` / `Issued At`. Treat the header like a temporary bearer credential; generate a fresh proof per request and never log or share it. - Use wallet balance for non-deterministic endpoints such as LLM/text completions. Otherwise one-request pay-as-you-go x402 text calls are charged for the full token allowance/reserve supplied by the caller. - With wallet balance, text/LLM requests debit the reserve and then credits unused reserve back to the same wallet balance after actual token usage is known. - The server generates the canonical `request_id` after payment and returns it in the successful response. Do not send caller-defined request IDs. - For async image/video x402 calls, use the returned `request_id` to poll `GET /v1/generation-requests/{request_id}`. The request id is unguessable; no API key is required for x402 polling. x402 wallet balance top-up and use: ```bash curl -i -X POST 'https://kat.imgnai.com/v1/x402/top-up' \ -H 'Content-Type: application/json' \ -d '{"amount_usdc":"1.00"}' ``` The top-up endpoint follows the normal x402 402 discovery and `PAYMENT-SIGNATURE` retry flow. The credited balance is the requested `amount_usdc` value in the selected network's token units: USDC on Base/Solana/Monad or MUSD on Mezo. Base/Solana Coinbase-facilitated top-ups and Mezo-facilitated top-ups pay that amount exactly, while Monad top-ups may be higher because local settlement overhead is included. After top-up, spend stored balance with a fresh `X-Sign-In-With-X` proof and omit `PAYMENT-SIGNATURE` unless intentionally making a separate one-request payment. Balance-funded text example: ```bash curl -i -X POST 'https://kat.imgnai.com/v1/chat/completions' \ -H 'Content-Type: application/json' \ -H 'X-Sign-In-With-X: ' \ -d '{"model":"gpt-6-astra","messages":[{"role":"user","content":"Reply with exactly: wallet balance ok"}],"max_tokens":64}' ``` x402 discovery endpoint: ```http GET /v1/x402 ``` x402 image/video discovery call: ```bash curl -i -X POST 'https://kat.imgnai.com/v1/generation-requests?wait=false' \ -H 'Content-Type: application/json' \ -d '{"requests":[{"type":"image","model":"gen","prompt":"A clean product photo of a mug","aspect_ratio":"1:1","output_format":"png"}]}' ``` The response status will be `402`. Decode `PAYMENT-REQUIRED` as Base64 JSON, choose an `accepts` item, sign/pay it using an x402-compatible client, then retry: ```bash curl -i -X POST 'https://kat.imgnai.com/v1/generation-requests?wait=false' \ -H 'Content-Type: application/json' \ -H 'PAYMENT-SIGNATURE: ' \ -d '' ``` x402 text/LLM calls use the same flow against `/v1/chat/completions`; omit `Authorization`, send a non-streaming body, receive `402`, then retry with `PAYMENT-SIGNATURE`. ## x402scan Standalone Endpoint Aliases Katana fixed-model aliases for agents and x402scan choose selected fixed models server-side; omit `model` and use the same API-key, x402 one-shot, or x402 wallet-balance flow. Base URL: `https://kat.imgnai.com`. - Images: `/v1/images/gpt-image-2`, `/v1/images/pink-image`, `/v1/images/anima`, `/v1/images/anima-pink` - Videos: `/v1/videos/seedance-2`, `/v1/videos/seedance-2-mini`, `/v1/videos/seedance-2-mini-480p`, `/v1/videos/google-omni`, `/v1/videos/happy-horse` - Text: `/v1/text/qnaifu`, `/v1/text/glm-52`, `/v1/text/claude-opus-48`, `/v1/text/chat-gpt-55` - Image/video aliases accept the same body fields as `/v1/images/generations` or `/v1/videos/generations` except `model`; text aliases accept the same non-streaming OpenAI-compatible body as `/v1/chat/completions` except `model`. - Example: `POST /v1/images/pink-image?wait=false` with `{"prompt":"A woman with pink hair","aspect_ratio":"1:1"}`. ## x402 Zero-Context Integration Guide This section assumes the reader has no previous context about imgnAI or x402. x402 is an HTTP-native payment flow for paid API requests. The client first sends the ordinary API request without an API key. imgnAI replies with HTTP `402 Payment Required` and a `PAYMENT-REQUIRED` response header. That header is Base64-encoded JSON containing exact stablecoin payment instructions: Base, Solana, and Monad use USDC; Mezo uses MUSD. The client signs or constructs one of the returned payment options, retries the exact same HTTP request with `PAYMENT-SIGNATURE`, and imgnAI verifies and settles payment before starting image, video, or text inference. The same x402 flow works for: - Image generation: `POST https://kat.imgnai.com/v1/images/generations?wait=false` for a single image request, or `POST https://kat.imgnai.com/v1/generation-requests?wait=false` for batches, then poll `GET https://kat.imgnai.com/v1/generation-requests/{request_id}` - Video generation: `POST https://kat.imgnai.com/v1/videos/generations?wait=false` for a single video request, or `POST https://kat.imgnai.com/v1/generation-requests?wait=false` for batches, then poll `GET https://kat.imgnai.com/v1/generation-requests/{request_id}` - Text/LLM chat completions: `POST https://kat.imgnai.com/v1/chat/completions` - Capability discovery: `GET https://kat.imgnai.com/v1/x402` - Optional wallet balance top-up: `POST https://kat.imgnai.com/v1/x402/top-up` - Optional wallet balance/transaction checks: `GET https://kat.imgnai.com/v1/x402/balance/{walletAddress}` and `GET https://kat.imgnai.com/v1/x402/transactions/{walletAddress}` Do not send `X-API-Key`, `X-API-Secret`, or `Authorization` when using x402. The payment itself authorizes that one request. imgnAI generates the canonical `request_id`; ordinary integrations should not ask users to invent request IDs or submit client-side request IDs. AgentCash CLI note: when testing a local imgnAI API server with a funded AgentCash wallet, do not pass AgentCash `--dev` unless a local AgentCash backend is also running. Use normal funded-wallet mode for local API x402 tests. For image/video endpoints, include `?wait=false` in the URL and poll the returned `request_id`; do not rely on AgentCash's default HTTP timeout for long-running `wait=true` video calls. If intentionally using `wait=true` for a quick direct test, pass AgentCash `--timeout` larger than the expected runtime, and do not blindly retry after a timeout because payment may already have settled. July 2026 x402 migration note for existing x402 clients: Base and Solana settlement is now Coinbase-facilitated, Mezo settlement is Mezo-facilitated, and Monad remains locally facilitated by imgnAI. If a previous integration added imgnAI gas, Solana network fees, or associated-token-account rent to Base/Solana `amount`, remove that logic and pay the exact returned `accept.amount`. Base, Solana, and Mezo direct one-shot `amount` values are the model/request subtotal only and their `extensions.imgnai.payment.accepts[].estimatedGasUsd` values are `0.000000`. Monad may still include local settlement overhead. Mezo uses MUSD on `eip155:31612`, not USDC, and its amounts are atomic 18-decimal MUSD units. For Solana, the transaction fee payer is `accept.extra.feePayer`, not `accept.payTo`; `accept.payTo` remains the USDC token recipient owner. `accept.extra.recentBlockhash` may be absent, so clients must not require a server-provided blockhash. ### x402 setup and funding x402 does not require an imgnAI web account or API key. The user needs a wallet with USDC on Base, Solana, or Monad, or MUSD on Mezo. For a one-request payment, send the API request without credentials, decode the returned `PAYMENT-REQUIRED` header, pay the exact Base, Solana, Mezo, or Monad `accepts` entry, and retry with `PAYMENT-SIGNATURE`. For any integration expected to be used long-term, more than once, or for a workflow that makes multiple model calls, use x402 wallet balance as the standard path. Top up an imgnAI x402 wallet balance with `POST https://kat.imgnai.com/v1/x402/top-up`, then send `X-Sign-In-With-X` on future requests. If stored balance covers the request, imgnAI does not create a new onchain x402 charge and does not add per-request settlement gas; it debits only the model/request subtotal or text reserve from onsite wallet balance. The balance is tied to the settled payer wallet, network, and token asset. Recommended x402 client order: build a fresh `X-Sign-In-With-X` proof, call `GET https://kat.imgnai.com/v1/x402/balance/{walletAddress}`, and if balance is sufficient then submit the intended generation/text request with `X-Sign-In-With-X` and no `PAYMENT-SIGNATURE`. If any balance exists, users will usually prefer that stored balance be used before creating a new one-shot onchain payment. If balance is missing or too low, top up and retry with `X-Sign-In-With-X`, or use one-shot `PAYMENT-SIGNATURE` only for a single request. ### x402 request sequence 1. Build the normal JSON body for the image, video, or text request. 2. Send it without API credentials and without `PAYMENT-SIGNATURE`. 3. Expect HTTP `402 Payment Required`. 4. Read `PAYMENT-REQUIRED`. Decode it as Base64, then parse the decoded UTF-8 string as JSON. 5. Read `accepts`. Each entry is one supported payment option. imgnAI returns Base USDC first, Solana USDC second, Mezo MUSD third, and Monad USDC fourth. 6. Choose exactly one `accepts` entry. Do not edit the amount, recipient, asset, network, or timeout. 7. Build the network-specific payment payload for that exact `accepts` entry, and include the selected entry unchanged as top-level `accepted`, including the complete `extra` object. 8. Base64-encode the payment payload JSON. 9. Retry the exact same endpoint, method, query string, and JSON body with `PAYMENT-SIGNATURE: `. 10. If payment verifies and settles, imgnAI starts inference and returns the normal API response. Successful responses include `PAYMENT-RESPONSE`, a Base64 JSON settlement receipt. Protocol version and match rule: imgnAI accepts only x402 version 2. Every paid retry payload sent in `PAYMENT-SIGNATURE` must be Base64 JSON whose top-level object contains `"x402Version": 2` as a numeric value and `"accepted": `. Do not derive the protocol version from an `accepts[]` entry; `accepts[]` entries do not include `x402Version`. Do not send x402 v1 fields; defaulting to `1` will be rejected. Do not omit `accepted` or replace it with only `scheme`/`network`; imgnAI matches `scheme`, `network`, `amount`, `asset`, and `payTo` against the current requirements. The decoded `PAYMENT-REQUIRED` object uses top-level `resource` as an object with `url`, `description`, and `mimeType`, plus `resourceUrl` as the URL string; do not assume `resource` is a string. The `accepts[].extra` object is reserved for scheme-specific payment metadata, not price display fields: EVM clients need its EIP-3009/EIP-712 fields, and Solana clients need Coinbase's fee-payer field. ### PAYMENT-REQUIRED shape The decoded requirement is a JSON object similar to: ```json { "x402Version": 2, "error": "Payment required", "resource": { "url": "https://kat.imgnai.com/v1/generation-requests?wait=false", "description": "Generate images or videos", "mimeType": "application/json" }, "resourceUrl": "https://kat.imgnai.com/v1/generation-requests?wait=false", "accepts": [ { "scheme": "exact", "network": "eip155:8453", "asset": "0xBASE_USDC_CONTRACT", "payTo": "0xIMGNAI_BASE_PAY_TO", "amount": "13938", "maxAmountRequired": "13938", "maxTimeoutSeconds": 3600, "extra": { "assetTransferMethod": "eip3009", "name": "USD Coin", "version": "2" } }, { "scheme": "exact", "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp", "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", "payTo": "IMGNAI_SOLANA_PAY_TO", "amount": "11500", "maxAmountRequired": "11500", "maxTimeoutSeconds": 3600, "extra": { "feePayer": "COINBASE_SOLANA_FEE_PAYER" } }, { "scheme": "exact", "network": "eip155:31612", "asset": "0xdD468A1DDc392dcdbEf6db6e34E89AA338F9F186", "payTo": "0xIMGNAI_MEZO_PAY_TO", "amount": "5200000000000000", "maxAmountRequired": "5200000000000000", "maxTimeoutSeconds": 3600, "extra": { "assetTransferMethod": "permit2", "name": "Mezo USD", "version": "1", "symbol": "MUSD", "decimals": 18, "supportsEip2612": true } }, { "scheme": "exact", "network": "eip155:143", "asset": "0x754704Bc059F8C67012fEd69BC8A327a5aafb603", "payTo": "0xIMGNAI_MONAD_PAY_TO", "amount": "29250", "maxAmountRequired": "29250", "maxTimeoutSeconds": 3600, "extra": { "assetTransferMethod": "eip3009", "name": "USDC", "version": "2" } } ] } ``` USDC values use atomic units with 6 decimals, while Mezo MUSD values use atomic units with 18 decimals. For example, `"13938"` means `0.013938` USDC and `"5200000000000000"` means `0.005200000000000000` MUSD. EVM entries keep protocol signing data in `extra.assetTransferMethod`, `extra.name`, and `extra.version`; clients must use those values when constructing the EIP-712 domain and must not guess them from the token address. Mezo uses `extra.assetTransferMethod: "permit2"` and advertises `eip2612GasSponsoring`, so x402 SDK clients should sign the Permit2 payment and the EIP-2612 gasless approval extension when required. Solana entries keep Coinbase's `extra.feePayer`; use it as the transaction fee payer and do not assume it equals `accept.payTo`. Katana-specific quote details such as `subtotalUsd`, `estimatedGasUsd`, and `totalUsd` live under the JSON 402 response body's `extensions.imgnai.payment.accepts[]`, not inside `accepts[].extra`. Clients must pay the returned `amount` exactly and must not rebuild it as a gas-only amount. Base/Solana/Mezo entries have `estimatedGasUsd: "0.000000"`; Monad may include local settlement overhead. ### Base x402 payment payload Base uses network `eip155:8453`. imgnAI expects USDC payment using a signed EIP-3009-style `transferWithAuthorization` authorization, settled through Coinbase's x402 facilitator. On Base, `accept.payTo` is the USDC recipient. Do not add gas to `accept.amount`; Base `amount` is the model/request subtotal. To build the Base signature: - Use the exact Base `accepts` entry returned in `PAYMENT-REQUIRED`. - Use the payer wallet address as `authorization.from`. - Use `accept.payTo` as `authorization.to`. - Use `accept.amount` as `authorization.value`. - Set `validAfter` to the current Unix timestamp or `0`. - Set `validBefore` far enough ahead for the paid retry and settlement confirmation, commonly 5-10 minutes. `accept.maxTimeoutSeconds` is the paid HTTP response budget, not a generation completion guarantee. - Generate a fresh 32-byte random `nonce` for every payment. Do not reuse it. - Sign EIP-712 typed data for USDC `TransferWithAuthorization`. - Domain: `name: accept.extra.name` (currently `"USD Coin"` for Base USDC), `version: accept.extra.version` (currently `"2"`), `chainId: 8453`, `verifyingContract: accept.asset`. - Primary type: `TransferWithAuthorization`. - Fields: `from`, `to`, `value`, `validAfter`, `validBefore`, `nonce`. Base payment payload JSON before Base64 encoding: ```json { "x402Version": 2, "accepted": { "scheme": "exact", "network": "eip155:8453", "...": "copy the full selected accepts[] object unchanged, including extra" }, "payload": { "authorization": { "from": "0xPAYER_WALLET", "to": "0xIMGNAI_BASE_PAY_TO", "value": "13938", "validAfter": 1778430000, "validBefore": 1778430120, "nonce": "0x32_BYTES_RANDOM_HEX" }, "signature": "0xEIP712_SIGNATURE" } } ``` The top-level `"x402Version": 2` field and top-level `accepted` object are required. `accepted` must be copied unchanged from the exact Base `accepts[]` entry selected from `PAYMENT-REQUIRED`, including `extra`. PAYMENT-SIGNATURE for Base is: ```text base64(json_utf8_string_of_the_payload_above) ``` Base retry example: ```bash curl -i -X POST 'https://kat.imgnai.com/v1/generation-requests?wait=false' \ -H 'Content-Type: application/json' \ -H 'PAYMENT-SIGNATURE: ' \ -d '{"requests":[{"type":"image","model":"gen","prompt":"A precise studio image of a brushed steel cube","aspect_ratio":"1:1","output_format":"png"}]}' ``` ### Mezo x402 payment payload Mezo uses network `eip155:31612` and MUSD contract `0xdD468A1DDc392dcdbEf6db6e34E89AA338F9F186`. imgnAI expects an x402 v2 exact EVM payment using Permit2, with MUSD settling to `accept.payTo`. The Mezo facilitator sponsors settlement gas, including the one-time Permit2 + MUSD approval path when the client provides the EIP-2612 gas sponsoring extension. Do not add gas to `accept.amount`; Mezo `amount` is the model/request subtotal in 18-decimal atomic MUSD units. Recommended client path: use the canonical x402 SDKs at version 2.11.0 or newer and register the exact EVM scheme for `eip155:31612`. The server returns `accept.extra.assetTransferMethod: "permit2"`, `accept.extra.name: "Mezo USD"`, `accept.extra.version: "1"`, and the top-level `extensions.eip2612GasSponsoring` declaration. SDK clients use these values to sign the Permit2 payment and, when Permit2 allowance is insufficient, the EIP-2612 gasless approval extension. For a hand-rolled client: - Use the exact Mezo `accepts` entry returned in `PAYMENT-REQUIRED`. - Build a Permit2 exact payment authorization for `accept.asset`, `accept.amount`, and `accept.payTo`. - Include the selected `accepts[]` entry unchanged as top-level `accepted`. - Preserve the `eip2612GasSponsoring` extension declaration from `PAYMENT-REQUIRED` and include any client-signed extension info in the paid retry payload. - Do not send BTC or native Mezo gas from the buyer or merchant wallet for x402 settlement; the facilitator handles settlement gas. Mezo retry example: ```bash curl -i -X POST 'https://kat.imgnai.com/v1/generation-requests?wait=false' \ -H 'Content-Type: application/json' \ -H 'PAYMENT-SIGNATURE: ' \ -d '{"requests":[{"type":"image","model":"gen","prompt":"A precise studio image of a brushed steel cube","aspect_ratio":"1:1","output_format":"png"}]}' ``` ### Monad x402 payment payload Monad uses network `eip155:143` and native Monad USDC contract `0x754704Bc059F8C67012fEd69BC8A327a5aafb603`. imgnAI expects the same EIP-3009-style `transferWithAuthorization` authorization shape used for Base, but the EIP-712 domain must match Monad USDC. To build the Monad signature: - Use the exact Monad `accepts` entry returned in `PAYMENT-REQUIRED`. - Use the payer wallet address as `authorization.from`. - Use `accept.payTo` as `authorization.to`. - Use `accept.amount` as `authorization.value`. - Set `validAfter`, `validBefore`, and a fresh 32-byte random `nonce` exactly as with Base. - Sign EIP-712 typed data for USDC `TransferWithAuthorization`. - Domain: `name: accept.extra.name` (currently `"USDC"` for Monad USDC), `version: accept.extra.version` (currently `"2"`), `chainId: 143`, `verifyingContract: accept.asset`. - Primary type: `TransferWithAuthorization`. Monad payment payload JSON before Base64 encoding: ```json { "x402Version": 2, "accepted": { "scheme": "exact", "network": "eip155:143", "...": "copy the full selected accepts[] object unchanged, including extra" }, "payload": { "authorization": { "from": "0xPAYER_WALLET", "to": "0xIMGNAI_MONAD_PAY_TO", "value": "29250", "validAfter": 1778430000, "validBefore": 1778430120, "nonce": "0x32_BYTES_RANDOM_HEX" }, "signature": "0xEIP712_SIGNATURE" } } ``` The top-level `"x402Version": 2` field and top-level `accepted` object are required. `accepted` must be copied unchanged from the exact Monad `accepts[]` entry selected from `PAYMENT-REQUIRED`, including `extra`; code should not use `accept.get("x402Version", 1)`. PAYMENT-SIGNATURE for Monad is: ```text base64(json_utf8_string_of_the_payload_above) ``` Monad retry example: ```bash curl -i -X POST 'https://kat.imgnai.com/v1/generation-requests?wait=false' \ -H 'Content-Type: application/json' \ -H 'PAYMENT-SIGNATURE: ' \ -d '{"requests":[{"type":"image","model":"gen","prompt":"A precise studio image of a brushed steel cube","aspect_ratio":"1:1","output_format":"png"}]}' ``` ### Solana x402 payment payload Solana uses network `solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp` and native Solana USDC mint `EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v`. imgnAI settles Solana payments through Coinbase's x402 facilitator. The client submits a serialized VersionedTransaction that transfers the exact USDC amount from the payer's associated token account to the imgnAI payTo associated token account. To build the Solana transaction: - Use the exact Solana `accepts` entry returned in `PAYMENT-REQUIRED`. - The USDC mint must be `accept.asset`. - The token recipient owner must be `accept.payTo`. - The token amount must equal `accept.amount` exactly. - The transaction fee payer must be `accept.extra.feePayer`, which Coinbase may rotate. Do not use `accept.payTo` as the fee payer unless it happens to equal `accept.extra.feePayer`. - The customer signs as the USDC token owner. imgnAI will reject transactions that do not contain the required customer token-owner signature. - `payload.payer` should be the customer wallet/token owner, not the Coinbase fee payer. - If the recipient associated token account does not exist, include the associated-token-account creation instruction with `accept.extra.feePayer` as fee payer. - `accept.extra.recentBlockhash` may be absent. If it is absent, use a fresh blockhash according to the Solana client/x402 library you are using. If settlement reports an expired blockhash, fetch a fresh 402 challenge and rebuild/re-sign. - Serialize the complete VersionedTransaction bytes and encode those bytes as Base64. Solana payment payload JSON before Base64 encoding: ```json { "x402Version": 2, "accepted": { "scheme": "exact", "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp", "...": "copy the full selected accepts[] object unchanged, including extra" }, "payload": { "payer": "CUSTOMER_SOLANA_WALLET", "transaction": "" } } ``` The top-level `"x402Version": 2` field and top-level `accepted` object are required. `accepted` must be copied unchanged from the exact Solana `accepts[]` entry selected from `PAYMENT-REQUIRED`, including `extra.feePayer`. PAYMENT-SIGNATURE for Solana is: ```text base64(json_utf8_string_of_the_payload_above) ``` Solana retry example: ```bash curl -i -X POST 'https://kat.imgnai.com/v1/generation-requests?wait=false' \ -H 'Content-Type: application/json' \ -H 'PAYMENT-SIGNATURE: ' \ -d '{"requests":[{"type":"image","model":"gen","prompt":"A precise studio image of a brushed steel cube","aspect_ratio":"1:1","output_format":"png"}]}' ``` ### Text x402 example Text x402 uses the same 402 discovery and paid retry flow as image/video. The only difference is the endpoint and body shape. Text calls are prepaid from a reserve estimate because the final prompt/completion token usage is only known after the model returns. x402 text calls must be non-streaming: omit `stream` or send `stream: false`. Streaming text is supported only with API-key account billing. For Q-Naifu, use `wait=false` and poll; do not hold the paid retry open behind Cloudflare. Q-Naifu discovery: ```bash curl -i -X POST 'https://kat.imgnai.com/v1/text/qnaifu?wait=false' \ -H 'Content-Type: application/json' \ -d '{"messages":[{"role":"user","content":"Reply with exactly: q-naifu x402 ok"}],"max_tokens":16,"stream":false}' ``` Q-Naifu paid retry on Base, Solana, Mezo, or Monad: ```bash curl -i -X POST 'https://kat.imgnai.com/v1/text/qnaifu?wait=false' \ -H 'Content-Type: application/json' \ -H 'PAYMENT-SIGNATURE: ' \ -d '{"messages":[{"role":"user","content":"Reply with exactly: q-naifu x402 ok"}],"max_tokens":16,"stream":false}' ``` Save the returned `request_id`, then poll: ```bash curl 'https://kat.imgnai.com/v1/generation-requests/' ``` ### x402 wallet balance top-up Wallet balance is the recommended standard x402 path for production integrations, long-lived scripts, repeat users, batch workflows, or any request flow that may call one or more models multiple times. It exists alongside one-request pay-as-you-go x402, but avoids creating a new onchain payment for every inference request and lets text calls refund unused reserve back to the same balance. One-request pay-as-you-go is best for throwaway test scripts or scripts that intentionally run exactly once. Top-up discovery: ```bash curl -i -X POST 'https://kat.imgnai.com/v1/x402/top-up' \ -H 'Content-Type: application/json' \ -d '{"amount_usdc":"1.00"}' ``` Decode `PAYMENT-REQUIRED`, choose Base, Solana, Mezo, or Monad, pay the exact returned amount, then retry the same top-up request with `PAYMENT-SIGNATURE`. The credited wallet balance is the requested `amount_usdc` value in the selected network's token units: USDC on Base/Solana/Monad or MUSD on Mezo. Base/Solana/Mezo top-ups pay that amount exactly; Monad top-ups may be higher because local settlement gas/network cost can be included. Top-up paid retry: ```bash curl -i -X POST 'https://kat.imgnai.com/v1/x402/top-up' \ -H 'Content-Type: application/json' \ -H 'PAYMENT-SIGNATURE: ' \ -d '{"amount_usdc":"1.00"}' ``` Successful top-up returns `wallet_address`, `network`, `asset`, `currency`, `decimals`, `credited_decimal`, `paid_decimal`, `balance_decimal`, legacy `*_usdc` aliases, and transaction identifiers. The balance is keyed entirely by the payer wallet, network, and token asset observed from the settled payment. After top-up, balance-funded generation/text calls use `X-Sign-In-With-X` only; they should omit `PAYMENT-SIGNATURE` unless the caller intentionally wants a separate one-request pay-as-you-go payment. ### X-Sign-In-With-X wallet proof Balance and transaction reads, and balance-funded generation/text calls, require `X-Sign-In-With-X`. This header proves ownership of the wallet without asking the caller to put wallet metadata in the JSON body. The backend derives the spendable wallet from the verified signature and stored balance record, not from request-body fields supplied by the caller. `X-Sign-In-With-X` is Base64 JSON: ```json { "network": "eip155:8453", "address": "0xPAYER_WALLET", "message": "imgnAI X-Sign-In-With-X\nWallet: 0xPAYER_WALLET\nNetwork: eip155:8453\nNonce: \nIssued At: ", "signature": "0xPERSONAL_SIGN_SIGNATURE", "issued_at": 1778711400 } ``` For Base, Mezo, and Monad, sign the UTF-8 message with ordinary EIP-191/personal-sign semantics. For Solana, sign the UTF-8 message bytes and send the Solana signature as base58, base64, or hex. The message must include `imgnAI`, the wallet address, the network, a fresh nonce, and a recent `issued_at` / `Issued At` Unix timestamp. Stale wallet proofs are rejected. Only the wallet private key can produce a proof that recovers/verifies to that wallet, but a copied proof header is a short-lived bearer authorization until it expires, so generate a fresh nonce/timestamp per request and never log or share it. Balance read: ```bash curl 'https://kat.imgnai.com/v1/x402/balance/0xPAYER_WALLET' \ -H 'X-Sign-In-With-X: ' ``` Transactions read: ```bash curl 'https://kat.imgnai.com/v1/x402/transactions/0xPAYER_WALLET' \ -H 'X-Sign-In-With-X: ' ``` Balance-funded text request: ```bash curl -i -X POST 'https://kat.imgnai.com/v1/chat/completions' \ -H 'Content-Type: application/json' \ -H 'X-Sign-In-With-X: ' \ -d '{"model":"","messages":[{"role":"user","content":"Reply with exactly: wallet balance ok"}],"max_tokens":64}' ``` If the wallet balance is too low, imgnAI returns HTTP 402 with a top-up payment requirement for the shortfall. The caller can top up and then retry the same request with `X-Sign-In-With-X`, or omit `X-Sign-In-With-X` and use the ordinary one-request pay-as-you-go x402 flow. ### Video x402 example Video x402 uses `/v1/generation-requests` and the ordinary video request body. Model media rules still apply, so do not mix first-frame/last-frame/reference/audio slots in combinations rejected by the selected video model. Discovery: ```bash curl -i -X POST 'https://kat.imgnai.com/v1/generation-requests?wait=false' \ -H 'Content-Type: application/json' \ -d '{"requests":[{"type":"video","model":"imgn-h3","prompt":"A calm cinematic shot of a ceramic mug on a table","duration_seconds":5,"aspect_ratio":"16:9"}]}' ``` Paid retry on Base, Solana, Mezo, or Monad: ```bash curl -i -X POST 'https://kat.imgnai.com/v1/generation-requests?wait=false' \ -H 'Content-Type: application/json' \ -H 'PAYMENT-SIGNATURE: ' \ -d '{"requests":[{"type":"video","model":"imgn-h3","prompt":"A calm cinematic shot of a ceramic mug on a table","duration_seconds":5,"aspect_ratio":"16:9"}]}' ``` ### x402 implementation notes for agents - Decode `PAYMENT-REQUIRED` from the response header, not from scraped HTML. - Preserve the exact request body between the unpaid discovery call and the paid retry. - Use the returned amount from the selected `accepts` entry. Never hard-code prices from examples. - Choose Base by default if the user does not request a network, because it is listed first. - Choose Solana when the user wants to pay from a Solana wallet or when a Solana x402 client is already available. - A 402 response with `PAYMENT-REQUIRED` means no inference work has started yet. - A successful paid response includes `PAYMENT-RESPONSE`; decode it for settlement metadata such as transaction hash/signature, network, and paid amount. - Image/video responses should be treated as asynchronous. Submit with `wait=false`, then poll `GET /v1/generation-requests/{request_id}` until the status is `completed`, `partial_failure`, or `failed`. - Direct x402 payments are one-request payments. Do not reuse a Base nonce or Solana transaction for another request. - Prefer x402 wallet balance for production, long-lived, repeated, or multi-model workflows because it avoids repeated onchain settlement and supports text reserve refunds. One-request pay-as-you-go remains available for throwaway tests and scripts that intentionally run exactly once. - Use wallet balance for LLM/text calls when the final token usage may be lower than the caller's maximum token allowance, because unused reserve can be credited back to the wallet balance. - If a payment is invalid, expired, for the wrong amount, wrong recipient, wrong asset, or wrong network, imgnAI returns a 402-style payment error and does not start inference. ## Billing Path Examples imgnAI supports three independent billing paths. Pick exactly one per request: - Credits/API key: standard account billing. Use `Authorization: Bearer :` for text, or `X-API-Key` plus `X-API-Secret` for image/video. - Direct x402 pay-as-you-go: no API key, no wallet balance. Send the request once without credentials, receive `402` + `PAYMENT-REQUIRED`, pay the selected `accepts` entry, then retry immediately with `PAYMENT-SIGNATURE` or the compatibility alias `X-402-Payment`. Use this mainly for throwaway tests or scripts that intentionally run exactly once. - x402 wallet balance: recommended standard path for production, repeated, multi-model, or multi-call integrations. Top up with `POST /v1/x402/top-up`, then send `X-Sign-In-With-X` on inference calls instead of `PAYMENT-SIGNATURE`. This debits the wallet balance tied to the settled payer wallet, avoids repeated onchain settlement, and can refund unused text reserve back to that balance. ### Credits / API key examples Text with credits: ```bash curl -i -X POST 'https://kat.imgnai.com/v1/chat/completions' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer :' \ -d '{"model":"gpt-6-astra","messages":[{"role":"user","content":"Reply with exactly: imgnAI credits ok"}],"max_tokens":64}' ``` Image/video with credits: ```bash curl -i -X POST 'https://kat.imgnai.com/v1/generation-requests?wait=false' \ -H 'Content-Type: application/json' \ -H 'X-API-Key: ' \ -H 'X-API-Secret: ' \ -d '{"requests":[{"type":"image","model":"kreate-pink","prompt":"A clean product photo of a matte black espresso cup","aspect_ratio":"1:1","output_format":"png"}]}' ``` Current account credit balance: ```bash curl -i 'https://kat.imgnai.com/v1/me/balance' \ -H 'Authorization: Bearer :' ``` `GET /v1/me/balance` returns the current API-account credit balance for the authenticated user: ```json { "credits": "1234.5" } ``` Balance Service stores account balance in 10x service credits. The API returns visible imgnAI credits as a decimal string, so a Balance Service balance of `2000` is returned as `"200.0"`. This is separate from x402 wallet balance. Use `/v1/me/balance` for API-key/credit accounts, and `/v1/x402/balance/{walletAddress}` for topped-up x402 wallet balances. ### Direct x402 pay-as-you-go function Use this for throwaway test scripts, examples, or scripts that intentionally run exactly once. This flow does not read or spend wallet balance even if the same wallet has previously topped up. Base/Solana pay the exact model/request subtotal through Coinbase's facilitator, Mezo pays the exact MUSD subtotal through the Mezo facilitator, and Monad direct one-shot payments may include local settlement overhead. ```js async function callKatanaWithDirectX402(url, body, buildPaymentHeader) { const discovery = await fetch(url, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(body), }); if (discovery.status !== 402) return discovery; const encoded = discovery.headers.get('PAYMENT-REQUIRED'); const requirements = JSON.parse(Buffer.from(encoded, 'base64').toString('utf8')); const accept = requirements.accepts[0]; // Base is listed first by default. const paymentHeader = await buildPaymentHeader(accept, requirements); return fetch(url, { method: 'POST', headers: { 'Content-Type': 'application/json', 'PAYMENT-SIGNATURE': paymentHeader, }, body: JSON.stringify(body), }); } ``` `buildPaymentHeader(accept, requirements)` must build a top-level x402 v2 payment envelope, then Base64-encode that JSON. The envelope must set `x402Version: 2` as a literal numeric top-level field and must include `accepted: accept` with the exact selected `accepts[]` object, including the complete `extra` object. Do not read `x402Version` from `accept`, because `accepts[]` entries do not include it. Do not omit `accepted` or replace it with only `scheme`/`network`; imgnAI matches `scheme`, `network`, `amount`, `asset`, and `payTo` against the current requirements. Inside that v2 envelope, build the Base/Monad EIP-3009 `transferWithAuthorization` payload, the Mezo Permit2 MUSD payload plus any `eip2612GasSponsoring` extension info, or the Solana serialized transaction described in the x402 section. For EVM chains, use `accept.extra.name` and `accept.extra.version` for the EIP-712 domain when that scheme requires token domain data. For Solana, use `accept.extra.feePayer` as the transaction fee payer and do not require `accept.extra.recentBlockhash`. Do not edit `accept.amount`, `accept.payTo`, `accept.asset`, `accept.network`, or `accept.extra`. Direct x402 text example (non-streaming only): ```js const response = await callKatanaWithDirectX402('https://kat.imgnai.com/v1/chat/completions', {"model":"gpt-6-astra","messages":[{"role":"user","content":"Reply with exactly: imgnAI credits ok"}],"max_tokens":64}, buildPaymentHeader); const data = await response.json(); ``` ### x402 wallet-balance functions Use this as the default for production, long-lived, repeated, multi-model, or multi-call workflows. The top-up itself uses the same direct x402 payment header. Later inference calls use only `X-Sign-In-With-X`, spend from the wallet balance, and avoid repeated onchain settlement. ```js async function topUpKatanaX402Balance(baseUrl, amountUsdc, buildPaymentHeader) { const body = { amount_usdc: String(amountUsdc) }; const discovery = await fetch(`${baseUrl}/v1/x402/top-up`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(body), }); if (discovery.status !== 402) return discovery; const requirements = JSON.parse(Buffer.from(discovery.headers.get('PAYMENT-REQUIRED'), 'base64').toString('utf8')); const paymentHeader = await buildPaymentHeader(requirements.accepts[0], requirements); return fetch(`${baseUrl}/v1/x402/top-up`, { method: 'POST', headers: { 'Content-Type': 'application/json', 'PAYMENT-SIGNATURE': paymentHeader }, body: JSON.stringify(body), }); } async function callKatanaWithWalletBalance(url, body, signInWithXHeader) { return fetch(url, { method: 'POST', headers: { 'Content-Type': 'application/json', 'X-Sign-In-With-X': signInWithXHeader, }, body: JSON.stringify(body), }); } async function readKatanaX402Balance(baseUrl, walletAddress, signInWithXHeader) { return fetch(`${baseUrl}/v1/x402/balance/${walletAddress}`, { headers: { 'X-Sign-In-With-X': signInWithXHeader }, }); } ``` Wallet-funded text example: ```js await topUpKatanaX402Balance('https://kat.imgnai.com', '1.00', buildPaymentHeader); const response = await callKatanaWithWalletBalance('https://kat.imgnai.com/v1/chat/completions', {"model":"gpt-6-astra","messages":[{"role":"user","content":"Reply with exactly: imgnAI credits ok"}],"max_tokens":64}, signInWithXHeader); const data = await response.json(); ``` ## Retargeting Venice-Style x402 Scripts to imgnAI If a script currently targets Venice's API and the user wants to retarget it to imgnAI, do not blindly replace only the hostname. Adjust endpoints, authentication, model ids, request bodies, and response parsing. Common direct replacements: - Base URL: replace `https://api.venice.ai/api/v1` with `https://kat.imgnai.com/v1`. - Chat completions: Venice `/api/v1/chat/completions` maps to imgnAI `/v1/chat/completions` with OpenAI-style `messages` and current imgnAI model ids from `GET /v1/models`. - x402 top-up: Venice `/api/v1/x402/top-up` maps to imgnAI `/v1/x402/top-up`. imgnAI accepts a JSON body such as `{ "amount_usdc": "1.00" }`. - x402 balance: Venice `/api/v1/x402/balance/{walletAddress}` maps to imgnAI `/v1/x402/balance/{walletAddress}`. - x402 transactions: Venice `/api/v1/x402/transactions/{walletAddress}` maps to imgnAI `/v1/x402/transactions/{walletAddress}`. - Wallet auth: Venice-style scripts that already produce `X-Sign-In-With-X` can keep that header concept, but the message must be scoped to imgnAI and include the wallet address plus a recent `issued_at`/Issued At timestamp. - x402 payment header: imgnAI prefers `PAYMENT-SIGNATURE`. The compatibility alias `X-402-Payment` is accepted for clients already using that name. - Response wrappers: Venice balance/top-up responses commonly wrap values under `success`/`data`. imgnAI returns direct JSON fields such as `wallet_address`, `currency`, `decimals`, `balance_decimal`, `credited_decimal`, `paid_decimal`, legacy `*_usdc` aliases, and `transactions`. - Billing behavior: Venice-style wallet-balance inference maps to imgnAI requests with `X-Sign-In-With-X`. imgnAI also supports direct one-request x402 by omitting `X-Sign-In-With-X` and using the 402 discovery + paid retry flow. - Image/video generation: imgnAI uses `/v1/generation-requests?wait=false` with a `requests` array, then polling by `request_id`. Do not reuse Venice image/video request bodies without reshaping them. - Embeddings: do not retarget Venice `/api/v1/embeddings` calls unless imgnAI exposes an embeddings model/endpoint in the current `/v1/models` output. This Katana API primarily exposes chat completions plus image/video generation. Minimal retarget helper: ```js function retargetVeniceUrlToKatana(url) { return url.replace('https://api.venice.ai/api/v1', 'https://kat.imgnai.com/v1'); } function normalizeVeniceX402HeadersForKatana(headers) { const next = { ...headers }; if (next['X-402-Payment'] && !next['PAYMENT-SIGNATURE']) { next['PAYMENT-SIGNATURE'] = next['X-402-Payment']; } return next; } ``` ## Main Generation Endpoint Submit generation jobs to: ```http POST /v1/generation-requests?wait=false ``` For image and video on all platforms and billing paths, always submit with `wait=false` in production/agent integrations. It returns quickly with `request_id`, `status`, and `poll_after_seconds`, avoiding long-held HTTP connections through proxies such as Cloudflare. Then poll: ```http GET /v1/generation-requests/{request_id} ``` Continue polling until `status` is `completed`, `partial_failure`, or `failed`. Include the same API credentials on polling requests when using account billing. x402 polling may use the unguessable `request_id` without API credentials. Polling timeout handling: the client/operator/agent must keep its own wall-clock deadline (600 seconds for image/text requests and 6000 seconds for video requests). Image/text requests typically return in under 120 seconds, and video requests typically return in under 800 seconds; the timeout deadlines are worst-case scenario limits. On each poll, honor `poll_after_seconds` when present. If the deadline elapses, make one final `GET /v1/generation-requests/{request_id}` check; if `status` is still not `completed`, `partial_failure`, or `failed`, stop polling and surface a local timeout/inconclusive result. If the API server-side timeout fires first, a later poll returns terminal `failed` or `partial_failure` status with the affected `responses[].error.code` set to `generation_timed_out`, `error.retryable: true`, and `error.details.timeout_seconds`. Retry only by submitting a new request; do not reuse the same `request_id`. `wait=false` polling is the preferred production/agent path for all image/video requests and for Q-Naifu A3B on every platform and billing path (API-key and x402). `wait=true` is only a convenience for short direct-origin image/video tests. For third-party text/LLM models, use the normal `/v1/chat/completions` response with `wait=true` or omit `wait`. For Q-Naifu A3B (`q-naifu-a3b`), use `/v1/chat/completions?wait=false` or the fixed alias `/v1/text/qnaifu?wait=false`, save the returned `request_id`, and poll `GET /v1/generation-requests/{request_id}`. x402 Q-Naifu polling still must be non-streaming: omit `stream` or send `stream: false`. If the submission response itself is terminal (`status: "failed"`, `status: "rejected"`, or all response items rejected), do not keep polling. Report the returned `responses[].error` or top-level error to the user. Rejected validation items are not charged. If an image or video generation fails after it was charged, credits or x402 balance will be refunded within 5 minutes, pending no Terms of Service violation. The top-level request body is always a JSON object with: - `requests`: array of generation items. Each item is either `type: "image"` or `type: "video"`. Do not send a caller-defined request id. imgnAI generates and returns `request_id`. Use top-level `output_format` for image output format; do not send an `output` object for ordinary integrations. ## Image / Video Response Format Image and video results are returned under `responses[].output_assets[]`. Do not read `results[].url`; that is not the Katana response shape. If a test harness prints `{status, headers, body}`, the API response contract is the JSON object under `body`. Image/video response body skeleton: top-level `request_id`, `status`, `created_at`, `updated_at`, `requests[]`, `responses[]`, `poll_after_seconds`, and `metadata`. Each `responses[]` item has `job_id`, `type`, `status`, optional `output_assets[]`, optional `error`, and `metadata`. Response handling rules: - If a test harness prints `{status, headers, body}`, parse the API response object from `body`; `status` and `headers` are the HTTP wrapper. - Successful image/video items have `responses[].output_assets[]`. Failed or rejected items have `responses[].error` instead. - Successful manual and automatic media trims are reported in `requests[].metadata.info`; `requests[].metadata.warnings` is reserved for ignored fields, fallbacks, and degraded behavior. - For final user delivery, prefer `responses[].output_assets[].original_data_url` when present. It is the full-size/full-quality asset URL. - Use `responses[].output_assets[].url` for previews and as the fallback when `original_data_url` is absent. - If present, `responses[].output_assets[].thumbnail_image_url` is a smaller thumbnail/preview image for the completed image or video asset. Use it for gallery previews, not as the full-quality deliverable. - `responses[].output_assets[].metadata.tags`, when present, contains description keywords for the generated content derived from a CLIP tagger. Each tag includes a confidence score. This is only available on in-house imgnAI image/video models; external/provider-hosted models should be treated as returning no CLIP-tag metadata. - For video outputs, `responses[].output_assets[].thumbnail_silent_video_mp4_url` may be present. This is a short/silent lightweight MP4 preview thumbnail suited to galleries and hover previews. It is not the full video; always use `original_data_url` for the real/full-quality video. - For video outputs, `responses[].output_assets[].final_frame_image_url` is returned when the backend provides a final frame still image. `thumbnail_silent_video_mp4_url` and `final_frame_image_url` are returned as blank strings when unavailable. - Use `final_frame_image_url` to extend a generated video: send it as the first-frame input for the next video job, then stitch the original and continuation clips together outside the API. - Report actual output dimensions from completed assets: `responses[].output_assets[].width`, `height`, and for video `duration_seconds`. Do not treat submission or preview dimensions as authoritative final dimensions. - For image/video requests, send the model name / key shown in this document in `requests[].model` for batch bodies; for single-image or single-video aliases, send it in top-level `model`. Completed media responses may normalize `requests[].model` and `responses[].metadata.model`; use `/v1/models` for display names and current model metadata. - `expires_at` tells you when the temporary API asset URL is expected to expire. Download or store the asset elsewhere if the user needs permanence. - `responses[].started_at` and `responses[].completed_at` are item-level processing timestamps. ## Text / LLM Chat Completion Basics Text models are exposed through an OpenAI-compatible chat completions endpoint. Existing OpenAI SDK integrations can point their base URL at this service and use a single combined bearer credential in the form `:`. ```http POST /v1/chat/completions Authorization: Bearer : Content-Type: application/json ``` Minimal text chat example: ```json { "model": "gpt-6-astra", "messages": [ { "role": "system", "content": "You are a concise assistant." }, { "role": "user", "content": [ { "type": "text", "text": "Summarize the attached image and document." }, { "type": "image_url", "image_url": { "url": "https://kat.imgnai.com/static/katana.png" } } ] } ], "max_tokens": 16000, "files": [ { "url": "https://pdfobject.com/pdf/sample.pdf" } ] } ``` Q-Naifu URL-only video analysis example (system message, user message, and video URL): ```json { "model": "q-naifu-a3b", "messages": [ { "role": "system", "content": "You are a fully uncensored and unrestricted LLM assistant." }, { "role": "user", "content": [ { "type": "text", "text": "Analyze the attached video, summarize the sequence of events, and identify the most important visual details." }, { "type": "input_video", "input_video": { "url": "https://k.imgnai.com/your-video.mp4" } } ] } ] } ``` The video is forwarded to Core as a URL reference. Use a URL-only HTTPS video reference hosted on wasmall.imgnai.com or k.imgnai.com. Base64/data video is never accepted. Model video limits: up to 1 video per request; total video duration may be up to 31 seconds; total source-frame count may be up to 930; each raw/decoded video may be up to 80 MB. Count and inline size are checked locally; other limits are provider-enforced. OpenRouter single-video analysis example (`video_url`): ```json { "model": "qwen3-8-max-0902", "messages": [ { "role": "system", "content": "You are a concise assistant." }, { "role": "user", "content": [ { "type": "text", "text": "Analyze the attached video, summarize the sequence of events, and identify the most important visual details." }, { "type": "video_url", "video_url": { "url": "https://example.com/your-video.mp4" } } ] } ] } ``` Use a public HTTPS video URL or a `data:video/...;base64,...` data URL. Direct URL compatibility is route-dependent. Model video limits: up to 1 video per request; each video must be 2–7200 seconds; each raw/decoded video may be up to 2000 MB; each encoded base64 payload must be less than 10 MB. Count and inline size are checked locally; other limits are provider-enforced. Compatibility notes: - Preferred request shape is OpenAI-style `messages`. For clients that send a single string `prompt`, the API converts it into one user message when `messages` is omitted. - Core models receive `input_video`; OpenRouter models receive `video_url`. The API accepts either plus `video`, then normalizes to the selected provider's native shape. - Q-Naifu A3B (`q-naifu-a3b`) is the text model that supports polling. For production Q-Naifu calls on any platform or billing path, use `POST /v1/chat/completions?wait=false` or fixed alias `POST /v1/text/qnaifu?wait=false`, then poll `GET /v1/generation-requests/{request_id}`. This is more reliable than a long-held HTTP request for Q-Naifu because clients can recover from connection drops by polling the saved `request_id`. Completed assistant text is in `responses[].output_assets[].content`; token usage is in `responses[].output_assets[].metadata.usage`. For third-party text/LLM models, use `POST /v1/chat/completions` with `wait=true` or omit `wait`. - Q-Naifu polling clients must not wait forever. Use the model's `request_timeout_seconds` from `GET /v1/models` when present, then make one final poll at the deadline and report a local timeout/inconclusive result if the request is still non-terminal. - Reasoning/thinking text, when supplied by the model, is exposed as `choices[].message.reasoning_content` for non-streaming chat responses and `responses[].output_assets[].reasoning_content` for polled Q-Naifu completions. - `stream: true` is supported with Server-Sent Events for API-key account billing. x402 text calls currently must omit `stream` or send `stream: false`. - For streaming API-key calls, the API forwards chunks as `data: ...`, rewrites the chunk model name to the public imgnAI model name, requests usage in the final stream chunk, then finalizes billing before `data: [DONE]`. - If a streaming provider does not return usage in the stream, imgnAI keeps the pre-charge reserve instead of refunding based on an unknown cost. Set `max_tokens` or `max_completion_tokens` to keep the reserve predictable. - Non-streaming text response body: top-level `id`, `object`, `created`, `model`, `choices[]`, and `usage`; read assistant text from `choices[].message.content` and billing/payment metadata from `usage.imgnai`. - Polled Q-Naifu response body for `/v1/chat/completions?wait=false`: the generation envelope with top-level `request_id`, `status`, `responses[]`, `poll_after_seconds`, and `metadata`; read completed assistant text from `responses[].output_assets[].content` and token usage from `responses[].output_assets[].metadata.usage`. Streaming text chat example: ```json { "model": "gpt-6-astra", "messages": [ { "role": "user", "content": "Write one concise sentence about API integration." } ], "max_tokens": 16000, "stream": true, "stream_options": { "include_usage": true } } ``` Vision chat example with a Base64 data URL. The API accepts trusted HTTPS image URLs such as `https://k.imgnai.com/source.png`, full `data:image/...;base64,...` data URLs, or raw base64 image strings in `image_url.url`. Do not send third-party image URLs, local file paths, or `file://` URLs. Base64 image inputs are converted to JPEG, capped to a maximum side of 4096px, and kept at the original aspect ratio before inference. ```json { "model": "q-naifu-a3b", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image for an accessibility caption." }, { "type": "image_url", "image_url": { "url": "data:image/png;base64," } } ] } ], "max_tokens": 16000 } ``` Text billing rules: - With API-key account billing and x402 wallet-balance billing, text final cost is computed from actual provider usage after the response returns, using prompt/input tokens and completion/output tokens. - Direct one-request x402 text calls are prepaid from the quoted reserve because final token usage is not known before settlement. Q-Naifu should use `wait=false` and polling for both API-key and x402 billing; third-party text models should use `wait=true` or omit `wait`. - Published token prices include each model's configured service margin and are shown in credits using the Platinum Annual reference price. - Every call has a minimum final charge of 0.1 credits and is rounded up to the nearest 0.1 credit. - For API-key account billing, the API pre-charges a reserve before dispatch so users cannot consume compute they cannot pay for. The normal minimum reserve is 10 credits; a long textual prompt or large `max_tokens`/`max_completion_tokens` can reserve more. Adding an image or video does not replace or zero that ordinary token reserve. Pending polling envelopes report it as `metadata.credits_reserved` and `responses[].metadata.credits_reserved`, not as finalized `credits_spent`. - Attachment URL/Base64 length and catalog media limits are excluded from the pre-dispatch estimate. API-key and x402 wallet calls settle from provider-reported usage after inference; if media usage is missing or unreliable, the ordinary reserve is retained rather than refunded as a zero-token call. - After the provider returns usage for API-key or x402 wallet-balance calls, the API refunds unused reserve or charges overage before recording final usage. Wallet-balance refunds return to the same x402 wallet balance. - If an image/video response contains neither a positive provider cost nor positive prompt/input-token usage, the API retains the reserve rather than refunding it as an apparent zero-token request. - If neither `max_tokens` nor `max_completion_tokens` is supplied and the selected model supports output caps, the API uses that model's published `defaults.max_tokens` when present (20000 for Q-Naifu), otherwise the service default of 16000, so the reserve is meaningful. - For API-key billing, `usage.imgnai` includes credits reserved, credits charged, credits refunded, privacy mode, public model name, and `billing_source`. - For x402 billing, `usage.imgnai` includes payment or wallet metadata such as `paid_decimal`, `currency`, `decimals`, `wallet_balance_after_decimal`, legacy `*_usdc` aliases, and `billing_source`; account credit reserve fields are omitted. Text privacy labels: - `Anonymized`: customer account identity is not sent with the inference request. The model operator may process prompt content. - `Private`: the request is handled through a private in-house model path. - `E2EE Private`: the request is handled through a hardware-protected confidential-compute model path. These models expose privacy proof metadata through `/v1/text/attestation`, including hardware signals such as Intel TDX and NVIDIA Confidential Computing when available. - Public imgnAI docs intentionally do not expose the internal inference provider used for a given text model. Privacy proof example for private text models: ```bash curl 'https://kat.imgnai.com/v1/text/attestation?model=glm-5-3-private&nonce=<64_hex_nonce>' \ -H 'Authorization: Bearer :' ``` ## Image Generation Basics Image generation items use `type: "image"`. Required fields are normally `model`, `prompt`, and `aspect_ratio`. Some edit/reference models also accept input images. Use the `Model name / model_key` shown in this document. Do not use display names or backend model names. Minimal text-to-image example: ```json { "requests": [ { "type": "image", "model": "kreate-pink", "prompt": "A clean product image of a ceramic mug on a table", "aspect_ratio": "1:1", "output_format": "png" } ] } ``` Image edit/reference example with trusted HTTPS image URLs: ```json { "requests": [ { "type": "image", "model": "kreate-pink", "prompt": "Use the reference image as the product and place it on a clean studio table with soft daylight.", "aspect_ratio": "1:1", "output_format": "png", "image_urls": [ "https://wasmall.imgnai.com/static/thumbnails/image/kreatepink.webp" ] } ] } ``` Image edit/reference example with Base64 data URLs: ```json { "requests": [ { "type": "image", "model": "kreate-pink", "prompt": "Use the reference image as the product and place it on a clean studio table with soft daylight.", "aspect_ratio": "1:1", "output_format": "png", "image_urls": [ "data:image/png;base64," ] } ] } ``` Image attachment rules: - `image_urls` is the preferred compatibility field for source/reference images. `input_images` and `input_image_urls` are accepted aliases. - `image_urls`, `input_images`, and `input_image_urls` may be a list of trusted HTTPS URLs, data URLs, or raw base64 strings. - `image_url`, `input_image_url`, `input_image`, and `input_image_b64` may provide a single source image. - Do not send local filesystem paths, `file://` URLs, Telegram attachment paths, or private machine paths. Convert local files to `data:image/...;base64,...` before submitting. - Do not send `http://` media URLs or third-party image URLs. Use trusted HTTPS URLs such as `https://k.imgnai.com/source.png`, or Base64 data URLs. - Data URL format should look like `data:image/png;base64,` or `data:image/jpeg;base64,`. - Raw base64 image strings are also accepted; the API wraps them as image data internally. - Corrupt or unreadable base64 image data is rejected before dispatch. - For large Base64 payloads, write the JSON body to a temporary file and call curl with `--data-binary @payload.json` or `-d @payload.json` instead of putting megabytes of Base64 directly in shell arguments. - `aspect_ratio` accepts strings such as `1:1`, `16:9`, `9:16`, and `21:9`; `aspect_ratio: "auto"` inspects the first image input and chooses the closest model-supported ratio. If no image is supplied, AUTO defaults to `1:1` when the selected model supports it. - `output_format` accepts `png`, `jpeg`, or `webp`. `jpg` is accepted as an alias for `jpeg`. - Use only aspect ratios listed for the selected model. External API models often support a smaller aspect set than imgnAI-hosted models. - On imgnAI-hosted image models only, `is_fast`/`fast_mode` request lower-cost half-resolution generation when `supports_fast` is true. On normal UHD-capable image models, `is_uhd`/`uhd_mode` requests UHD/4K+ generation at 2x standard image cost. On Pink Image, `is_uhd`/`uhd_mode` is Enhanced mode. On models where both fast and UHD are supported, `is_uhd` takes precedence when both are sent. - On supported tag/booru-based image models only, prompt assist fields such as `use_assistant`, `prompt_assist`, or `use_prompt_assist` let users write natural language that is translated to tag-style prompts before dispatch. Enabling prompt assist adds 1 credit per image. ## Video Generation Basics Video generation items use `type: "video"`. Required fields are normally `model`, `prompt`, `duration_seconds`, and `aspect_ratio`. Media inputs go in `video_image_data`; older compatibility fields such as `image_url` or `input_image_url` can map to first-frame image input, but new integrations should prefer `video_image_data`. For models with `input_video_drives_length`, the single listed duration is the maximum accepted input video length and fixed billing tier; the supplied video clip drives the output length. Models with a non-empty `modes` map accept an optional `mode` key. Use each mode's `mode_name` for UI labels and its own `video_lengths_and_costs` for duration and pricing choices. First-party controls start on `standard`; standard requests omit `mode`, and only an explicitly selected alternate sends it. LLM-facing pricing is grouped by mode in resolution/tier order: all durations for 480p, then 720p, 1080p, and 4K; or all Standard durations, then all Pro durations. Durations within each mode are ordered shortest to longest. Minimal payable video example (required media inputs are included for the selected model): ```json { "requests": [ { "type": "video", "model": "imgn-h3", "prompt": "A calm cinematic shot of a ceramic mug on a table", "duration_seconds": 5, "aspect_ratio": "16:9" } ] } ``` Video with an explicitly selected alternate mode (`mode` is top-level in the request item): ```json { "requests": [ { "type": "video", "model": "imgn-h3", "mode": "480p", "prompt": "A calm cinematic shot of a ceramic mug on a table", "duration_seconds": 5, "aspect_ratio": "16:9" } ] } ``` This example selects `480p` (480p). For the default `standard` mode, omit `mode`. For an alternate resolution/tier, send its exact mode key and choose `duration_seconds` from that mode's `video_lengths_and_costs` table. Video with first-frame image URL: ```json { "requests": [ { "type": "video", "model": "imgn-h3", "prompt": "Animate the scene from the first frame with a slow cinematic camera push and natural motion.", "duration_seconds": 5, "aspect_ratio": "16:9", "video_image_data": { "first_frame_image_url": "https://wasmall.imgnai.com/static/thumbnails/video/imgnh3video.webp" } } ] } ``` Video with first-frame Base64 data URL: ```json { "requests": [ { "type": "video", "model": "imgn-h3", "prompt": "Animate the scene from the first frame with a slow cinematic camera push and natural motion.", "duration_seconds": 5, "aspect_ratio": "16:9", "video_image_data": { "first_frame_image_url": "data:image/png;base64," } } ] } ``` Video with first frame and last frame, for models where `supports_first_frame` and `supports_last_frame` are both true: ```json { "requests": [ { "type": "video", "model": "imgn-h3", "prompt": "Create a smooth transformation from the first frame to the last frame with consistent subject identity.", "duration_seconds": 5, "aspect_ratio": "16:9", "video_image_data": { "first_frame_image_url": "https://wasmall.imgnai.com/static/thumbnails/video/imgnh3video.webp", "last_frame_image_url": "https://wasmall.imgnai.com/static/thumbnails/video/imgnh3video.webp" } } ] } ``` Video with reference images, for models where `supports_reference_images` is true: ```json { "requests": [ { "type": "video", "model": "imgn-h3", "prompt": "Create a video using the uploaded references for subject identity, wardrobe, and setting.", "duration_seconds": 5, "aspect_ratio": "16:9", "video_image_data": { "reference_image_urls": [ "https://wasmall.imgnai.com/static/thumbnails/video/imgnh3video.webp", "data:image/png;base64," ] } } ] } ``` Video with reference image assets, using `reference_assets` instead of directly writing `video_image_data.reference_image_urls`: ```json { "requests": [ { "type": "video", "model": "imgn-h3", "prompt": "Generate a short ad using the character reference and the environment reference.", "duration_seconds": 5, "aspect_ratio": "16:9", "reference_assets": [ { "kind": "reference_image", "url": "https://wasmall.imgnai.com/static/thumbnails/video/imgnh3video.webp" }, { "kind": "image", "base64_data": "data:image/png;base64," } ] } ] } ``` Video with audio references, for models where `supports_audio_input` is true: Canonical `audio_list` using the full audio source (H3-style models): ```json { "requests": [ { "type": "video", "model": "imgn-h3", "prompt": "Create a cinematic video and use the attached audio as the voice or sound reference.", "duration_seconds": 5, "aspect_ratio": "16:9", "video_image_data": { "reference_image_urls": [ "https://wasmall.imgnai.com/static/thumbnails/video/imgnh3video.webp" ], "audio_list": [ { "url": "https://k.imgnai.com/reference-voice.mp3" } ] } } ] } ``` Canonical `audio_list` object with paired `start`/`ends` and a duration driver: ```json { "requests": [ { "type": "video", "model": "imgn-h3", "prompt": "Create a cinematic video and use the attached audio as the voice or sound reference.", "duration_seconds": 5, "aspect_ratio": "16:9", "video_image_data": { "reference_image_urls": [ "https://wasmall.imgnai.com/static/thumbnails/video/imgnh3video.webp" ], "audio_list": [ { "url": "https://k.imgnai.com/reference-voice.mp3", "start": "00:00", "ends": "00:05", "drives_duration": true } ] } } ] } ``` H3 uses canonical `video_image_data.audio_list` and must not be combined with `audio_input_urls`. A true `drives_duration` may use paired `start` plus `end`/`ends`, or omit both timestamps so the complete source is probed. Selected ranges are physically trimmed before staging; invalid ranges reject before billing. At most one audio/video entry may drive duration; billing selects the smallest configured tier in the chosen mode that includes its prepared or full-source duration with an inclusive 25 ms pricing leeway. Video with reference-video input, for models where `supports_video_input` is true: Plain URL array, using the full video source: ```json { "requests": [ { "type": "video", "model": "imgn-h3", "prompt": "Open with @Video1, then bring the subject from @Image1 into the same scene.", "duration_seconds": 5, "aspect_ratio": "16:9", "video_image_data": { "video_list": [ "https://k.imgnai.com/your-reference-video.mp4" ], "reference_image_urls": [ "https://wasmall.imgnai.com/static/thumbnails/video/imgnh3video.webp" ] } } ] } ``` Object array with paired timestamps plus H3 audio/duration flags: ```json { "requests": [ { "type": "video", "model": "imgn-h3", "prompt": "Open with @Video1, then bring the subject from @Image1 into the same scene.", "duration_seconds": 5, "aspect_ratio": "16:9", "video_image_data": { "video_list": [ { "url": "https://k.imgnai.com/your-reference-video.mp4", "start": "00:00", "end": "00:05", "mute_audio": true, "drives_duration": false } ], "reference_image_urls": [ "https://wasmall.imgnai.com/static/thumbnails/video/imgnh3video.webp" ] } } ] } ``` Optional timestamps require paired `start` plus `end`/`ends` and are physically trimmed before staging. H3 accepts strict booleans only: `mute_audio: true` physically strips that clip's audio track; `drives_duration: true` may use a paired range or omit both timestamps so the complete source is probed, and may appear on only one audio/video entry. A driver bills the smallest configured tier that includes its prepared or full-source duration with an inclusive 25 ms pricing leeway. Unsupported/non-boolean flags reject before billing. Automatic single-reference-video trim, only for a model tagged `autotrim_under_21s`: ```json { "requests": [ { "type": "video", "model": "seedance-2-0", "prompt": "Preserve the ending of this overlong reference video.", "duration_seconds": 15, "aspect_ratio": "16:9", "autotrim_preserve_end_of_content": true, "video_image_data": { "video_list": [ "https://k.imgnai.com/your-reference-video.mp4" ] } } ] } ``` Autotrim requires exactly one video. False/omitted keeps `00:00` through the model maximum; `true` keeps the final maximum-duration window. `autotrim_preserve_end_of_content: true` is recommended when a sole source video is used to generate a continuation clip, so any autotrim retains its ending and final-frame context. Omit `start`/`end` to use autotrim. Manual ranges override. Multiple videos never autotrim and must fit the combined cap after manual ranges. ## Complete HTTP cURL Examples Text-to-image cURL example: ```bash curl -X POST 'https://kat.imgnai.com/v1/generation-requests?wait=false' \ -H 'Content-Type: application/json' \ -H 'X-API-Key: ' \ -H 'X-API-Secret: ' \ -d '{ "requests": [ { "type": "image", "model": "kreate-pink", "prompt": "Use the reference image as the product and place it on a clean studio table with soft daylight.", "aspect_ratio": "1:1", "output_format": "png", "image_urls": [ "https://wasmall.imgnai.com/static/thumbnails/image/kreatepink.webp" ] } ] }' # Then poll using the request_id returned above: curl 'https://kat.imgnai.com/v1/generation-requests/' \ -H 'X-API-Key: ' \ -H 'X-API-Secret: ' ``` Video with reference images cURL example: ```bash curl -X POST 'https://kat.imgnai.com/v1/generation-requests?wait=false' \ -H 'Content-Type: application/json' \ -H 'X-API-Key: ' \ -H 'X-API-Secret: ' \ -d '{ "requests": [ { "type": "video", "model": "imgn-h3", "prompt": "Create a video using the uploaded references for subject identity, wardrobe, and setting.", "duration_seconds": 5, "aspect_ratio": "16:9", "video_image_data": { "reference_image_urls": [ "https://wasmall.imgnai.com/static/thumbnails/video/imgnh3video.webp", "data:image/png;base64," ] } } ] }' # Then poll using the request_id returned above: curl 'https://kat.imgnai.com/v1/generation-requests/' \ -H 'X-API-Key: ' \ -H 'X-API-Secret: ' ``` Base64 note for curl examples: replace placeholders such as `data:image/png;base64,` with a real data URL. If creating the request from a local file, read the bytes, base64 encode them, and prefix with the correct media type, for example `data:image/png;base64,`. For large images, write the JSON payload to a temp file and submit with `curl --data-binary @payload.json` or `curl -d @payload.json`. Video media input rules: - Put video media inputs in `video_image_data`. - `video_image_data.first_frame_image_url`: first/source frame image. Accepted values are trusted HTTPS image URL, data URL, or raw base64 image string. Top-level `image_url`, `input_image_url`, `input_image`, and `input_image_b64` are accepted compatibility aliases for this slot. - `video_image_data.mid_frame_image_url`: mid-frame image, only if the model supports mid-frame input. - `video_image_data.last_frame_image_url`: last/end frame image, only if the model supports last-frame input. - `video_image_data.reference_image_urls`: array of reference images, only if the model supports reference images. Top-level `reference_image_urls` is accepted as a compatibility alias. Obey `maximum_reference_images`. - Audio reference fields are model-specific. H3-style models with `optional_audio_drive` use canonical `video_image_data.audio_list`; older audio-input models use `video_image_data.audio_input_urls`. Both accept trusted platform-hosted audio references or objects containing exactly one of `url`/`base64_data`; audio sources may be URLs, data URLs, or strict raw Base64. Obey `maximum_reference_audio_files` (up to 5 in the current catalog). Never send both fields in one request. - `video_image_data.audio_input_urls`: array of source strings or objects with exactly one of `url`/`base64_data` when the model has `supports_audio_input: true`. Audio sources may be trusted HTTPS, audio data URLs, or raw Base64; inline Base64 is strict and cannot contain whitespace. - Reference-audio plain URL array example: `["https://k.imgnai.com/reference-audio.mp3"]`. Plain URL array, using the full audio source: use that same string-array shape. Object array with paired `start`/`end` timestamps for a manual trim: `[{"url": "https://k.imgnai.com/reference-audio.mp3", "start": "00:01", "end": "00:06"}]`. Object array with paired manual trim timestamps: `[{"url": "https://k.imgnai.com/reference-audio.mp3", "start": "00:01", "end": "00:06"}]`. - Models with `optional_audio_drive` use canonical `video_image_data.audio_list` objects. Each object has exactly one of `url`/`base64_data`; optional timestamps use paired `start` plus `end` (or compatibility alias `ends`). Example: `[{"url":"https://k.imgnai.com/reference-audio.mp3","start":"00:01","ends":"00:06","drives_duration":true}]`. Do not combine `audio_list` with `audio_input_urls`. - `video_image_data.video_list`: array of trusted HTTPS `imgnai.com` or subdomain URL strings or `{"url":"https://k.imgnai.com/your-reference-video.mp4"}` objects when the model has `supports_video_input: true`. Obey `maximum_reference_videos`; Base64 video is never accepted, and neither are data-video or third-party URLs. - Reference-video plain URL array example: `["https://k.imgnai.com/your-reference-video.mp4"]`. Plain URL array, using the full video source: use that same string-array shape. Object array with paired `start`/`end` timestamps for a manual trim: `[{"url": "https://k.imgnai.com/your-reference-video.mp4", "start": "00:01", "end": "00:06"}]`. Object array with paired manual trim timestamps: `[{"url": "https://k.imgnai.com/your-reference-video.mp4", "start": "00:01", "end": "00:06"}]`. Optional ranges use paired `start` plus `end` (or compatibility alias `ends`). - Models with `mutable_video_audio` allow a strict boolean `mute_audio` on each `video_list` object. `true` physically removes that clip's audio track before the prepared file is staged and sent to Core; unsupported or non-boolean values are rejected. - Models with `optional_audio_drive`/`optional_video_drive` allow strict boolean `drives_duration` only on the corresponding structured entry. A true driver may use a paired timestamp range or omit both timestamps, in which case the complete source is probed; at most one audio/video entry may set it true. Billing selects the smallest configured duration tier in the chosen mode that includes the prepared or full-source driver duration with an inclusive 25 ms pricing leeway; content above the largest tier plus that leeway is rejected. With no driver, the requested `duration_seconds` tier applies. - Start/end timestamps may optionally be omitted if the full source already fits the selected model's individual and combined duration limits. They may still be supplied to select a shorter clip, but must be paired (providing both the start AND end timestamp) when used. - Manual audio/video trims require both `start` and `end`, accept non-negative seconds or `MM:SS`/`HH:MM:SS` timecodes, and are physically applied before Core dispatch. `ends` remains a deprecated compatibility alias for `end`. - Every final audio/video clip must be at least 3 seconds in length. Manual ranges must exist inside the source and obey the selected model's individual/combined caps (including H3's 15-second combined audio and 15-second combined video limits). A valid manual range takes precedence over automatic trimming when available; an invalid range is rejected without fallback. - Models publishing `cost_per_ref_vid_s` add a reference-video surcharge (15 credits/second in the current catalog): `output count × cost_per_ref_vid_s × sum(each clip's billable seconds)`. For an explicit range, round its start and end independently to the nearest millisecond, subtract, then ceil that clip to whole seconds. For a full source, round its probed duration to the nearest millisecond, then ceil. Sum those independently ceiled clip seconds; never round or ceil only the combined duration. This is added to the normal mode/duration output cost. At H3's current rate, that is 15 credits per selected second per output after each clip's billable seconds are rounded independently. - When a model is tagged `autotrim_under_21s`, exactly one untrimmed video reference over the model maximum but strictly under 21 seconds is cut to the maximum. Omit `autotrim_preserve_end_of_content` or set it to `false` to keep the start; set it to `true` to keep the end. A valid manual `start`/`end` range takes precedence, while an invalid range is rejected without falling back to autotrim. Requests with multiple video references are never automatically trimmed and must satisfy the model's combined duration limit after any manual ranges are applied. - Do not send `video_list` to models where the corresponding support flag is false or missing. Unsupported non-empty metadata is rejected before dispatch. - `reference_assets` can also provide media. Image kinds `style_reference`, `reference_image`, and `image` map to video reference images. Audio kinds `audio`, `source_audio`, `reference_audio`, and `audio_reference` map to audio reference inputs. - Do not send local filesystem paths, `file://` URLs, Telegram attachment paths, private machine paths, third-party image/audio URLs, or `http://` media URLs in video image/audio fields. Use trusted HTTPS URLs or Base64 data URLs for image/audio fields. - Do not send audio references to models where `supports_audio_input` is false. The API rejects unsupported audio input before dispatch. - Do not create an otherwise empty `video_image_data` object just to send empty arrays. Omit missing metadata fields, and never send null values. - If `video_required` is present in `custom_rules`, send at least one `video_image_data.video_list` entry. - Start/end timestamps may optionally be omitted if the full supplied audio/video content already fits the selected model's individual and combined duration limits. They may still be supplied to select a shorter clip and must be paired (providing both the start AND end timestamp) when used. - Manual audio/video trim objects require paired `start` and `end` values. Each selected or untrimmed final clip must be at least 3 seconds in length, every range must exist within the probed source, and combined/model duration caps are enforced before any FFmpeg work or billing. - A valid manual range overrides `autotrim_under_21s` for that clip, including sources 21 seconds or longer. An invalid manual range is rejected and never falls back to autotrim. - Automatic trimming under `autotrim_under_21s` applies only when exactly one video reference is supplied. Multiple video references are never automatically trimmed and must satisfy the model's combined duration limit after any manual ranges are applied. - Do not mix first/last frame inputs with reference images, reference audio, or reference videos when `reference_no_ff_or_lf` is listed. LTX 2.3's `audio_ff_only` path is the exception: its audio input requires a first-frame image and cannot use other reference slots. - Use only durations listed in `video_lengths_and_costs` for the selected model. - Use only aspect ratios listed in `supported_aspects` for the selected model. `aspect_ratio: "auto"` uses the first frame first, then the first reference image. If neither exists, AUTO defaults to `1:1` when supported by the selected model. - `audio_gen_model: false` means the generated video is silent/no-audio. Most modern video models generate audio by default, so this document calls out silent models as the exception. ## Video Custom Rule Glossary Always inspect each selected video model's `custom_rules` before composing a request. These rules are model-specific compatibility constraints enforced by the API before dispatch. - `audio_15s_max`: Combined selected audio input is limited to 15 seconds. - `audio_30s_max`: Combined selected audio input is limited to 30 seconds. - `audio_drives_duration`: Selected audio determines output duration; billing uses the smallest listed duration tier that covers the exact prepared audio, up to the model maximum. - `audio_ff_only`: Audio input requires first-frame conditioning and cannot be combined with other frame or reference inputs. - `audio_needs_reference_image`: Audio input requires at least one reference image. - `autotrim_under_21s`: Exactly one untrimmed video with model maximum < source duration < 21 seconds is cut to the maximum. autotrim_preserve_end_of_content true keeps the end; false/omitted keeps the start. The true setting is recommended when a sole source video is used to generate a continuation clip, so any autotrim retains its ending/final-frame context. Manual ranges override. Multiple videos never autotrim and must fit the combined limit after manual ranges. - `input_video_drives_length`: Input video duration drives the output length. The listed length is the maximum accepted input video reference length and the fixed billing tier. - `lf_needs_ff`: Last-frame input requires a first-frame input. - `mutable_video_audio`: Each reference video accepts a strict boolean mute_audio field. When true, the API strips the audio track before staging the prepared video and also retains the flag for Core. - `optional_audio_drive`: An audio_list entry may set drives_duration: true. A complete start/end range selects a clip; when timestamps are omitted, the source's probed duration is used. At most one audio or video reference may drive duration; billing selects the smallest output tier that includes the prepared clip with an inclusive 25 ms pricing leeway. - `optional_video_drive`: A video_list entry may set drives_duration: true. A complete start/end range selects a clip; after probing, both endpoints are bounded to the real source duration before the 3-second minimum is rechecked. When timestamps are omitted, the source's probed duration is used. At most one audio or video reference may drive duration; billing selects the smallest output tier that includes the prepared clip with an inclusive 25 ms pricing leeway. - `reference_is_voice_timbre`: Reference audio is interpreted as voice timbre when reference images are present. - `reference_no_ff_or_lf`: Reference content such as reference images, audio, or video cannot be combined with first-frame or last-frame inputs. - `video_15s_max`: Combined selected video input is limited to 15 seconds. - `video_2s_min`: The provider has a legacy 2-second combined minimum; the public API enforces its stricter global minimum of 3 seconds for every individual audio/video clip. - `video_30s_max`: Combined selected video input is limited to 30 seconds. - `video_api_only`: Video references are only supported via the Katana API. - `video_required`: Video input is required. Send at least one video entry in video_image_data.video_list. ## Common Failure Cases and How to Avoid Them - Unsupported aspect ratio: choose a value from the selected model's supported aspect list. - Unsupported duration: choose one of the selected video model's `video_lengths_and_costs` keys. - Corrupt base64 image: validate that the data decodes to an actual image before submitting. - Local file path supplied as media: convert it to a Base64 data URL before submission; the API cannot fetch paths on the caller's machine. - Third-party image or audio URL supplied as media: upload it to the platform first, then send the trusted HTTPS URL or send Base64 data directly. - Audio reference on unsupported model: only send `audio_list`/`audio_input_urls` when `supports_audio_input` is true, and use the field advertised by that model's custom rules. - Video metadata on unsupported model: only send `video_list` when the selected model advertises the matching support flag. - Missing required video input: models with `video_required` must include at least one `video_image_data.video_list` entry. - Invalid manual media trim: always send both `start` and `end`, retain a clip at least 3 seconds in length, keep `end` within the source, and stay within the selected model's individual/combined duration limit. - Reference content mixed with first/last frame on an incompatible video model: check `custom_rules`, especially `reference_no_ff_or_lf`. - Last frame without first frame: prohibited on models with `lf_needs_ff`. - Too many reference images: clamp to `multi_image_inputs_allowed` for image models or `maximum_reference_images` for video models. ## Model Selection Checklist for an LLM 1. Decide whether the user needs text, an image, or a video. 2. For text, use `/v1/chat/completions`; for single image/video requests, use `/v1/images/generations` or `/v1/videos/generations`; for image/video batches, use `/v1/generation-requests`. 3. Pick a model whose display/public name, supported input types/aspects, privacy mode, and media capabilities match the requested workflow. 4. Use the ID shown as `Model name / model_key`. 5. For image/video, choose an allowed `aspect_ratio`. 6. For video, choose an allowed `duration_seconds`; for `input_video_drives_length` models, treat the single duration as fixed cost and maximum input video length. 7. Add only media fields supported by that model. 8. Apply every listed `custom_rule` for video models. 9. If using local image files, convert them to data URLs (`data:image/...;base64,...`) before sending. 10. Submit text to `/v1/chat/completions`; submit single image/video jobs to `/v1/images/generations?wait=false` or `/v1/videos/generations?wait=false`, or submit batches to `/v1/generation-requests?wait=false`. Save the returned `request_id`, then poll `GET /v1/generation-requests/{request_id}` until completion. ## Compact Model Catalog Use this catalog to choose model IDs, pricing, aspect ratios, durations, media slots, and privacy capabilities without embedding every per-model sample. Fetch `GET /v1/models` for the full current machine-readable catalog and model-card metadata. ## Text Models Text token prices below are as of 2026-11-07 13:00:00 UTC. ### Q-Naifu A3B (`q-naifu-a3b`) - imgnAI; 2026-06-05; Private; context 200000 tokens; max output 20000 tokens; inputs text, image, file, video - Cost: 38.5 credits / 1M input tokens (US$0.20); 240.4 credits / 1M output tokens (US$1.25) - Image attachment formats: JPEG/JPG, PNG, WebP, GIF, AVIF, TIFF/TIF, BMP, HEIC/HEIF - Video input formats: MP4, WebM, MOV, MKV, AVI, M4V, MPEG/MPG - Model video limits: up to 1 video per request; total video duration may be up to 31 seconds; total source-frame count may be up to 930; each raw/decoded video may be up to 80 MB. Count and inline size are checked locally; other limits are provider-enforced. - Document attachment formats: .pdf, .docx - Text/code/config attachment formats: .txt, .md, .json, .yaml, .yml, .csv, .tsv, .xml, .html, .css, .js, .ts, .tsx, .jsx, .py, .rs, .go, .java, .kt, .c, .cpp, .h, .cs, .sh, .ps1, .toml, .ini, .cfg, .log, .sql - Blocked attachment formats: .mp3, .wav, .flac, .aac, .m4a, .ogg, .zip, .rar, .7z, .tar, .gz, .tgz, .bz2, .xz, .iso, .exe, .dll, .so, .msi, .dmg, .apk, .appimage, .deb, .rpm, .doc, .xls, .xlsx, .ppt, .pptx - Max non-video attachment size: 40 MB/file - Attachment note: Unknown image file extensions are allowed when the downloaded content is detected as an image. - Attachment note: Files are not required to use a known extension; extensionless files, custom config files, source files, and plaintext-like files are accepted when their bytes look like text. - Attachment note: Video input is URL-only, supports files up to 80 MB, and must use the active platform's trusted HTTPS video hosts; inline Base64/data video is rejected. - Attachment note: The API forwards remote URLs without downloading or probing them. - Attachment note: Known audio, archive, executable, installer, shared library, and unsupported Office/binary document formats remain blocked. - Attachment note: This Core-backed model may use extended thinking time; use client-side request timeouts suitable for long-running text inference. - Request timeout: allow at least 600 seconds before treating this model as locally timed out. - Features: Uncensored, Private, Vision, File input, Video input, Structured output, Long context - Description: Q-Naifu A3B is imgnAI's fully uncensored and unrestricted Agentic Model, built upon the Qwen 3.6 A3B architecture for Roleplay and Agentic use-cases. Q-Naifu A3B supports text, image, GIF, and trusted URL-only video vision inputs, PDF/DOCX documents, and plaintext-like file attachments for long-context chat, analysis, and multimodal reasoning. - Input guidance: ⚠️ WARNING: This model is FULLY uncensored and unrestricted, and was built without safety guards. This model should NOT be used for any legal or medical advice; treat ALL outputs as fantasy. - Assistant response prefill: Assistant response prefill is supported: to make the completion begin with specific text, send the desired prefix as the final assistant message in the messages array. The assistant prefill content must not end with trailing whitespace. ### GPT-6 Astra (`gpt-6-astra`) - OpenAI; 2026-09-04; Anonymized; context 1050000 tokens; max output 128000 tokens; inputs text, image, file - Cost: 1961.6 credits / 1M input tokens (US$10.20); 9807.7 credits / 1M output tokens (US$51.00) - Cache Read Cost: 196.2 credits / 1M cached input tokens (US$1.02) - Cache Write Cost: 2452.0 credits / 1M cache write tokens (US$12.75) - Features: Tool calling, Structured output ### GPT-6 Astra Pro (`gpt-6-astra-pro`) - OpenAI; 2026-09-04; Anonymized; context 1050000 tokens; max output 128000 tokens; inputs text, image, file - Cost: 1961.6 credits / 1M input tokens (US$10.20); 9807.7 credits / 1M output tokens (US$51.00) - Cache Read Cost: 196.2 credits / 1M cached input tokens (US$1.02) - Cache Write Cost: 2452.0 credits / 1M cache write tokens (US$12.75) - Features: Tool calling, Structured output ### Qwen3.8 Max (0902) (`qwen3-8-max-0902`) - Qwen; 2026-09-03; Anonymized; context 1000000 tokens; max output 131072 tokens; inputs text, image, video - Cost: 392.4 credits / 1M input tokens (US$2.04); 1177.0 credits / 1M output tokens (US$6.12) - Cache Read Cost: 49.1 credits / 1M cached input tokens (US$0.255) - Video input formats: MP4, MPEG, MOV, WebM - Model video limits: up to 1 video per request; each video must be 2–7200 seconds; each raw/decoded video may be up to 2000 MB; each encoded base64 payload must be less than 10 MB. Count and inline size are checked locally; other limits are provider-enforced. - Features: Tool calling, Structured output ### Gemini 3.8 Flash (`gemini-3-8-flash`) - Google; 2026-09-02; Anonymized; context 1048576 tokens; max output 65536 tokens; inputs text, image, video, file, audio - Cost: 147.2 credits / 1M input tokens (US$0.765); 735.6 credits / 1M output tokens (US$3.83) - Cache Read Cost: 14.8 credits / 1M cached input tokens (US$0.0765) - Cache Write Cost: 8.2 credits / 1M cache write tokens (US$0.0425) - Video input formats: MP4, MPEG, MOV, WebM - Model video limits: up to 1 video per request. Count and inline size are checked locally; other limits are provider-enforced. - Features: Tool calling, Structured output ### Muse Spark 1.3 Contributor (`muse-spark-1-3-contributor`) - Meta; 2026-09-02; Anonymized; context 1048576 tokens; max output 943718 tokens; inputs text, image, video, file, audio - Cost: 19.7 credits / 1M input tokens (US$0.102); 39.3 credits / 1M output tokens (US$0.204) - Cache Read Cost: 0.4 credits / 1M cached input tokens (US$0.002) - Video input formats: MP4, MPEG, MOV, WebM - Model video limits: up to 1 video per request. Count and inline size are checked locally; other limits are provider-enforced. - Features: Tool calling, Structured output ### Claude Fable 5.1 (`claude-fable-5-1`) - Anthropic; 2026-09-01; Anonymized; context 1000000 tokens; max output 128000 tokens; inputs text, image, file - Cost: 1942.4 credits / 1M input tokens (US$10.10); 9711.6 credits / 1M output tokens (US$50.50) - Cache Read Cost: 48.6 credits / 1M cached input tokens (US$0.2525) - Cache Write Cost: 2427.9 credits / 1M cache write tokens (US$12.63) - Features: Tool calling, Structured output ### GLM 5.3 Private (`glm-5-3-private`) - Z.ai; 2026-08-31; E2EE Private; context 1048576 tokens; max output 131072 tokens; inputs text - Cost: 280.0 credits / 1M input tokens (US$1.46); 880.0 credits / 1M output tokens (US$4.58) - Cache Read Cost: 52.0 credits / 1M cached input tokens (US$0.2704) - Features: Tool calling, Structured output ### GLM 5.3 Flash Private (`glm-5-3-flash-private`) - Z.ai; 2026-08-27; E2EE Private; context 1048576 tokens; max output 131072 tokens; inputs text, image - Cost: 30.0 credits / 1M input tokens (US$0.156); 100.0 credits / 1M output tokens (US$0.52) - Cache Read Cost: 6.0 credits / 1M cached input tokens (US$0.0312) - Features: Tool calling, Structured output ### Grok 4.6 (`grok-4-6`) - xAI; 2026-08-12; Anonymized; context 500000 tokens; max output 450000 tokens; inputs text, image, file - Cost: 392.4 credits / 1M input tokens (US$2.04); 1177.0 credits / 1M output tokens (US$6.12) - Cache Read Cost: 98.1 credits / 1M cached input tokens (US$0.51) - Features: Tool calling, Structured output ### Kimi K3 (`kimi-k3`) - MoonshotAI; 2026-07-16; Anonymized; context 1048576 tokens; max output 1048576 tokens; inputs text, image, video - Cost: 37.7 credits / 1M input tokens (US$0.1958); 3138.5 credits / 1M output tokens (US$16.32) - Cache Read Cost: 35.7 credits / 1M cached input tokens (US$0.1856) - Video input formats: MP4, MPEG, MOV, WebM - Model video limits: up to 1 video per request. Count and inline size are checked locally; other limits are provider-enforced. - Attachment note: Recommended: FHD (1920x1080) or below. - Features: Tool calling, Structured output ### GPT-5.6 Luna (`gpt-5-6-luna`) - OpenAI; 2026-07-09; Anonymized; context 1050000 tokens; max output 128000 tokens; inputs file, image, text - Cost: 38.9 credits / 1M input tokens (US$0.202); 233.1 credits / 1M output tokens (US$1.21) - Cache Read Cost: 3.9 credits / 1M cached input tokens (US$0.0202) - Cache Write Cost: 48.6 credits / 1M cache write tokens (US$0.2525) - Features: Tool calling, Structured output ### GPT-5.6 Luna Pro (`gpt-5-6-luna-pro`) - OpenAI; 2026-07-09; Anonymized; context 1050000 tokens; max output 128000 tokens; inputs file, image, text - Cost: 38.9 credits / 1M input tokens (US$0.202); 233.1 credits / 1M output tokens (US$1.21) - Cache Read Cost: 3.9 credits / 1M cached input tokens (US$0.0202) - Cache Write Cost: 48.6 credits / 1M cache write tokens (US$0.2525) - Features: Tool calling, Structured output ### GPT-5.6 Sol (`gpt-5-6-sol`) - OpenAI; 2026-07-09; Anonymized; context 1050000 tokens; max output 128000 tokens; inputs file, image, text - Cost: 777.0 credits / 1M input tokens (US$4.04); 3884.7 credits / 1M output tokens (US$20.20) - Cache Read Cost: 77.7 credits / 1M cached input tokens (US$0.404) - Cache Write Cost: 971.2 credits / 1M cache write tokens (US$5.05) - Features: Tool calling, Structured output ### GPT-5.6 Sol Pro (`gpt-5-6-sol-pro`) - OpenAI; 2026-07-09; Anonymized; context 1050000 tokens; max output 128000 tokens; inputs file, image, text - Cost: 777.0 credits / 1M input tokens (US$4.04); 3884.7 credits / 1M output tokens (US$20.20) - Cache Read Cost: 77.7 credits / 1M cached input tokens (US$0.404) - Cache Write Cost: 971.2 credits / 1M cache write tokens (US$5.05) - Features: Tool calling, Structured output ### GPT-5.6 Terra (`gpt-5-6-terra`) - OpenAI; 2026-07-09; Anonymized; context 1050000 tokens; max output 128000 tokens; inputs file, image, text - Cost: 388.5 credits / 1M input tokens (US$2.02); 2330.8 credits / 1M output tokens (US$12.12) - Cache Read Cost: 38.9 credits / 1M cached input tokens (US$0.202) - Cache Write Cost: 485.6 credits / 1M cache write tokens (US$2.53) - Features: Tool calling, Structured output ### GPT-5.6 Terra Pro (`gpt-5-6-terra-pro`) - OpenAI; 2026-07-09; Anonymized; context 1050000 tokens; max output 128000 tokens; inputs file, image, text - Cost: 388.5 credits / 1M input tokens (US$2.02); 2330.8 credits / 1M output tokens (US$12.12) - Cache Read Cost: 38.9 credits / 1M cached input tokens (US$0.202) - Cache Write Cost: 485.6 credits / 1M cache write tokens (US$2.53) - Features: Tool calling, Structured output ### Grok 4.5 (`grok-4-5`) - xAI; 2026-07-08; Anonymized; context 500000 tokens; max output 450000 tokens; inputs text, image, file - Cost: 388.5 credits / 1M input tokens (US$2.02); 1165.4 credits / 1M output tokens (US$6.06) - Cache Read Cost: 58.3 credits / 1M cached input tokens (US$0.303) - Features: Tool calling, Structured output ### GLM 5.2 (`glm-5-2`) - Z.ai; 2026-06-16; Anonymized; context 1048576 tokens; max output 262144 tokens; inputs text - Cost: 1.2 credits / 1M input tokens (US$0.0061); 1327.4 credits / 1M output tokens (US$6.90) - Cache Read Cost: 1.0 credits / 1M cached input tokens (US$0.0051) - Features: Tool calling, Structured output ### GLM 5.2 Private (`glm-5-2-private`) - Z.ai; 2026-06-16; E2EE Private; context 524288 tokens; max output 524288 tokens; inputs text - Cost: 249.6 credits / 1M input tokens (US$1.30); 594.3 credits / 1M output tokens (US$3.09) - Cache Read Cost: 43.6 credits / 1M cached input tokens (US$0.2266) - Features: Tool calling, Structured output ### Claude Fable 5 (`claude-fable-5`) - Anthropic; 2026-06-09; Anonymized; context 1000000 tokens; max output 128000 tokens; inputs text, image, file - Cost: 1942.4 credits / 1M input tokens (US$10.10); 9711.6 credits / 1M output tokens (US$50.50) - Cache Read Cost: 194.3 credits / 1M cached input tokens (US$1.01) - Cache Write Cost: 2427.9 credits / 1M cache write tokens (US$12.63) - Features: Tool calling, Structured output ### Claude Opus 4.8 (`claude-opus-4-8`) - Anthropic; 2026-05-27; Anonymized; context 1000000 tokens; max output 128000 tokens; inputs text, image, file - Cost: 1000.0 credits / 1M input tokens (US$5.20); 5000.0 credits / 1M output tokens (US$26.00) - Cache Read Cost: 100.0 credits / 1M cached input tokens (US$0.52) - Cache Write Cost: 1250.0 credits / 1M cache write tokens (US$6.50) - Features: Tool calling, Structured output ### Claude Opus 4.8 Fast (`claude-opus-4-8-fast`) - Anthropic; 2026-05-27; Anonymized; context 1000000 tokens; max output 128000 tokens; inputs text, image, file - Cost: 2000.0 credits / 1M input tokens (US$10.40); 10000.0 credits / 1M output tokens (US$52.00) - Cache Read Cost: 200.0 credits / 1M cached input tokens (US$1.04) - Cache Write Cost: 2500.0 credits / 1M cache write tokens (US$13.00) - Features: Tool calling, Structured output ### Qwen3.7 Max (`qwen3-7-max`) - Qwen; 2026-05-21; Anonymized; context 1000000 tokens; max output 65536 tokens; inputs text - Cost: 312.1 credits / 1M input tokens (US$1.62); 936.1 credits / 1M output tokens (US$4.87) - Cache Read Cost: 62.5 credits / 1M cached input tokens (US$0.3245) - Cache Write Cost: 390.1 credits / 1M cache write tokens (US$2.03) - Features: Tool calling, Structured output ### Grok Build 0.1 (`grok-build-0-1`) - xAI; 2026-05-20; Anonymized; context 256000 tokens; max output 230400 tokens; inputs text, image, file - Cost: 192.4 credits / 1M input tokens (US$1.00); 384.7 credits / 1M output tokens (US$2.00) - Cache Read Cost: 38.5 credits / 1M cached input tokens (US$0.20) - Features: Tool calling, Structured output ### Gemini 3.5 Flash (`gemini-3-5-flash`) - Google; 2026-05-19; Anonymized; context 1048576 tokens; max output 65536 tokens; inputs text, image, video, file, audio - Cost: 317.4 credits / 1M input tokens (US$1.65); 1903.9 credits / 1M output tokens (US$9.90) - Cache Read Cost: 31.8 credits / 1M cached input tokens (US$0.165) - Cache Write Cost: 17.7 credits / 1M cache write tokens (US$0.0917) - Video input formats: MP4, MPEG, MOV, WebM - Model video limits: up to 1 video per request. Count and inline size are checked locally; other limits are provider-enforced. - Features: Tool calling, Structured output ### Grok 4.3 (`grok-4-3`) - xAI; 2026-04-30; Anonymized; context 1000000 tokens; max output 900000 tokens; inputs text, image, file - Cost: 264.5 credits / 1M input tokens (US$1.38); 528.9 credits / 1M output tokens (US$2.75) - Cache Read Cost: 42.4 credits / 1M cached input tokens (US$0.22) - Features: Tool calling, Structured output ### Legacy Text Models (compact index) These legacy models remain callable and discoverable through the API, but are listed compactly to keep this guide focused on current options. The visual catalog hides them until `Show legacy models` is enabled. Before selecting one, fetch `GET /v1/models/text` for full current metadata, including pricing, context/output limits, attachment support, and capabilities. Per-model `Copy for LLMs` guidance remains complete. - Qwen3.6 35B A3B (`qwen3-6-35b-a3b`) — Qwen; Anonymized; inputs: text, image, video. - Qwen3.6 Flash (`qwen3-6-flash`) — Qwen; Anonymized; inputs: text, image, video. - Qwen3.6 Max Preview (`qwen3-6-max-preview`) — Qwen; Anonymized; inputs: text. - DeepSeek V4 Flash (`deepseek-v4-flash`) — DeepSeek; Anonymized; inputs: text. - DeepSeek V4 Pro (`deepseek-v4-pro`) — DeepSeek; Anonymized; inputs: text. - GPT-5.5 (`gpt-5-5`) — OpenAI; Anonymized; inputs: file, image, text. - Kimi K2.6 Private (`kimi-k2-6-private`) — MoonshotAI; E2EE Private; inputs: text, image. - Qwen3 Coder Next Private (`qwen3-coder-next-private`) — Qwen; E2EE Private; inputs: text. - GLM 5.1 Private (`glm-5-1-private`) — Z.ai; E2EE Private; inputs: text. - Kimi K2.6 (`kimi-k2-6`) — MoonshotAI; Anonymized; inputs: text, image. - MiMo-V2-Flash Private (`mimo-v2-flash-private`) — Xiaomi; E2EE Private; inputs: text. - Claude Opus 4.7 (`claude-opus-4-7`) — Anthropic; Anonymized; inputs: text, image. - GLM 5.1 (`glm-5-1`) — Z.ai; Anonymized; inputs: text. - Gemma 4 26B A4B (`gemma-4-26b-a4b`) — Google; Anonymized; inputs: image, text, video. - Gemma 4 31B (`gemma-4-31b`) — Google; Anonymized; inputs: image, text, video. - Qwen3.6 Plus (`qwen3-6-plus`) — Qwen; Anonymized; inputs: text, image, video. - Grok 4.20 (`grok-4-20`) — xAI; Anonymized; inputs: text, image, file. - Grok 4.20 Multi-Agent (`grok-4-20-multi-agent`) — xAI; Anonymized; inputs: text, image, file. - MiniMax M2.7 (`minimax-m2-7`) — MiniMax; Anonymized; inputs: text. - GPT-5.4 Mini (`gpt-5-4-mini`) — OpenAI; Anonymized; inputs: file, image, text. - GLM 5 Turbo (`glm-5-turbo`) — Z.ai; Anonymized; inputs: text. - Qwen3.5-27B Private (`qwen3-5-27b-private`) — Qwen; E2EE Private; inputs: text, image, video. - GPT-5.4 (`gpt-5-4`) — OpenAI; Anonymized; inputs: text, image, file. - Gemini 3.1 Flash Lite Preview (`gemini-3-1-flash-lite-preview`) — Google; Anonymized; inputs: text, image, video, file, audio. - Qwen3.5 397B A17B Private (`qwen3-5-397b-a17b-private`) — Qwen; E2EE Private; inputs: text, image, video. - MiniMax M2.5 Private (`minimax-m2-5-private`) — MiniMax; E2EE Private; inputs: text. - Gemini 3.1 Pro Preview (`gemini-3-1-pro-preview`) — Google; Anonymized; inputs: audio, file, image, text, video. - Claude Sonnet 4.6 (`claude-sonnet-4-6`) — Anthropic; Anonymized; inputs: text, image. - GLM 5 (`glm-5`) — Z.ai; Anonymized; inputs: text. - GLM 5 Private (`glm-5-private`) — Z.ai; E2EE Private; inputs: text. - Claude Opus 4.6 (`claude-opus-4-6`) — Anthropic; Anonymized; inputs: text, image. - Kimi K2.5 Private (`kimi-k2-5-private`) — MoonshotAI; E2EE Private; inputs: text, image. - Gemini 3 Flash Preview (`gemini-3-flash-preview`) — Google; Anonymized; inputs: text, image, file, audio, video. - DeepSeek V3.2 Private (`deepseek-v3-2-private`) — DeepSeek; E2EE Private; inputs: text. - Qwen3 Coder 480B A35B Private (`qwen3-coder-480b-a35b-private`) — Qwen; E2EE Private; inputs: text. - Qwen3 VL 30B A3B Instruct Private (`qwen3-vl-30b-a3b-instruct-private`) — Qwen; E2EE Private; inputs: text, image. - Claude Haiku 4.5 (`claude-haiku-4-5`) — Anthropic; Anonymized; inputs: image, text. - Gemma 3 27B Private (`gemma-3-27b-private`) — Google; E2EE Private; inputs: text, image. ## Image Models ### Kreate Pink (`kreate-pink`) - Model name / model_key: `kreate-pink` - Legacy compatible model_key: `kreatepink` (accepted for older integrations; new requests should send `kreate-pink`.) - Creator: imgnAI - Cost: 5 credits per image (~$0.0260) - Reference images supported: 2 - ⚠️ Note: Kreate Pink serves best for NEW Image creation - reference and edit support is experimental. For more reliable and detailed image editing tools, we recommend Pink Image, or other models specifically designed for image editing. - Supported aspects: 1:1, 16:9, 21:9, 3:4, 9:16, 5:2, 4:3, 5:4, 4:5, 9:21, 4:7 - Features: text prompts, supports reference images, edit/reference workflow - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: send `image_urls` with trusted platform HTTPS URLs, data URLs, or raw base64; never third-party/local/file:// URLs - Description: Frontier-level general purpose model based on Krea2.0 - super-charged by imgnAI for native Quad-HD resolutions, and experimental reference/edit support! ### Pink Image (`pink-image`) - Model name / model_key: `pink-image` - Legacy compatible model_key: `pinkimage` (accepted for older integrations; new requests should send `pink-image`.) - Creator: imgnAI - Cost: 1 credit per image (~$0.0052) - Reference images supported: 3 - Supported aspects: 1:1, 16:9, 21:9, 3:4, 9:16, 5:2, 4:3, 5:4, 4:5, 9:21, 4:7 - Features: text prompts, supports reference images, edit/reference workflow, Enhanced Quality - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: send `image_urls` with trusted platform HTTPS URLs, data URLs, or raw base64; never third-party/local/file:// URLs - Quality mode: send `is_uhd` or `uhd_mode` for Enhanced generation at 2x standard image cost. - Description: Our high-speed generalist model for rapid iteration, with reference image support! ### GPT Image 2 MAX (`gpt-image-2-max`) - Model name / model_key: `gpt-image-2-max` - Legacy compatible model_key: `gpt2maximage` (accepted for older integrations; new requests should send `gpt-image-2-max`.) - Creator: OpenAI - Cost: 28 credits per image (~$0.1456) - Reference images supported: 10 - Supported aspects: 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9 - Features: text prompts, supports reference images, edit/reference workflow - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: send `image_urls` with trusted platform HTTPS URLs, data URLs, or raw base64; never third-party/local/file:// URLs - Description: OpenAI's GPT Image 2 at full power: max-quality QHD generations with sharper detail, richer lighting, and cleaner results! ### Nano Banana 2 (`nano-banana-2`) - Model name / model_key: `nano-banana-2` - Legacy compatible model_key: `nanobanana2` (accepted for older integrations; new requests should send `nano-banana-2`.) - Creator: Google - Cost: 32 credits per image (~$0.1664) - Reference images supported: 14 - Supported aspects: 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16 - Features: text prompts, supports reference images, edit/reference workflow - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: send `image_urls` with trusted platform HTTPS URLs, data URLs, or raw base64; never third-party/local/file:// URLs - Description: Google's frontier image creation and edit model, showcasing unprecedented quality and prompt adherence, along with in-built full web search capabilities! ### Anima Pink (`anima-pink`) - Model name / model_key: `anima-pink` - Legacy compatible model_key: `animapink` (accepted for older integrations; new requests should send `anima-pink`.) - Creator: imgnAI - Cost: 6 credits per image (~$0.0312) - Reference images supported: 0 - Supported aspects: 1:1, 16:9, 21:9, 3:4, 9:16, 5:2, 4:3, 5:4, 4:5, 9:21, 4:7 - Features: text prompts - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: text prompt default; `image_url`/`image_urls` only where backend supports them - Description: Next-gen 4K Anime, Super-charged by imgnAI! With full natural language prompting, a huge character database, and text support! ### Anima (Base) (`anima-base`) - Model name / model_key: `anima-base` - Legacy compatible model_key: `anima` (accepted for older integrations; new requests should send `anima-base`.) - Creator: CircleStone Labs - Cost: 3 credits per image (~$0.0156) - Reference images supported: 0 - Supported aspects: 1:1, 16:9, 21:9, 3:4, 9:16, 5:2, 4:3, 5:4, 4:5, 9:21, 4:7 - Features: text prompts, UHD / 4K+ - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: text prompt default; `image_url`/`image_urls` only where backend supports them - Quality mode: send `is_uhd` or `uhd_mode` for UHD/4K+ generation at 2x standard image cost. - Description: CircleStone Labs' base edition of Anima - an incredibly flexible Anime model with excellent character recognition, text support, and a massive artist reference library. ### Seedream 5.0 Pro (`seedream-5-0-pro`) - Model name / model_key: `seedream-5-0-pro` - Legacy compatible model_key: `seedream5pro` (accepted for older integrations; new requests should send `seedream-5-0-pro`.) - Creator: ByteDance - Cost: 20 credits per image (~$0.1040) - Reference images supported: 5 - Supported aspects: 1:1, 2:3, 3:2, 3:4, 4:3, 9:16, 16:9, 21:9 - Features: text prompts, supports reference images, edit/reference workflow - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: send `image_urls` with trusted platform HTTPS URLs, data URLs, or raw base64; never third-party/local/file:// URLs - Description: ByteDance's next-gen Image & Editing model, with stunning 4MP/2K+ output by default! ### GPT Image 2 (`gpt-image-2`) - Model name / model_key: `gpt-image-2` - Legacy compatible model_key: `gpt2image` (accepted for older integrations; new requests should send `gpt-image-2`.) - Creator: OpenAI - Cost: 14 credits per image (~$0.0728) - Reference images supported: 16 - Supported aspects: 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9 - Features: text prompts, supports reference images, edit/reference workflow - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: send `image_urls` with trusted platform HTTPS URLs, data URLs, or raw base64; never third-party/local/file:// URLs - Description: OpenAI's latest and greatest Image Generation & Editing model, delivering a massive leap forward in prompt adherence, stylistic control, and text rendering! ### Fur (`fur`) - Model name / model_key: `fur` - Creator: imgnAI - Cost: 2 credits per image (~$0.0104) - Reference images supported: 0 - Supported aspects: 1:1, 16:9, 21:9, 3:4, 9:16, 5:2, 4:3, 5:4, 4:5, 9:21, 4:7 - Features: UHD / 4K+ - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: text prompt default; `image_url`/`image_urls` only where backend supports them - Quality mode: send `is_uhd` or `uhd_mode` for UHD/4K+ generation at 2x standard image cost. - Description: Anime-style Furry model. ### Nano Banana 2 Lite (`nano-banana-2-lite`) - Model name / model_key: `nano-banana-2-lite` - Legacy compatible model_key: `nanobanana2lite` (accepted for older integrations; new requests should send `nano-banana-2-lite`.) - Creator: Google - Cost: 6 credits per image (~$0.0312) - Reference images supported: 14 - Supported aspects: 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16 - Features: text prompts, supports reference images, edit/reference workflow - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: send `image_urls` with trusted platform HTTPS URLs, data URLs, or raw base64; never third-party/local/file:// URLs - Description: Google's cost-efficient Nano Banana 2 Lite, offering general-purpose Image creation & editing at an incredibly affordable rate! ### Ani (`ani`) - Model name / model_key: `ani` - Creator: imgnAI - Cost: 2 credits per image (~$0.0104) - Reference images supported: 0 - Supported aspects: 1:1, 16:9, 21:9, 3:4, 9:16, 5:2, 4:3, 5:4, 4:5, 9:21, 4:7 - Features: UHD / 4K+ - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: text prompt default; `image_url`/`image_urls` only where backend supports them - Quality mode: send `is_uhd` or `uhd_mode` for UHD/4K+ generation at 2x standard image cost. - Description: High-fidelity, classic styled anime model. ### Synth (`synth`) - Model name / model_key: `synth` - Creator: imgnAI - Cost: 2 credits per image (~$0.0104) - Reference images supported: 0 - Supported aspects: 1:1, 16:9, 21:9, 3:4, 9:16, 5:2, 4:3, 5:4, 4:5, 9:21, 4:7 - Features: UHD / 4K+ - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: text prompt default; `image_url`/`image_urls` only where backend supports them - Quality mode: send `is_uhd` or `uhd_mode` for UHD/4K+ generation at 2x standard image cost. - Description: Join the Cyberpunk revolution, with a touch of Synthwave to boot! ### Noob (`noob`) - Model name / model_key: `noob` - Creator: imgnAI - Cost: 2 credits per image (~$0.0104) - Reference images supported: 0 - Supported aspects: 1:1, 16:9, 21:9, 3:4, 9:16, 5:2, 4:3, 5:4, 4:5, 9:21, 4:7 - Features: UHD / 4K+ - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: text prompt default; `image_url`/`image_urls` only where backend supports them - Quality mode: send `is_uhd` or `uhd_mode` for UHD/4K+ generation at 2x standard image cost. - Description: Anime-style model with extreme style range and character recognition - prompt assist highly recommended. ### Gen (`gen`) - Model name / model_key: `gen` - Creator: imgnAI - Cost: 3 credits per image (~$0.0156) - Reference images supported: 0 - Supported aspects: 1:1, 16:9, 21:9, 3:4, 9:16, 5:2, 4:3, 5:4, 4:5, 9:21, 4:7 - Features: text prompts, UHD / 4K+ - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: text prompt default; `image_url`/`image_urls` only where backend supports them - Quality mode: send `is_uhd` or `uhd_mode` for UHD/4K+ generation at 2x standard image cost. - Description: Our flexible, general-purpose model for any style or subject. ### Aura (`aura`) - Model name / model_key: `aura` - Creator: imgnAI - Cost: 2 credits per image (~$0.0104) - Reference images supported: 0 - Supported aspects: 1:1, 16:9, 21:9, 3:4, 9:16, 5:2, 4:3, 5:4, 4:5, 9:21, 4:7 - Features: UHD / 4K+ - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: text prompt default; `image_url`/`image_urls` only where backend supports them - Quality mode: send `is_uhd` or `uhd_mode` for UHD/4K+ generation at 2x standard image cost. - Description: Create gorgeous artwork in a professional graphic novel illustration style! Prompt assist recommended. ### Pixel (`pixel`) - Model name / model_key: `pixel` - Creator: imgnAI - Cost: 2 credits per image (~$0.0104) - Reference images supported: 0 - Supported aspects: 1:1, 16:9, 21:9, 3:4, 9:16, 5:2, 4:3, 5:4, 4:5, 9:21, 4:7 - Features: UHD / 4K+ - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: text prompt default; `image_url`/`image_urls` only where backend supports them - Quality mode: send `is_uhd` or `uhd_mode` for UHD/4K+ generation at 2x standard image cost. - Description: Create artwork from the golden age of the pixel art era! [New Pixel Core] ### Seedream 5.0 Lite (`seedream-5-0-lite`) - Model name / model_key: `seedream-5-0-lite` - Legacy compatible model_key: `seedream5lite` (accepted for older integrations; new requests should send `seedream-5-0-lite`.) - Creator: ByteDance - Cost: 8 credits per image (~$0.0416) - Reference images supported: 10 - Supported aspects: 1:1, 2:3, 3:2, 3:4, 4:3, 9:16, 16:9, 21:9 - Features: text prompts, supports reference images, edit/reference workflow - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: send `image_urls` with trusted platform HTTPS URLs, data URLs, or raw base64; never third-party/local/file:// URLs - Description: ByteDance's lightweight, next-gen Image model - with full edit and reference capabilities! ### Hyper CGI (`hyper-cgi`) - Model name / model_key: `hyper-cgi` - Legacy compatible model_key: `hypercgi` (accepted for older integrations; new requests should send `hyper-cgi`.) - Creator: imgnAI - Cost: 2 credits per image (~$0.0104) - Reference images supported: 0 - Supported aspects: 1:1, 16:9, 21:9, 3:4, 9:16, 5:2, 4:3, 5:4, 4:5, 9:21, 4:7 - Features: UHD / 4K+ - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: text prompt default; `image_url`/`image_urls` only where backend supports them - Quality mode: send `is_uhd` or `uhd_mode` for UHD/4K+ generation at 2x standard image cost. - Description: Polished CGI Characters, in the style of modern animations. ### FLUX.2 FLEX (`flux-2-flex`) - Model name / model_key: `flux-2-flex` - Legacy compatible model_key: `flux2flex` (accepted for older integrations; new requests should send `flux-2-flex`.) - Creator: Black Forest Labs - Cost: 30 credits per image (~$0.1560) - Reference images supported: 8 - Supported aspects: 1:1, 2:3, 3:2, 3:4, 4:3, 9:16, 16:9 - Features: text prompts, supports reference images, edit/reference workflow - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: send `image_urls` with trusted platform HTTPS URLs, data URLs, or raw base64; never third-party/local/file:// URLs - Description: FLUX.2's flagship model, built to compete directly with Google's Nano Banana Pro. ### WAN 2.7 Image Pro (`wan-2-7-image-pro`) - Model name / model_key: `wan-2-7-image-pro` - Legacy compatible model_key: `wan27proimage` (accepted for older integrations; new requests should send `wan-2-7-image-pro`.) - Creator: Alibaba - Cost: 18 credits per image (~$0.0936) - Reference images supported: 9 - Supported aspects: 1:1, 3:4, 4:3, 1:8, 8:1, 9:16, 16:9, 21:9 - Features: text prompts, supports reference images, edit/reference workflow - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: send `image_urls` with trusted platform HTTPS URLs, data URLs, or raw base64; never third-party/local/file:// URLs - Description: Alibaba's WAN 2.7 Image Pro model, merging true-to-life realism with full reference & edit capabilities. ### Imagine Art 1.5 Pro (`imagine-art-1-5-pro`) - Model name / model_key: `imagine-art-1-5-pro` - Legacy compatible model_key: `imagineart15` (accepted for older integrations; new requests should send `imagine-art-1-5-pro`.) - Creator: Imagine Art - Cost: 14 credits per image (~$0.0728) - Reference images supported: 0 - Supported aspects: 1:1, 16:9, 9:16, 4:3, 3:4, 3:1, 1:3, 3:2, 2:3 - Features: text prompts - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: text prompt default; `image_url`/`image_urls` only where backend supports them - Description: Imagine Art's high-fidelity native 4K model with lifelike realism, and refined aesthetics ### Volt (`volt`) - Model name / model_key: `volt` - Creator: imgnAI - Cost: 2 credits per image (~$0.0104) - Reference images supported: 0 - Supported aspects: 1:1, 16:9, 21:9, 3:4, 9:16, 5:2, 4:3, 5:4, 4:5, 9:21, 4:7 - Features: UHD / 4K+ - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: text prompt default; `image_url`/`image_urls` only where backend supports them - Quality mode: send `is_uhd` or `uhd_mode` for UHD/4K+ generation at 2x standard image cost. - Description: Anime style characters with a retro palette. ### Muse (`muse`) - Model name / model_key: `muse` - Legacy model: yes - Legacy note: Note that this is a legacy model, and has only been maintained for existing workflows. We do not recommend starting any new work with legacy models, as their quality levels are typically far below that of more modern models - while generally offering no cost benefits. - Creator: imgnAI - Cost: 3 credits per image (~$0.0156) - Reference images supported: 0 - Supported aspects: 1:1, 16:9, 21:9, 3:4, 9:16, 5:2, 4:3, 5:4, 4:5, 9:21, 4:7 - Features: text prompts, UHD / 4K+ - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: text prompt default; `image_url`/`image_urls` only where backend supports them - Quality mode: send `is_uhd` or `uhd_mode` for UHD/4K+ generation at 2x standard image cost. - Description: Flux-based model fine-tuned on Goths, Emos, and e-girls. Yes, really. ### Gothic (`gothic`) - Model name / model_key: `gothic` - Creator: imgnAI - Cost: 2 credits per image (~$0.0104) - Reference images supported: 0 - Supported aspects: 1:1, 16:9, 21:9, 3:4, 9:16, 5:2, 4:3, 5:4, 4:5, 9:21, 4:7 - Features: UHD / 4K+ - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: text prompt default; `image_url`/`image_urls` only where backend supports them - Quality mode: send `is_uhd` or `uhd_mode` for UHD/4K+ generation at 2x standard image cost. - Description: Dark clothes, dark hair, dark eyeliner. All the best things in an image model. ### Z-Image Base (`z-image-base`) - Model name / model_key: `z-image-base` - Legacy compatible model_key: `zimagebase` (accepted for older integrations; new requests should send `z-image-base`.) - Creator: Z.ai - Cost: 7 credits per image (~$0.0364) - Reference images supported: 0 - Supported aspects: 1:1, 16:9, 9:16, 4:3, 3:4, 4:5, 5:4, 4:7, 7:4, 5:2, 2:5 - Features: text prompts - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: text prompt default; `image_url`/`image_urls` only where backend supports them - Description: Z.ai's foundational image model, built for high quality and generative diversity at budget pricing. ### Rend (`rend`) - Model name / model_key: `rend` - Legacy model: yes - Legacy note: Note that this is a legacy model, and has only been maintained for existing workflows. We do not recommend starting any new work with legacy models, as their quality levels are typically far below that of more modern models - while generally offering no cost benefits. - Creator: imgnAI - Cost: 2 credits per image (~$0.0104) - Reference images supported: 0 - Supported aspects: 1:1, 16:9, 21:9, 3:4, 9:16, 5:2, 4:3, 5:4, 4:5, 9:21, 4:7 - Features: UHD / 4K+ - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: text prompt default; `image_url`/`image_urls` only where backend supports them - Quality mode: send `is_uhd` or `uhd_mode` for UHD/4K+ generation at 2x standard image cost. - Description: A high-quality blended mix of path-traced rendering, and anime stylization. ### Retro (`retro`) - Model name / model_key: `retro` - Creator: imgnAI - Cost: 2 credits per image (~$0.0104) - Reference images supported: 0 - Supported aspects: 1:1, 16:9, 21:9, 3:4, 9:16, 5:2, 4:3, 5:4, 4:5, 9:21, 4:7 - Features: UHD / 4K+ - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: text prompt default; `image_url`/`image_urls` only where backend supports them - Quality mode: send `is_uhd` or `uhd_mode` for UHD/4K+ generation at 2x standard image cost. - Description: Retro-styled anime, straight from the 90's! ### Neo (`neo`) - Model name / model_key: `neo` - Creator: imgnAI - Cost: 2 credits per image (~$0.0104) - Reference images supported: 0 - Supported aspects: 1:1, 16:9, 21:9, 3:4, 9:16, 5:2, 4:3, 5:4, 4:5, 9:21, 4:7 - Features: UHD / 4K+ - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: text prompt default; `image_url`/`image_urls` only where backend supports them - Quality mode: send `is_uhd` or `uhd_mode` for UHD/4K+ generation at 2x standard image cost. - Description: High quality realism & render model optimized for UHD/4K+. ### Pony (`pony`) - Model name / model_key: `pony` - Creator: imgnAI - Cost: 2 credits per image (~$0.0104) - Reference images supported: 0 - Supported aspects: 1:1, 16:9, 21:9, 3:4, 9:16, 5:2, 4:3, 5:4, 4:5, 9:21, 4:7 - Features: UHD / 4K+ - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: text prompt default; `image_url`/`image_urls` only where backend supports them - Quality mode: send `is_uhd` or `uhd_mode` for UHD/4K+ generation at 2x standard image cost. - Description: Expressive sketch-like anime model with excellent character recognition. ### Nai (`nai`) - Model name / model_key: `nai` - Creator: imgnAI - Cost: 2 credits per image (~$0.0104) - Reference images supported: 0 - Supported aspects: 1:1, 16:9, 21:9, 3:4, 9:16, 5:2, 4:3, 5:4, 4:5, 9:21, 4:7 - Features: UHD / 4K+ - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: text prompt default; `image_url`/`image_urls` only where backend supports them - Quality mode: send `is_uhd` or `uhd_mode` for UHD/4K+ generation at 2x standard image cost. - Description: Modern, alternative anime style model. ### Glitch (`glitch`) - Model name / model_key: `glitch` - Legacy model: yes - Legacy note: Note that this is a legacy model, and has only been maintained for existing workflows. We do not recommend starting any new work with legacy models, as their quality levels are typically far below that of more modern models - while generally offering no cost benefits. - Creator: imgnAI - Cost: 2 credits per image (~$0.0104) - Reference images supported: 0 - Supported aspects: 1:1, 16:9, 21:9, 3:4, 9:16, 5:2, 4:3, 5:4, 4:5, 9:21, 4:7 - Features: UHD / 4K+ - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: text prompt default; `image_url`/`image_urls` only where backend supports them - Quality mode: send `is_uhd` or `uhd_mode` for UHD/4K+ generation at 2x standard image cost. - Description: Load up on glitch-burn aesthetics, with this compelling and unique art style! ### FLUX.2 Klein 9b (`flux-2-klein-9b`) - Model name / model_key: `flux-2-klein-9b` - Legacy compatible model_key: `fluxklein9b` (accepted for older integrations; new requests should send `flux-2-klein-9b`.) - Creator: Black Forest Labs - Cost: 10 credits per image (~$0.0520) - Reference images supported: 4 - Supported aspects: 1:1, 16:9, 9:16, 4:3, 3:4, 4:5, 5:4, 4:7, 7:4, 5:2, 2:5 - Features: text prompts, supports reference images, edit/reference workflow - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: send `image_urls` with trusted platform HTTPS URLs, data URLs, or raw base64; never third-party/local/file:// URLs - Description: FLUX.2's Klein Flagship, HD outputs and full image edit support at an excellent price/performance ratio. ### Qwen 2.0 (`qwen-2-0`) - Model name / model_key: `qwen-2-0` - Legacy compatible model_key: `qwen2image` (accepted for older integrations; new requests should send `qwen-2-0`.) - Creator: Alibaba - Cost: 18 credits per image (~$0.0936) - Reference images supported: 3 - Supported aspects: 1:1, 2:3, 3:2, 3:4, 4:3, 9:16, 16:9, 21:9 - Features: text prompts, supports reference images, edit/reference workflow - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: send `image_urls` with trusted platform HTTPS URLs, data URLs, or raw base64; never third-party/local/file:// URLs - Description: Qwen 2 by Alibaba packs a punch at entry-level pricing - with detailed text rendering, flexible editing, and great style control. ### WAN 2.7 Image (`wan-2-7-image`) - Model name / model_key: `wan-2-7-image` - Legacy compatible model_key: `wan27image` (accepted for older integrations; new requests should send `wan-2-7-image`.) - Creator: Alibaba - Cost: 6 credits per image (~$0.0312) - Reference images supported: 9 - Supported aspects: 1:1, 3:4, 4:3, 1:8, 8:1, 9:16, 16:9, 21:9 - Features: text prompts, supports reference images, edit/reference workflow - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: send `image_urls` with trusted platform HTTPS URLs, data URLs, or raw base64; never third-party/local/file:// URLs - Description: Alibaba's Base WAN 2.7 Image model, bringing WAN's signature best-in-class natural realism at a budget cost! ### Supra (`supra`) - Model name / model_key: `supra` - Legacy model: yes - Legacy note: Note that this is a legacy model, and has only been maintained for existing workflows. We do not recommend starting any new work with legacy models, as their quality levels are typically far below that of more modern models - while generally offering no cost benefits. - Creator: imgnAI - Cost: 2 credits per image (~$0.0104) - Reference images supported: 0 - Supported aspects: 1:1, 16:9, 21:9, 3:4, 9:16, 5:2, 4:3, 5:4, 4:5, 9:21, 4:7 - Features: UHD / 4K+ - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: text prompt default; `image_url`/`image_urls` only where backend supports them - Quality mode: send `is_uhd` or `uhd_mode` for UHD/4K+ generation at 2x standard image cost. - Description: Digital render style model, similar to MidJourney v6. ### Z-Image Turbo (`z-image-turbo`) - Model name / model_key: `z-image-turbo` - Legacy compatible model_key: `zimageturbo` (accepted for older integrations; new requests should send `z-image-turbo`.) - Creator: Z.ai - Cost: 4 credits per image (~$0.0208) - Reference images supported: 0 - Supported aspects: 1:1, 16:9, 9:16, 4:3, 3:4, 4:5, 5:4, 4:7, 7:4, 5:2, 2:5 - Features: text prompts - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: text prompt default; `image_url`/`image_urls` only where backend supports them - Description: Z.ai's Turbo image model, a lightning-fast distillation of Z-Image Base. ### Evo (`evo`) - Model name / model_key: `evo` - Legacy model: yes - Legacy note: Note that this is a legacy model, and has only been maintained for existing workflows. We do not recommend starting any new work with legacy models, as their quality levels are typically far below that of more modern models - while generally offering no cost benefits. - Creator: imgnAI - Cost: 2 credits per image (~$0.0104) - Reference images supported: 0 - Supported aspects: 1:1, 16:9, 21:9, 3:4, 9:16, 5:2, 4:3, 5:4, 4:5, 9:21, 4:7 - Features: UHD / 4K+ - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: text prompt default; `image_url`/`image_urls` only where backend supports them - Quality mode: send `is_uhd` or `uhd_mode` for UHD/4K+ generation at 2x standard image cost. - Description: Slightly abstract realism, flexible model specializing in texture details. ### FLUX.2 PRO (`flux-2-pro`) - Model name / model_key: `flux-2-pro` - Legacy compatible model_key: `flux2pro` (accepted for older integrations; new requests should send `flux-2-pro`.) - Creator: Black Forest Labs - Cost: 8 credits per image (~$0.0416) - Reference images supported: 4 - Supported aspects: 1:1, 2:3, 3:2, 3:4, 4:3, 9:16, 16:9 - Features: text prompts, supports reference images, edit/reference workflow - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: send `image_urls` with trusted platform HTTPS URLs, data URLs, or raw base64; never third-party/local/file:// URLs - Description: FLUX.2's entry-level model, offering great performance at budget pricing. ### Toon (`toon`) - Model name / model_key: `toon` - Legacy model: yes - Legacy note: Note that this is a legacy model, and has only been maintained for existing workflows. We do not recommend starting any new work with legacy models, as their quality levels are typically far below that of more modern models - while generally offering no cost benefits. - Creator: imgnAI - Cost: 2 credits per image (~$0.0104) - Reference images supported: 0 - Supported aspects: 1:1, 16:9, 21:9, 3:4, 9:16, 5:2, 4:3, 5:4, 4:5, 9:21, 4:7 - Features: UHD / 4K+ - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: text prompt default; `image_url`/`image_urls` only where backend supports them - Quality mode: send `is_uhd` or `uhd_mode` for UHD/4K+ generation at 2x standard image cost. - Description: Western cartoon style model. ### Seedream 4.5 (`seedream-4-5`) - Model name / model_key: `seedream-4-5` - Legacy compatible model_key: `seedream45` (accepted for older integrations; new requests should send `seedream-4-5`.) - Legacy model: yes - Legacy note: Note that this is a legacy model, and has only been maintained for existing workflows. We do not recommend starting any new work with legacy models, as their quality levels are typically far below that of more modern models - while generally offering no cost benefits. - Creator: ByteDance - Cost: 12 credits per image (~$0.0624) - Reference images supported: 10 - Supported aspects: 1:1, 16:9, 9:16, 4:3, 3:4, 4:5, 5:4, 4:7, 7:4, 5:2, 2:5 - Features: text prompts, supports reference images, edit/reference workflow - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: send `image_urls` with trusted platform HTTPS URLs, data URLs, or raw base64; never third-party/local/file:// URLs - Description: Cutting-edge Native 4K model, with full edit capabilities. ### Wassie (`wassie`) - Model name / model_key: `wassie` - Legacy model: yes - Legacy note: Note that this is a legacy model, and has only been maintained for existing workflows. We do not recommend starting any new work with legacy models, as their quality levels are typically far below that of more modern models - while generally offering no cost benefits. - Creator: imgnAI - Cost: 2 credits per image (~$0.0104) - Reference images supported: 0 - Supported aspects: 1:1, 16:9, 21:9, 3:4, 9:16, 5:2, 4:3, 5:4, 4:5, 9:21, 4:7 - Features: UHD / 4K+ - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: text prompt default; `image_url`/`image_urls` only where backend supports them - Quality mode: send `is_uhd` or `uhd_mode` for UHD/4K+ generation at 2x standard image cost. - Description: Create Wassies of all shapes and sizes! ### Nano Banana (`nano-banana`) - Model name / model_key: `nano-banana` - Legacy compatible model_key: `nanobanana` (accepted for older integrations; new requests should send `nano-banana`.) - Legacy model: yes - Legacy note: Note that this is a legacy model, and has only been maintained for existing workflows. We do not recommend starting any new work with legacy models, as their quality levels are typically far below that of more modern models - while generally offering no cost benefits. - Creator: Google - Cost: 12 credits per image (~$0.0624) - Reference images supported: 6 - Supported aspects: 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 21:9 - Features: text prompts, requires image input, supports reference images, edit/reference workflow - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: send `image_urls` with trusted platform HTTPS URLs, data URLs, or raw base64; never third-party/local/file:// URLs - Description: Google's first-generation image creation and edit model. ### Nano Banana Pro (`nano-banana-pro`) - Model name / model_key: `nano-banana-pro` - Legacy compatible model_key: `nanobananapro` (accepted for older integrations; new requests should send `nano-banana-pro`.) - Legacy model: yes - Legacy note: Note that this is a legacy model, and has only been maintained for existing workflows. We do not recommend starting any new work with legacy models, as their quality levels are typically far below that of more modern models - while generally offering no cost benefits. - Creator: Google - Cost: 28 credits per image (~$0.1456) - Reference images supported: 8 - Supported aspects: 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9 - Features: text prompts, supports reference images, edit/reference workflow - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: send `image_urls` with trusted platform HTTPS URLs, data URLs, or raw base64; never third-party/local/file:// URLs - Description: Google's Pro Tier offering on their first-generation Nano Banana model, pushing the bar for high quality image creation, and high precision editing workloads. ### Seedream 4 (`seedream-4`) - Model name / model_key: `seedream-4` - Legacy compatible model_key: `seedream4` (accepted for older integrations; new requests should send `seedream-4`.) - Legacy model: yes - Legacy note: Note that this is a legacy model, and has only been maintained for existing workflows. We do not recommend starting any new work with legacy models, as their quality levels are typically far below that of more modern models - while generally offering no cost benefits. - Creator: ByteDance - Cost: 12 credits per image (~$0.0624) - Reference images supported: 10 - Supported aspects: 1:1, 2:3, 3:2, 3:4, 4:3, 9:16, 16:9, 21:9 - Features: text prompts, supports reference images, edit/reference workflow - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: send `image_urls` with trusted platform HTTPS URLs, data URLs, or raw base64; never third-party/local/file:// URLs - Description: Excellent quality 4K model, with full edit capabilities. ### Flux1.D (`flux1-d`) - Model name / model_key: `flux1-d` - Legacy compatible model_key: `flux1d` (accepted for older integrations; new requests should send `flux1-d`.) - Legacy model: yes - Legacy note: Note that this is a legacy model, and has only been maintained for existing workflows. We do not recommend starting any new work with legacy models, as their quality levels are typically far below that of more modern models - while generally offering no cost benefits. - Creator: Black Forest Labs - Cost: 3 credits per image (~$0.0156) - Reference images supported: 0 - Supported aspects: 1:1, 16:9, 21:9, 3:4, 9:16, 5:2, 4:3, 5:4, 4:5, 9:21, 4:7 - Features: text prompts, UHD / 4K+ - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: text prompt default; `image_url`/`image_urls` only where backend supports them - Quality mode: send `is_uhd` or `uhd_mode` for UHD/4K+ generation at 2x standard image cost. - Description: BFL's general-purpose Flux1.D model. ### FLUX 1.1 Ultra (`flux-1-1-ultra`) - Model name / model_key: `flux-1-1-ultra` - Legacy compatible model_key: `flux1ultra` (accepted for older integrations; new requests should send `flux-1-1-ultra`.) - Legacy model: yes - Legacy note: Note that this is a legacy model, and has only been maintained for existing workflows. We do not recommend starting any new work with legacy models, as their quality levels are typically far below that of more modern models - while generally offering no cost benefits. - Creator: Black Forest Labs - Cost: 18 credits per image (~$0.0936) - Reference images supported: 0 - Supported aspects: 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 4:5, 5:4, 21:9, 9:21, 2:1, 1:2 - Features: text prompts - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: text prompt default; `image_url`/`image_urls` only where backend supports them - Description: BFL's final FLUX.1 iteration, extremely high quality 4MP outputs. ### FLUX.2 Klein 4b (`flux-2-klein-4b`) - Model name / model_key: `flux-2-klein-4b` - Legacy compatible model_key: `fluxklein4b` (accepted for older integrations; new requests should send `flux-2-klein-4b`.) - Legacy model: yes - Legacy note: Note that this is a legacy model, and has only been maintained for existing workflows. We do not recommend starting any new work with legacy models, as their quality levels are typically far below that of more modern models - while generally offering no cost benefits. - Creator: Black Forest Labs - Cost: 4 credits per image (~$0.0208) - Reference images supported: 4 - Supported aspects: 1:1, 16:9, 9:16, 4:3, 3:4, 4:5, 5:4, 4:7, 7:4, 5:2, 2:5 - Features: text prompts, supports reference images, edit/reference workflow - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: send `image_urls` with trusted platform HTTPS URLs, data URLs, or raw base64; never third-party/local/file:// URLs - Description: FLUX.2's small but powerful Klein 4b model, further extending the cost savings offered with Klein 9b. ### Qwen Image Edit (`qwen-image-edit`) - Model name / model_key: `qwen-image-edit` - Legacy compatible model_key: `qwenedit` (accepted for older integrations; new requests should send `qwen-image-edit`.) - Legacy model: yes - Legacy note: Note that this is a legacy model, and has only been maintained for existing workflows. We do not recommend starting any new work with legacy models, as their quality levels are typically far below that of more modern models - while generally offering no cost benefits. - Creator: Alibaba Cloud - Cost: 12 credits per image (~$0.0624) - Reference images supported: 1 - Supported aspects: 1:1, 16:9, 9:16, 4:3, 3:4 - Features: text prompts, requires image input, supports reference images, edit/reference workflow - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: send `image_urls` with trusted platform HTTPS URLs, data URLs, or raw base64; never third-party/local/file:// URLs - Description: Super-charged Qwen Image, with full image editing capabilities. ### FurXL Classic (`furxl-classic`) - Model name / model_key: `furxl-classic` - Legacy compatible model_key: `furxl` (accepted for older integrations; new requests should send `furxl-classic`.) - Legacy model: yes - Legacy note: Note that this is a legacy model, and has only been maintained for existing workflows. We do not recommend starting any new work with legacy models, as their quality levels are typically far below that of more modern models - while generally offering no cost benefits. - Creator: imgnAI - Cost: 2 credits per image (~$0.0104) - Reference images supported: 0 - Supported aspects: 1:1, 16:9, 21:9, 3:4, 9:16, 5:2, 4:3, 5:4, 4:5, 9:21, 4:7 - Features: UHD / 4K+ - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: text prompt default; `image_url`/`image_urls` only where backend supports them - Quality mode: send `is_uhd` or `uhd_mode` for UHD/4K+ generation at 2x standard image cost. - Description: Furries in all shapes and sizes! ### HyperX (`hyperx`) - Model name / model_key: `hyperx` - Legacy model: yes - Legacy note: Note that this is a legacy model, and has only been maintained for existing workflows. We do not recommend starting any new work with legacy models, as their quality levels are typically far below that of more modern models - while generally offering no cost benefits. - Creator: imgnAI - Cost: 2 credits per image (~$0.0104) - Reference images supported: 0 - Supported aspects: 1:1, 16:9, 21:9, 3:4, 9:16, 5:2, 4:3, 5:4, 4:5, 9:21, 4:7 - Features: UHD / 4K+ - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: text prompt default; `image_url`/`image_urls` only where backend supports them - Quality mode: send `is_uhd` or `uhd_mode` for UHD/4K+ generation at 2x standard image cost. - Description: Legacy CG-Style renders. ### Flux Kontext Max (`flux-kontext-max`) - Model name / model_key: `flux-kontext-max` - Legacy compatible model_key: `kontextmax` (accepted for older integrations; new requests should send `flux-kontext-max`.) - Legacy model: yes - Legacy note: Note that this is a legacy model, and has only been maintained for existing workflows. We do not recommend starting any new work with legacy models, as their quality levels are typically far below that of more modern models - while generally offering no cost benefits. - Creator: Black Forest Labs - Cost: 20 credits per image (~$0.1040) - Reference images supported: 1 - Supported aspects: 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 4:5, 5:4, 21:9, 9:21, 2:1, 1:2 - Features: text prompts, requires image input, supports reference images, edit/reference workflow - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: send `image_urls` with trusted platform HTTPS URLs, data URLs, or raw base64; never third-party/local/file:// URLs - Description: BFL's legacy high-end image editing model. ### Flux Kontext Pro (`flux-kontext-pro`) - Model name / model_key: `flux-kontext-pro` - Legacy compatible model_key: `kontextpro` (accepted for older integrations; new requests should send `flux-kontext-pro`.) - Legacy model: yes - Legacy note: Note that this is a legacy model, and has only been maintained for existing workflows. We do not recommend starting any new work with legacy models, as their quality levels are typically far below that of more modern models - while generally offering no cost benefits. - Creator: Black Forest Labs - Cost: 12 credits per image (~$0.0624) - Reference images supported: 1 - Supported aspects: 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 4:5, 5:4, 21:9, 9:21, 2:1, 1:2 - Features: text prompts, requires image input, supports reference images, edit/reference workflow - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: send `image_urls` with trusted platform HTTPS URLs, data URLs, or raw base64; never third-party/local/file:// URLs - Description: BFL's legacy entry-level image editing model. ### Qwen Image (`qwen-image`) - Model name / model_key: `qwen-image` - Legacy compatible model_key: `qwenimage` (accepted for older integrations; new requests should send `qwen-image`.) - Legacy model: yes - Legacy note: Note that this is a legacy model, and has only been maintained for existing workflows. We do not recommend starting any new work with legacy models, as their quality levels are typically far below that of more modern models - while generally offering no cost benefits. - Creator: Alibaba Cloud - Cost: 8 credits per image (~$0.0416) - Reference images supported: 0 - Supported aspects: 1:1, 16:9, 9:16, 4:3, 3:4 - Features: text prompts - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: text prompt default; `image_url`/`image_urls` only where backend supports them - Description: Versatile model with excellent text capabilities. ### Supra Classic (`supra-classic`) - Model name / model_key: `supra-classic` - Legacy compatible model_key: `supraclassic` (accepted for older integrations; new requests should send `supra-classic`.) - Legacy model: yes - Legacy note: Note that this is a legacy model, and has only been maintained for existing workflows. We do not recommend starting any new work with legacy models, as their quality levels are typically far below that of more modern models - while generally offering no cost benefits. - Creator: imgnAI - Cost: 2 credits per image (~$0.0104) - Reference images supported: 0 - Supported aspects: 1:1, 16:9, 21:9, 3:4, 9:16, 5:2, 4:3, 5:4, 4:5, 9:21, 4:7 - Features: UHD / 4K+ - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: text prompt default; `image_url`/`image_urls` only where backend supports them - Quality mode: send `is_uhd` or `uhd_mode` for UHD/4K+ generation at 2x standard image cost. - Description: High-range Digital Renders ### WAN 2.2 Image (`wan-2-2-image`) - Model name / model_key: `wan-2-2-image` - Legacy compatible model_key: `wan22image` (accepted for older integrations; new requests should send `wan-2-2-image`.) - Legacy model: yes - Legacy note: Note that this is a legacy model, and has only been maintained for existing workflows. We do not recommend starting any new work with legacy models, as their quality levels are typically far below that of more modern models - while generally offering no cost benefits. - Creator: Alibaba Cloud - Cost: 8 credits per image (~$0.0416) - Reference images supported: 0 - Supported aspects: 1:1, 16:9, 9:16, 4:3, 3:4, 21:9 - Features: text prompts - Output format: send `output_format` as `png`, `jpeg`, or `webp`. - Image inputs: text prompt default; `image_url`/`image_urls` only where backend supports them - Description: Stunning still-frame imagery powered by the WAN Video model. ## Video Models ### IMGN H3 (`imgn-h3`) - Model name / model_key: `imgn-h3` - Legacy compatible model_key: `imgnh3` (accepted for older integrations; new requests should send `imgn-h3`.) - Creator: MiniMax - Duration costs: 480p — 5 seconds: 40 credits (~$0.2080); 480p — 10 seconds: 80 credits (~$0.4160); 480p — 15 seconds: 120 credits (~$0.6240); 544p — 5 seconds: 50 credits (~$0.2600); 544p — 10 seconds: 100 credits (~$0.5200); 544p — 15 seconds: 150 credits (~$0.7800); 640p — 5 seconds: 60 credits (~$0.3120); 640p — 10 seconds: 120 credits (~$0.6240); 640p — 15 seconds: 180 credits (~$0.9360); 768p — 5 seconds: 75 credits (~$0.3900); 768p — 10 seconds: 150 credits (~$0.7800); 768p — 15 seconds: 220 credits (~$1.14) - Reference images supported: 7 - Supported aspects: 16:9, 9:16, 1:1, 4:3, 3:4, 21:9 - Features: first frame, last frame, reference images up to 7, audio input up to 3 file(s), video input up to 2 clip(s), supports media trim - Audio output: generates audio by default - Video modes: Optional mode key. Available: `480p` (480p), `544p` (544p), `standard` (640p), `768p` (768p). First-party controls start on `standard`; standard requests omit `mode`, and only an explicitly selected alternate sends it. Modes are listed in resolution/tier order. - Audio references: send up to 3 `url`/`base64_data` objects in canonical `video_image_data.audio_list`; do not also send `audio_input_urls`. Optional timestamps use paired `start` plus `end`/`ends`. `drives_duration` is a strict boolean; true may use a paired range or omit both timestamps so the complete source is probed. Valid ranges are physically trimmed before staging; each clip must be at least 3 seconds. - Video references: supported. Send up to 2 active-platform HTTPS URL strings or objects in `video_image_data.video_list`. Optional `start` plus `end`/`ends` ranges are physically trimmed before staging. Where advertised, objects accept strict boolean `mute_audio`; true physically strips that clip's audio before staging; strict boolean `drives_duration`; true may use a paired range or the probed complete source and bills the smallest output tier that includes that clip with an inclusive 25 ms pricing leeway. Unsupported/non-boolean flags are rejected. Base64 video is unsupported; each clip must be at least 3 seconds. - Reference-video surcharge: normal output cost plus `output count × 15 credits × sum(each clip's billable seconds)`. Explicit range: round start and end independently to the nearest millisecond, subtract, then ceil that clip to seconds. Full source: round its probed duration to the nearest millisecond, then ceil. Sum those independently ceiled clip seconds; never round/ceil only the combined duration. At H3's current rate, that is 15 credits per selected second per output after independent per-clip rounding. - Description: MiniMax H3, Supercharged by imgnAI! Incredible prompt adherence, beautiful visuals, and stunning sound - at a fraction of the cost of closed models! - Input guidance: Describe your video using Natural Language, referencing any uploaded image as needed: e.g: 'An influencer style video of a woman with pink hair reviewing the coffee in her local cafe', or (with uploads) 'Open with the first 5 seconds of @Video1, then have the people from @Image1 and @Image2 walk into the scene.' - Warning: Note that H3's reference mode tends to run significantly slower than its text-to-video or first-frame/last-frame modes, with generation times sometimes exceeding 20 minutes. - Custom rules for this model: - Reference content such as reference images, audio, or video cannot be combined with first-frame or last-frame inputs. - Last-frame input requires a first-frame input. - Combined selected audio input is limited to 15 seconds. - Combined selected video input is limited to 15 seconds. - The provider has a legacy 2-second combined minimum; the public API enforces its stricter global minimum of 3 seconds for every individual audio/video clip. - Each reference video accepts a strict boolean mute_audio field. When true, the API strips the audio track before staging the prepared video and also retains the flag for Core. - An audio_list entry may set drives_duration: true. A complete start/end range selects a clip; when timestamps are omitted, the source's probed duration is used. At most one audio or video reference may drive duration; billing selects the smallest output tier that includes the prepared clip with an inclusive 25 ms pricing leeway. - A video_list entry may set drives_duration: true. A complete start/end range selects a clip; after probing, both endpoints are bounded to the real source duration before the 3-second minimum is rechecked. When timestamps are omitted, the source's probed duration is used. At most one audio or video reference may drive duration; billing selects the smallest output tier that includes the prepared clip with an inclusive 25 ms pricing leeway. ### Seedance 2.5 (`seedance-2-5`) - Model name / model_key: `seedance-2-5` - Legacy compatible model_key: `seedance25` (accepted for older integrations; new requests should send `seedance-2-5`.) - Creator: ByteDance - Duration costs: 480p — 5 seconds: 105 credits (~$0.5460); 480p — 10 seconds: 210 credits (~$1.09); 480p — 15 seconds: 315 credits (~$1.64); 480p — 20 seconds: 420 credits (~$2.18); 480p — 25 seconds: 525 credits (~$2.73); 480p — 30 seconds: 630 credits (~$3.28); 720p — 5 seconds: 235 credits (~$1.22); 720p — 10 seconds: 470 credits (~$2.44); 720p — 15 seconds: 705 credits (~$3.67); 720p — 20 seconds: 940 credits (~$4.89); 720p — 25 seconds: 1175 credits (~$6.11); 720p — 30 seconds: 1400 credits (~$7.28) - Reference images supported: 30 - Supported aspects: 16:9, 9:16, 1:1, 4:3, 3:4, 21:9 - Features: first frame, last frame, reference images up to 30, audio input up to 5 file(s), video input up to 5 clip(s), supports media trim - Audio output: generates audio by default - Video modes: Optional mode key. Available: `480p` (480p), `standard` (720p). First-party controls start on `standard`; standard requests omit `mode`, and only an explicitly selected alternate sends it. Modes are listed in resolution/tier order. - Audio references: send up to 5 URL strings or `url`/`base64_data` objects in `video_image_data.audio_input_urls`. Optional start/end timestamps must be paired. Valid ranges are physically trimmed before staging; each clip must be at least 3 seconds. - Video references: supported. Send up to 5 active-platform HTTPS URL strings or objects in `video_image_data.video_list`. Optional `start` plus `end`/`ends` ranges are physically trimmed before staging. Unsupported/non-boolean flags are rejected. Base64 video is unsupported; each clip must be at least 3 seconds. - Description: The most cutting-edge video model on earth: Seedance 2.5 offers up to 30 seconds of uninterrupted video in a single shot, cinema-grade visuals and sound quality, along with unbeatable prompt adherence! - Input guidance: Describe your video using Natural Language, referencing any uploaded image as needed: e.g: 'An influencer style video of a woman with pink hair reviewing the coffee in her local cafe', or (with uploads) 'Open with the first 5 seconds of @Video1, then have the people from @Image1 and @Image2 walk into the scene.' - Warning: Seedance 2.5 prohibits the use of any real people uploaded in reference images, and will refuse any prompts that reference copyrighted content! We strongly recommend against referencing ANY copyrighted terms - for example, phrases like 'Pixar style' may result in your prompt being refused. We cannot offer refunds on any requests which are blocked by ByteDance/Seedance's content policies. - Custom rules for this model: - Reference content such as reference images, audio, or video cannot be combined with first-frame or last-frame inputs. - Last-frame input requires a first-frame input. - Combined selected audio input is limited to 30 seconds. - Combined selected video input is limited to 30 seconds. - The provider has a legacy 2-second combined minimum; the public API enforces its stricter global minimum of 3 seconds for every individual audio/video clip. ### Seedance 2.0 (`seedance-2-0`) - Model name / model_key: `seedance-2-0` - Legacy compatible model_key: `seedance2` (accepted for older integrations; new requests should send `seedance-2-0`.) - Creator: ByteDance - Duration costs: 480p — 5 seconds: 90 credits (~$0.4680); 480p — 10 seconds: 180 credits (~$0.9360); 480p — 15 seconds: 270 credits (~$1.40); 720p — 5 seconds: 165 credits (~$0.8580); 720p — 10 seconds: 330 credits (~$1.72); 720p — 15 seconds: 495 credits (~$2.57); 1080p — 5 seconds: 450 credits (~$2.34); 1080p — 10 seconds: 900 credits (~$4.68); 1080p — 15 seconds: 1350 credits (~$7.02); 4K — 5 seconds: 900 credits (~$4.68); 4K — 10 seconds: 1800 credits (~$9.36); 4K — 15 seconds: 2600 credits (~$13.52) - Reference images supported: 7 - Supported aspects: 16:9, 9:16, 1:1, 4:3, 3:4 - Features: first frame, last frame, reference images up to 7, audio input up to 3 file(s), video input up to 3 clip(s), automatic media trim - Audio output: generates audio by default - Video modes: Optional mode key. Available: `480p` (480p), `standard` (720p), `1080p` (1080p), `4k` (4K). First-party controls start on `standard`; standard requests omit `mode`, and only an explicitly selected alternate sends it. Modes are listed in resolution/tier order. - Audio references: send up to 3 URL strings or `url`/`base64_data` objects in `video_image_data.audio_input_urls`. Optional start/end timestamps must be paired. Valid ranges are physically trimmed before staging; each clip must be at least 3 seconds. - Video references: supported. Send up to 3 active-platform HTTPS URL strings or objects in `video_image_data.video_list`. Optional `start` plus `end`/`ends` ranges are physically trimmed before staging. Unsupported/non-boolean flags are rejected. Base64 video is unsupported; each clip must be at least 3 seconds. - Automatic trim (one video): false/omitted keeps the start. For a continuation clip, set `autotrim_preserve_end_of_content: true` to retain the sole source video's ending/final-frame context. - Description: The world's most popular video model, showcasing stunning prompt adherence and audio/video quality. - Input guidance: Describe your video using Natural Language, referencing any uploaded image as needed: e.g: 'An influencer style video of a woman with pink hair reviewing the coffee in her local cafe', or (with uploads) 'Open with the first 5 seconds of @Video1, then have the people from @Image1 and @Image2 walk into the scene.' - Warning: Seedance 2.0 prohibits the use of any real people uploaded in reference images, and will refuse any prompts that reference copyrighted content! We strongly recommend against referencing ANY copyrighted terms - for example, phrases like 'Pixar style' may result in your prompt being refused. We cannot offer refunds on any requests which are blocked by ByteDance/Seedance's content policies. - Custom rules for this model: - Reference content such as reference images, audio, or video cannot be combined with first-frame or last-frame inputs. - Audio input requires at least one reference image. - Last-frame input requires a first-frame input. - Combined selected audio input is limited to 15 seconds. - Combined selected video input is limited to 15 seconds. - The provider has a legacy 2-second combined minimum; the public API enforces its stricter global minimum of 3 seconds for every individual audio/video clip. - Video references are only supported via the Katana API. ### Seedance 2.0 Mini (`seedance-2-0-mini`) - Model name / model_key: `seedance-2-0-mini` - Legacy compatible model_key: `seedance2mini` (accepted for older integrations; new requests should send `seedance-2-0-mini`.) - Creator: ByteDance - Duration costs: 480p — 5 seconds: 60 credits (~$0.3120); 480p — 10 seconds: 120 credits (~$0.6240); 480p — 15 seconds: 180 credits (~$0.9360); 720p — 5 seconds: 110 credits (~$0.5720); 720p — 10 seconds: 220 credits (~$1.14); 720p — 15 seconds: 330 credits (~$1.72) - Reference images supported: 7 - Supported aspects: 16:9, 9:16, 1:1, 4:3, 3:4, 21:9 - Features: first frame, last frame, reference images up to 7, audio input up to 3 file(s), video input up to 3 clip(s), automatic media trim - Audio output: generates audio by default - Video modes: Optional mode key. Available: `480p` (480p), `standard` (720p). First-party controls start on `standard`; standard requests omit `mode`, and only an explicitly selected alternate sends it. Modes are listed in resolution/tier order. - Audio references: send up to 3 URL strings or `url`/`base64_data` objects in `video_image_data.audio_input_urls`. Optional start/end timestamps must be paired. Valid ranges are physically trimmed before staging; each clip must be at least 3 seconds. - Video references: supported. Send up to 3 active-platform HTTPS URL strings or objects in `video_image_data.video_list`. Optional `start` plus `end`/`ends` ranges are physically trimmed before staging. Unsupported/non-boolean flags are rejected. Base64 video is unsupported; each clip must be at least 3 seconds. - Automatic trim (one video): false/omitted keeps the start. For a continuation clip, set `autotrim_preserve_end_of_content: true` to retain the sole source video's ending/final-frame context. - Description: Seedance's cost-efficient frontier video model, retaining unprecedented prompt adherence and audio/video quality! - Input guidance: Describe your video using Natural Language, referencing any uploaded image as needed: e.g: 'An influencer style video of a woman with pink hair reviewing the coffee in her local cafe', or (with uploads) 'Open with the first 5 seconds of @Video1, then have the people from @Image1 and @Image2 walk into the scene.' - Warning: Seedance 2.0 prohibits the use of any real people uploaded in reference images, and will refuse any prompts that reference copyrighted content! We strongly recommend against referencing ANY copyrighted terms - for example, phrases like 'Pixar style' may result in your prompt being refused. We cannot offer refunds on any requests which are blocked by ByteDance/Seedance's content policies. - Custom rules for this model: - Reference content such as reference images, audio, or video cannot be combined with first-frame or last-frame inputs. - Audio input requires at least one reference image. - Last-frame input requires a first-frame input. - Combined selected audio input is limited to 15 seconds. - Combined selected video input is limited to 15 seconds. - The provider has a legacy 2-second combined minimum; the public API enforces its stricter global minimum of 3 seconds for every individual audio/video clip. - Video references are only supported via the Katana API. ### Gemini Omni (`gemini-omni`) - Model name / model_key: `gemini-omni` - Legacy compatible model_key: `googlegeminiomnivideo` (accepted for older integrations; new requests should send `gemini-omni`.) - Creator: Google - Duration costs: 4 seconds: 100 credits (~$0.5200); 6 seconds: 135 credits (~$0.7020); 8 seconds: 170 credits (~$0.8840); 10 seconds: 200 credits (~$1.04) - Reference images supported: 5 - Supported aspects: 16:9, 9:16 - Features: reference images up to 5 - Audio output: generates audio by default - Description: Google's latest and greatest Gemini Omni Video model! - Custom rules for this model: none ### Gemini Omni (V2V) (`gemini-omni-v2v`) - Model name / model_key: `gemini-omni-v2v` - Legacy compatible model_key: `googlegeminiomniv2vvideo` (accepted for older integrations; new requests should send `gemini-omni-v2v`.) - Creator: Google - Duration costs: max 10s input video: 500 credits (~$2.60) - Reference images supported: 5 - Supported aspects: 16:9, 9:16 - Features: reference images up to 5, video input up to 1 clip(s), automatic media trim - Audio output: generates audio by default - Video references: supported. Send up to 1 active-platform HTTPS URL strings or objects in `video_image_data.video_list`. Optional `start` plus `end`/`ends` ranges are physically trimmed before staging. Unsupported/non-boolean flags are rejected. Base64 video is unsupported; each clip must be at least 3 seconds. - Automatic trim (one video): false/omitted keeps the start. For a continuation clip, set `autotrim_preserve_end_of_content: true` to retain the sole source video's ending/final-frame context. - Description: Google's latest and greatest Gemini Omni Video model, with full Video Edit/Reference (V2V) support! - Input guidance: Describe your video or video edits using Natural Language, referencing any uploaded image as needed: e.g: 'Add a harpsichord sound every time the man touches the screen, and make plant life grow from the screen when he does.', or (with uploads) 'Add the coffee cup from @Image1 to the left of the woman, change her clothes to the dress in @Image2' - Custom rules for this model: - Input video duration drives the output length. The listed length is the maximum accepted input video reference length and the fixed billing tier. - Video input is required. Send at least one video entry in video_image_data.video_list. ### Happy Horse 1.0 (`happy-horse-1-0-1080p`) - Model name / model_key: `happy-horse-1-0-1080p` - Legacy compatible model_key: `happyhorse101080p` (accepted for older integrations; new requests should send `happy-horse-1-0-1080p`.) - Creator: Alibaba - Duration costs: 720p — 5 seconds: 150 credits (~$0.7800); 720p — 10 seconds: 300 credits (~$1.56); 720p — 15 seconds: 450 credits (~$2.34); 1080p — 5 seconds: 300 credits (~$1.56); 1080p — 10 seconds: 600 credits (~$3.12); 1080p — 15 seconds: 900 credits (~$4.68) - Reference images supported: 9 - Supported aspects: 16:9, 9:16, 1:1, 4:3, 3:4 - Features: first frame, reference images up to 9 - Audio output: generates audio by default - Video modes: Optional mode key. Available: `720p` (720p), `standard` (1080p). First-party controls start on `standard`; standard requests omit `mode`, and only an explicitly selected alternate sends it. Modes are listed in resolution/tier order. - Description: Alibaba's newest frontier model; boasts breathtaking quality and prompt adherence, at full 1080p resolutions. - Custom rules for this model: - Reference content such as reference images, audio, or video cannot be combined with first-frame or last-frame inputs. ### WAN 2.7 (`wan-2-7-1080p`) - Model name / model_key: `wan-2-7-1080p` - Legacy compatible model_key: `wan271080pvideo` (accepted for older integrations; new requests should send `wan-2-7-1080p`.) - Creator: Alibaba - Duration costs: 720p — 5 seconds: 90 credits (~$0.4680); 720p — 10 seconds: 180 credits (~$0.9360); 1080p — 5 seconds: 130 credits (~$0.6760); 1080p — 10 seconds: 260 credits (~$1.35) - Reference images supported: 5 - Supported aspects: 16:9, 9:16, 1:1, 4:3, 3:4 - Features: first frame, last frame, reference images up to 5, audio input up to 1 file(s), supports media trim - Audio output: generates audio by default - Video modes: Optional mode key. Available: `720p` (720p), `standard` (1080p). First-party controls start on `standard`; standard requests omit `mode`, and only an explicitly selected alternate sends it. Modes are listed in resolution/tier order. - Audio references: send up to 1 URL strings or `url`/`base64_data` objects in `video_image_data.audio_input_urls`. Optional start/end timestamps must be paired. Valid ranges are physically trimmed before staging; each clip must be at least 3 seconds. - Description: WAN 2.7 excels in creating videos with breathtaking consistency across reference images, and high-fidelity textures. - Custom rules for this model: - Reference audio is interpreted as voice timbre when reference images are present. - Reference content such as reference images, audio, or video cannot be combined with first-frame or last-frame inputs. ### Seedance 2.0 (Fast) (`seedance-2-0-fast`) - Model name / model_key: `seedance-2-0-fast` - Legacy compatible model_key: `seedance2fast` (accepted for older integrations; new requests should send `seedance-2-0-fast`.) - Creator: ByteDance - Duration costs: 5 seconds: 120 credits (~$0.6240); 10 seconds: 240 credits (~$1.25); 15 seconds: 360 credits (~$1.87) - Reference images supported: 7 - Supported aspects: 16:9, 9:16, 1:1, 4:3, 3:4 - Features: first frame, last frame, reference images up to 7, audio input up to 3 file(s), video input up to 3 clip(s), automatic media trim - Audio output: generates audio by default - Audio references: send up to 3 URL strings or `url`/`base64_data` objects in `video_image_data.audio_input_urls`. Optional start/end timestamps must be paired. Valid ranges are physically trimmed before staging; each clip must be at least 3 seconds. - Video references: supported. Send up to 3 active-platform HTTPS URL strings or objects in `video_image_data.video_list`. Optional `start` plus `end`/`ends` ranges are physically trimmed before staging. Unsupported/non-boolean flags are rejected. Base64 video is unsupported; each clip must be at least 3 seconds. - Automatic trim (one video): false/omitted keeps the start. For a continuation clip, set `autotrim_preserve_end_of_content: true` to retain the sole source video's ending/final-frame context. - Description: Seedance 2.0's Fast model, offering a powerful budget entry for mobile-optimized outputs! - Input guidance: Describe your video using Natural Language, referencing any uploaded image as needed: e.g: 'An influencer style video of a woman with pink hair reviewing the coffee in her local cafe', or (with uploads) 'Open with the first 5 seconds of @Video1, then have the people from @Image1 and @Image2 walk into the scene.' - Warning: Seedance 2.0 prohibits the use of any real people uploaded in reference images, and will refuse any prompts that reference copyrighted content! We strongly recommend against referencing ANY copyrighted terms - for example, phrases like 'Pixar style' may result in your prompt being refused. We cannot offer refunds on any requests which are blocked by ByteDance/Seedance's content policies. - Custom rules for this model: - Reference content such as reference images, audio, or video cannot be combined with first-frame or last-frame inputs. - Audio input requires at least one reference image. - Last-frame input requires a first-frame input. - Combined selected audio input is limited to 15 seconds. - Combined selected video input is limited to 15 seconds. - The provider has a legacy 2-second combined minimum; the public API enforces its stricter global minimum of 3 seconds for every individual audio/video clip. - Video references are only supported via the Katana API. ### LTX 2.3 (`ltx-2-3`) - Model name / model_key: `ltx-2-3` - Legacy compatible model_key: `ltx23` (accepted for older integrations; new requests should send `ltx-2-3`.) - Legacy model: yes - Legacy note: Note that this is a legacy model, and has only been maintained for existing workflows. We do not recommend starting any new work with legacy models, as their quality levels are typically far below that of more modern models - while generally offering no cost benefits. - Creator: Lightricks - Duration costs: 5 seconds: 20 credits (~$0.1040); 10 seconds: 40 credits (~$0.2080); 15 seconds: 60 credits (~$0.3120); 20 seconds: 80 credits (~$0.4160) - Reference images supported: 0 - Supported aspects: 16:9, 9:16, 1:1 - Features: first frame, last frame, audio input up to 1 file(s), supports media trim - Audio output: generates audio by default - Audio references: send up to 1 URL strings or `url`/`base64_data` objects in `video_image_data.audio_input_urls`. Optional start/end timestamps must be paired. Valid ranges are physically trimmed before staging; each clip must be at least 3 seconds. - Description: Powerful open source audio-video model by Lightricks - hosted in-house for premium results at dramatically lower prices. - Custom rules for this model: - Audio input requires first-frame conditioning and cannot be combined with other frame or reference inputs. - Selected audio determines output duration; billing uses the smallest listed duration tier that covers the exact prepared audio, up to the model maximum. ### Kling O3 4K (`kling-o3-4k`) - Model name / model_key: `kling-o3-4k` - Legacy compatible model_key: `kling304k` (accepted for older integrations; new requests should send `kling-o3-4k`.) - Creator: Kling AI - Duration costs: 5 seconds: 450 credits (~$2.34); 10 seconds: 900 credits (~$4.68); 15 seconds: 1350 credits (~$7.02) - Reference images supported: 6 - Supported aspects: 16:9, 9:16, 1:1 - Features: first frame, last frame, reference images up to 6 - Audio output: generates audio by default - Description: Kling's flagship O3 model, in astonishing 4K Quality! - Custom rules for this model: none ### Kling 3.0 (`kling-3-0`) - Model name / model_key: `kling-3-0` - Legacy compatible model_key: `kling30` (accepted for older integrations; new requests should send `kling-3-0`.) - Creator: Kling AI - Duration costs: Standard — 5 seconds: 280 credits (~$1.46); Standard — 10 seconds: 550 credits (~$2.86); Standard — 15 seconds: 800 credits (~$4.16); Pro — 5 seconds: 350 credits (~$1.82); Pro — 10 seconds: 650 credits (~$3.38); Pro — 15 seconds: 925 credits (~$4.81) - Reference images supported: 6 - Supported aspects: 16:9, 9:16, 1:1 - Features: first frame, last frame, reference images up to 6 - Audio output: generates audio by default - Video modes: Optional mode key. Available: `standard` (Standard), `pro` (Pro). First-party controls start on `standard`; standard requests omit `mode`, and only an explicitly selected alternate sends it. Modes are listed in resolution/tier order. - Description: Kling's cutting-edge 3.0 model, with great prompt adherence, and stellar quality audio/video output. - Custom rules for this model: none ### Veo3.1 (`veo3-1`) - Model name / model_key: `veo3-1` - Legacy compatible model_key: `veo3` (accepted for older integrations; new requests should send `veo3-1`.) - Creator: Google - Duration costs: 4 seconds: 380 credits (~$1.98); 8 seconds: 750 credits (~$3.90) - Reference images supported: 0 - Supported aspects: 16:9, 9:16 - Features: first frame - Audio output: generates audio by default - Description: Google's updated Veo3.1 model, showcasing 1080p cinematic quality video, with full audio support. - Custom rules for this model: none ### Veo3.1 Fast (`veo3-1-fast`) - Model name / model_key: `veo3-1-fast` - Legacy compatible model_key: `veo3fast` (accepted for older integrations; new requests should send `veo3-1-fast`.) - Creator: Google - Duration costs: 4 seconds: 160 credits (~$0.8320); 8 seconds: 300 credits (~$1.56) - Reference images supported: 0 - Supported aspects: 16:9, 9:16 - Features: first frame - Audio output: generates audio by default - Description: Veo 3.1's little brother - bringing high speeds at lower costs, while still offering superb quality audio/video generation. - Custom rules for this model: none ### Veo3.1 Lite (`veo3-1-lite`) - Model name / model_key: `veo3-1-lite` - Legacy compatible model_key: `veo3lite` (accepted for older integrations; new requests should send `veo3-1-lite`.) - Creator: Google - Duration costs: 8 seconds: 140 credits (~$0.7280) - Reference images supported: 0 - Supported aspects: 16:9, 9:16 - Features: first frame - Audio output: generates audio by default - Description: Google's latest offering in their Veo3.1 line, packing excellent quality at an incredibly low cost! - Custom rules for this model: none ### Seedance Pro (`seedance-pro`) - Model name / model_key: `seedance-pro` - Legacy compatible model_key: `seedancepro` (accepted for older integrations; new requests should send `seedance-pro`.) - Legacy model: yes - Legacy note: Note that this is a legacy model, and has only been maintained for existing workflows. We do not recommend starting any new work with legacy models, as their quality levels are typically far below that of more modern models - while generally offering no cost benefits. - Creator: ByteDance - Duration costs: 5 seconds: 250 credits (~$1.30); 10 seconds: 450 credits (~$2.34) - Reference images supported: 0 - Supported aspects: 16:9, 9:16, 1:1, 4:3, 3:4 - Features: requires image input, first frame - Audio output: silent/no generated audio - Description: Excellent quality HD outputs across a range of styles, with excellent prompt adherence. - Custom rules for this model: none ### WAN 2.5 (`wan-2-5`) - Model name / model_key: `wan-2-5` - Legacy compatible model_key: `wan25` (accepted for older integrations; new requests should send `wan-2-5`.) - Legacy model: yes - Legacy note: Note that this is a legacy model, and has only been maintained for existing workflows. We do not recommend starting any new work with legacy models, as their quality levels are typically far below that of more modern models - while generally offering no cost benefits. - Creator: Alibaba Cloud - Duration costs: 5 seconds: 220 credits (~$1.14); 10 seconds: 400 credits (~$2.08) - Reference images supported: 0 - Supported aspects: 16:9, 9:16, 1:1, 4:3, 3:4, 21:9, 9:21 - Features: first frame - Audio output: generates audio by default - Description: Excellent quality HD outputs with full audio generation, at a stunningly low cost. - Custom rules for this model: none ### Hailuo 2 (MiniMax) (`hailuo-2-minimax`) - Model name / model_key: `hailuo-2-minimax` - Legacy compatible model_key: `hailuo2` (accepted for older integrations; new requests should send `hailuo-2-minimax`.) - Legacy model: yes - Legacy note: Note that this is a legacy model, and has only been maintained for existing workflows. We do not recommend starting any new work with legacy models, as their quality levels are typically far below that of more modern models - while generally offering no cost benefits. - Creator: Hailuo AI - Duration costs: 6 seconds: 200 credits (~$1.04) - Reference images supported: 0 - Supported aspects: 16:9, 9:16, 1:1, 4:3, 3:4, 21:9, 9:21 - Features: requires image input, first frame - Audio output: silent/no generated audio - Description: Great quality at competitive pricing, excels at text rendering. - Custom rules for this model: none ### Kling 2.1 (`kling-2-1-kling21`) - Model name / model_key: `kling-2-1-kling21` - Legacy compatible model_key: `kling21` (accepted for older integrations; new requests should send `kling-2-1-kling21`.) - Legacy model: yes - Legacy note: Note that this is a legacy model, and has only been maintained for existing workflows. We do not recommend starting any new work with legacy models, as their quality levels are typically far below that of more modern models - while generally offering no cost benefits. - Creator: Kling AI - Duration costs: 5 seconds: 160 credits (~$0.8320); 10 seconds: 300 credits (~$1.56) - Reference images supported: 0 - Supported aspects: 16:9, 9:16, 1:1, 4:3, 3:4, 21:9, 9:21 - Features: requires image input, first frame - Audio output: silent/no generated audio - Description: Quality close to Kling's master 2.0 model, at budget pricing. - Custom rules for this model: none ### Kling 2.1 (`kling-2-1-kling21loop`) - Model name / model_key: `kling-2-1-kling21loop` - Legacy compatible model_key: `kling21loop` (accepted for older integrations; new requests should send `kling-2-1-kling21loop`.) - Legacy model: yes - Legacy note: Note that this is a legacy model, and has only been maintained for existing workflows. We do not recommend starting any new work with legacy models, as their quality levels are typically far below that of more modern models - while generally offering no cost benefits. - Creator: Kling AI - Duration costs: 5 seconds: 160 credits (~$0.8320); 10 seconds: 300 credits (~$1.56) - Reference images supported: 0 - Supported aspects: 16:9, 9:16, 1:1, 4:3, 3:4, 21:9, 9:21 - Features: requires image input, first frame - Audio output: silent/no generated audio - Description: Infinitely looped videos with Kling 2.1! - Custom rules for this model: none ### Seedance Lite (`seedance-lite`) - Model name / model_key: `seedance-lite` - Legacy compatible model_key: `seedancelite` (accepted for older integrations; new requests should send `seedance-lite`.) - Legacy model: yes - Legacy note: Note that this is a legacy model, and has only been maintained for existing workflows. We do not recommend starting any new work with legacy models, as their quality levels are typically far below that of more modern models - while generally offering no cost benefits. - Creator: ByteDance - Duration costs: 5 seconds: 120 credits (~$0.6240); 10 seconds: 200 credits (~$1.04) - Reference images supported: 0 - Supported aspects: 16:9, 9:16, 1:1, 4:3, 3:4 - Features: requires image input, first frame - Audio output: silent/no generated audio - Description: Exceptional cost-to-performance video model. - Custom rules for this model: none ### Seedance Lite (`seedance-lite-loop`) - Model name / model_key: `seedance-lite-loop` - Legacy compatible model_key: `seedanceliteloop` (accepted for older integrations; new requests should send `seedance-lite-loop`.) - Legacy model: yes - Legacy note: Note that this is a legacy model, and has only been maintained for existing workflows. We do not recommend starting any new work with legacy models, as their quality levels are typically far below that of more modern models - while generally offering no cost benefits. - Creator: ByteDance - Duration costs: 5 seconds: 120 credits (~$0.6240); 10 seconds: 200 credits (~$1.04) - Reference images supported: 0 - Supported aspects: 16:9, 9:16, 1:1, 4:3, 3:4 - Features: requires image input, first frame - Audio output: silent/no generated audio - Description: Infinitely looped videos with Seedance Lite! - Custom rules for this model: none ### Kling 2.0 (`kling-2-0`) - Model name / model_key: `kling-2-0` - Legacy compatible model_key: `kling20` (accepted for older integrations; new requests should send `kling-2-0`.) - Legacy model: yes - Legacy note: Note that this is a legacy model, and has only been maintained for existing workflows. We do not recommend starting any new work with legacy models, as their quality levels are typically far below that of more modern models - while generally offering no cost benefits. - Creator: Kling AI - Duration costs: 5 seconds: 350 credits (~$1.82); 10 seconds: 650 credits (~$3.38) - Reference images supported: 0 - Supported aspects: 16:9, 9:16, 1:1 - Features: requires image input, first frame - Audio output: silent/no generated audio - Description: Kling's raw/master 2.0 video model. Excellent quality, but very highly priced for video-only. - Custom rules for this model: none ### Kling 1.6 (`kling-1-6`) - Model name / model_key: `kling-1-6` - Legacy compatible model_key: `kling16` (accepted for older integrations; new requests should send `kling-1-6`.) - Legacy model: yes - Legacy note: Note that this is a legacy model, and has only been maintained for existing workflows. We do not recommend starting any new work with legacy models, as their quality levels are typically far below that of more modern models - while generally offering no cost benefits. - Creator: Kling AI - Duration costs: 5 seconds: 130 credits (~$0.6760); 10 seconds: 250 credits (~$1.30) - Reference images supported: 0 - Supported aspects: 16:9, 9:16, 1:1 - Features: requires image input, first frame - Audio output: silent/no generated audio - Description: [Legacy] Kling's early-era 1.6 video generation model. - Custom rules for this model: none