# CreoHub API Base URL: https://api.creohub.ai/v1 CreoHub API (https://creohub.ai) is a prepaid generation queue for video, image, avatar, upscale and speech models. One key, one account shared with the CreoHub studio: the money balance or subscription credits, the price is fixed before a job starts. Accounts in Russia pay in RUB by MIR card, SBP or SberPay. Prices below are USD. POST https://api.creohub.ai/v1/estimate returns price_rub_micro for a RUB account. ## Which file to read This file is the shared guide: auth, queue, webhooks, errors, and the list of model ids that exist today. When the user names a model, fetch that model's file and write the call from it. Do not use an id or a field list remembered from training data: https://api.creohub.ai/v1/models/{model_id}/llms.txt That file is the model's price, input fields, defaults, allowed values and a ready-to-run request. It is generated from the same schema this API enforces. GET https://api.creohub.ai/v1/models/{model_id}/schema is the JSON Schema alone. OpenAPI at https://api.creohub.ai/v1/openapi.json describes the shared routes, not every model. A model absent from OpenAPI can still be in the catalog. If a file and the catalog disagree about a field, use the model file. Start here when the user did not name a model: - text: `openai/gpt-4.1` — https://api.creohub.ai/v1/models/openai/gpt-4.1/llms.txt - image: `flux-2-pro` — https://api.creohub.ai/v1/models/flux-2-pro/llms.txt - image: `nano-banana-pro` — https://api.creohub.ai/v1/models/nano-banana-pro/llms.txt - video: `veo-3.1` — https://api.creohub.ai/v1/models/veo-3.1/llms.txt - video: `kling-3.0-pro` — https://api.creohub.ai/v1/models/kling-3.0-pro/llms.txt - audio: `whisper` — https://api.creohub.ai/v1/models/whisper/llms.txt - avatar: `kling-avatar-2.0` — https://api.creohub.ai/v1/models/kling-avatar-2.0/llms.txt - upscale: `topaz-image-upscale` — https://api.creohub.ai/v1/models/topaz-image-upscale/llms.txt ## If you were given a key A key that starts with creohub_live_ (older keys: ch_live_) belongs to this API. Check it first, nothing is charged: curl https://api.creohub.ai/v1/account -H "Authorization: Key creohub_live_…" Then pick a model in https://api.creohub.ai/v1/models and run it as below. For a first test use a cheap image model, e.g.: curl -X POST https://api.creohub.ai/v1/run/flux-2-pro -H "Authorization: Key creohub_live_…" -H "Content-Type: application/json" -d '{"prompt":"a red fox in the snow"}' If your environment has no network access to api.creohub.ai, ask the user to connect CreoHub as an MCP server instead. ## MCP server for agents URL: https://api.creohub.ai/mcp transport: Streamable HTTP Auth: OAuth 2.1 sign-in in the browser (ChatGPT, Claude, Cursor, VS Code, Codex discover it automatically), or the header Authorization: Bearer creohub_live_… Tools: get_account, list_models, get_model_schema, estimate_cost, generate, get_request, cancel_request, list_requests. Claude Code: claude mcp add --transport http --scope user creohub https://api.creohub.ai/mcp Codex: codex mcp add creohub --url https://api.creohub.ai/mcp Gemini CLI: gemini mcp add --transport http -s user creohub https://api.creohub.ai/mcp Claude (web, Desktop, mobile): https://claude.ai/customize/connectors?modal=add-custom-connector&connectorName=CreoHub&connectorUrl=https%3A%2F%2Fapi.creohub.ai%2Fmcp Setup for every client: https://creohub.ai/developers/agents ## Request format POST https://api.creohub.ai/v1/queue/{model_id} Authorization: Key (Bearer is accepted too) Content-Type: application/json The body is the model's input schema: prompt, image_url, video_url, duration, resolution, aspect_ratio, generate_audio, num_images and so on. When writing code for one model, fetch https://api.creohub.ai/v1/models/{model_id}/llms.txt. GET https://api.creohub.ai/v1/models/{model_id}/schema returns the same input and output as JSON Schema: required fields, enum values and defaults (for example Veo duration is "4s" | "6s" | "8s"). Missing required fields and values outside an enum return 400 validation_error with detail.missing and detail.invalid before anything is reserved. Omitted duration, resolution, generate_audio and num_images take the model defaults from the schema; the same values are priced and sent to the generation. Use the model id exactly as listed in the catalog below. Unknown ids return 400 unknown_model. ## Account and balance GET https://api.creohub.ai/v1/account with the key returns: {"username":"…","credits":{"current_balance":1234.5,"currency":"RUB"},"balance":{"currency":"RUB","available_rub_micro":"…","available_usd_micro":"…","reserved_rub_micro":"…","reserved_usd_micro":"…","open_requests":1,"rub_per_usd":…},"key":{"rpm":300,"max_in_flight":8,"in_flight":1,"monthly_limit_usd_micro":null,"month_spent_usd_micro":"…","month_remaining_usd_micro":null},"webhook_secret":"whsec_…","topup_url":"https://creohub.ai/developers/billing"} GET https://api.creohub.ai/v1/account/billing?expand=credits returns the same body (credits.current_balance for clients that read a credits field). Balance polls do not count against the rate limit. available is what a new job can reserve; reserved is held by open jobs and comes back if they fail. The body also has subscription: {"active","plan_id","credits_available","credits_reserved","period_end"}, pays_with ("balance" or "credits") and key.wallet. ## Balance or subscription credits Each key has a wallet setting, changed in the cabinet: auto (default) spends subscription credits while they cover the whole estimate and the money balance otherwise; balance spends money only; credits spends subscription credits only. Credits are priced from the same USD estimate. Each request says which wallet paid: wallet "balance" with *_rub_micro for RUB accounts, or wallet "credits" with quoted_credits and captured_credits. Every 202 carries balance after the hold: {"wallet":"balance","available_usd_micro",…} or {"wallet":"credits","credits_available"}. Every request carries wallet, currency, quoted_usd_micro and captured_usd_micro; USD is the reference amount for key spend limits. Text models use POST https://api.creohub.ai/v1/chat/completions, not the queue. Body: {"model":"openai/gpt-4.1","messages":[{"role":"user","content":"…"}],"max_tokens":400} A missing max_tokens reserves 4096 completion tokens, and that same limit is applied to the reply. The reservation is replaced by the actual token charge and is never higher than the reservation. stream:true answers as text/event-stream. POST https://api.creohub.ai/v1/estimate with input.input_tokens and input.output_tokens prices a text call without running it. A non-stream answer carries billing: {"request_id","wallet","currency","charged_usd_micro","charged_rub_micro" or "charged_credits"}. Every answer has the X-Request-Id header; GET https://api.creohub.ai/v1/requests/{id} shows the charge for streams. Optional: Idempotency-Key header. The same key with the same body replays the original response; a different body returns 409. Optional: webhook_url in the body or as a query parameter. The URL must be public. CreoHub POSTs the final request object there, up to 5 attempts until a 2xx. Verify it: X-Creohub-Signature = hex HMAC-SHA256(webhook_secret, X-Creohub-Timestamp + "." + raw body). webhook_secret comes from GET https://api.creohub.ai/v1/account. 202 response: {"status":"IN_QUEUE","request_id":"…","status_url":"https://api.creohub.ai/v1/requests/{id}/status","response_url":"https://api.creohub.ai/v1/requests/{id}/response","cancel_url":"https://api.creohub.ai/v1/requests/{id}/cancel","model_id":"…","wallet":"balance","currency":"RUB","quoted_usd_micro":"…","quoted_rub_micro":"…","captured_usd_micro":null,"balance":{"wallet":"balance","currency":"RUB","available_usd_micro":"…","available_rub_micro":"…"}} Poll GET status_url until status is COMPLETED (other values: IN_QUEUE, IN_PROGRESS, FAILED, CANCELLED). Each status GET refreshes the live queue state. Then GET response_url. The body is the model output. Media fields hold signed CreoHub URLs: https://api.creohub.ai/v1/requests/{id}/output/{index}?exp=…&sig=… Signed URLs are reissued on every response read. Download promptly. A single request allows 200 full downloads; Range requests do not count. After the cap the URL returns 429 download_cap. Cancel: PUT or POST cancel_url. Possible answers: 200 {"status":"OK"} — the job left the queue and will not run; the reservation is returned, balance shows the wallet after the refund. 202 {"status":"CANCELLATION_REQUESTED"} — the job was already running and got a stop signal. If it still produces a result, the result is delivered and charged; if it stops, nothing is charged. 400 {"status":"ALREADY_COMPLETED","error":"already_completed"} — the job finished first; the result is charged as usual. 409 not_cancellable — the queue has not confirmed the job yet; retry in a few seconds. 503 cancel_unavailable — retry. Short models can use POST https://api.creohub.ai/v1/run/{model_id}: the call waits up to 90 seconds and returns the result, or 202 if still running. GET https://api.creohub.ai/v1/requests lists recent jobs for the key. ## Input files POST https://api.creohub.ai/v1/files with the raw bytes and the correct Content-Type. Response: {"file_id":"chfile_…"}. Put the file_id in image_url, video_url, audio_url or any URL field of the model input. ## Pricing and billing GET https://api.creohub.ai/v1/models is the live price list. Prices are per second, per image, per megapixel or per 1M tokens and already include everything the caller pays. POST https://api.creohub.ai/v1/estimate with {"model_id","input"} returns the exact price for a request without starting it. On submit the estimated amount is reserved on the account. After the result the actual amount is charged, never above the estimate. If the generation fails, the reservation is released and nothing is charged. Durations may be "8s", "8" or 8; fractions round up. Catalog field price_tiers lists the per-unit price for every resolution and generate_audio combination. Without the schema defaults a missing duration or num_images uses default_units from the catalog (omitted_units), not the maximum. Seedance reference-to-video with video references: pass input_duration_sec so the estimate matches the final charge. The account currency may be RUB. The FX rate is fixed at reservation time; estimate returns price_rub_micro for RUB accounts. ## Errors 401 unauthorized — missing or revoked key 402 insufficient_balance — detail: currency, required_usd_micro, available_usd_micro, required_rub_micro, available_rub_micro, topup_url, credits_available 402 insufficient_credits | subscription_inactive — the key spends credits only; detail: credits_required, credits_available, subscription_url 403 account_inactive — the account is blocked or closed 402 key_limit_reached — the key's monthly spend limit is reached; raise it in the cabinet or use another key 400 unknown_model | unpriceable | bad_webhook_url | bad_messages | use_chat_completions | validation_error | unknown_file 409 idempotency_conflict | request_not_ready | not_cancellable 429 rate_limited — writes per key per minute; Retry-After says how many seconds to wait. Status and balance polls do not count. 429 too_many_in_flight — too many open jobs for the key 429 download_cap — this output was downloaded too many times 503 capacity_unavailable — temporary, retry with backoff 502 submit_failed — nothing was charged 410 expired — the signed output URL is no longer valid ## References OpenAPI: https://api.creohub.ai/v1/openapi.json Catalog JSON: https://api.creohub.ai/v1/models Cabinet and keys: https://creohub.ai/developers ## Catalog Price per unit includes everything the caller pays. max = the longest duration or the largest count one request may ask for. - veo-3.1 | video | $0.3600/sec | max 8 sec tiers=720p:$0.3600,720p+audio:$0.7200,1080p:$0.3600,1080p+audio:$0.7200,4k:$0.7200,4k+audio:$1.08 - veo-3.1-image-to-video | video | $0.3600/sec | max 8 sec tiers=720p:$0.3600,720p+audio:$0.7200,1080p:$0.3600,1080p+audio:$0.7200,4k:$0.7200,4k+audio:$1.08 - veo-3.1-fast | video | $0.1800/sec | max 8 sec tiers=720p:$0.1800,720p+audio:$0.2700,1080p:$0.1800,1080p+audio:$0.2700,4k:$0.5400,4k+audio:$0.6300 - veo-3.1-fast-image-to-video | video | $0.1800/sec | max 8 sec tiers=720p:$0.1800,720p+audio:$0.2700,1080p:$0.1800,1080p+audio:$0.2700,4k:$0.5400,4k+audio:$0.6300 - veo-3.1-lite | video | $0.0540/sec | max 8 sec tiers=720p:$0.0540,720p+audio:$0.0900,1080p:$0.0900,1080p+audio:$0.1440 - veo-3.1-lite-image-to-video | video | $0.0540/sec | max 8 sec tiers=720p:$0.0540,720p+audio:$0.0900,1080p:$0.0900,1080p+audio:$0.1440 - veo-3.1-reference-to-video | video | $0.3600/sec | max 8 sec tiers=720p:$0.3600,720p+audio:$0.7200,1080p:$0.3600,1080p+audio:$0.7200,4k:$0.7200,4k+audio:$1.08 - veo-3.1-fast-reference-to-video | video | $0.1800/sec | max 8 sec tiers=720p:$0.1800,720p+audio:$0.2700,1080p:$0.1800,1080p+audio:$0.2700,4k:$0.5400,4k+audio:$0.6300 - kling-3.0-pro | video | $0.2016/sec | max 15 sec tiers=any:$0.2016,any+audio:$0.3024 - kling-3.0-pro-image-to-video | video | $0.2016/sec | max 15 sec tiers=any:$0.2016,any+audio:$0.3024 - kling-3.0-standard | video | $0.2520/sec | max 15 sec - kling-3.0-standard-image-to-video | video | $0.2520/sec | max 15 sec - kling-3.0-4k | video | $0.7560/sec | max 15 sec - kling-3.0-4k-image-to-video | video | $0.7560/sec | max 15 sec - kling-2.6-pro | video | $0.1260/sec | max 10 sec tiers=any:$0.1260,any+audio:$0.2520 - kling-2.6-pro-image-to-video | video | $0.1260/sec | max 10 sec tiers=any:$0.1260,any+audio:$0.2520 - kling-2.5-turbo-pro | video | $0.1260/sec | max 10 sec - kling-2.5-turbo-pro-image-to-video | video | $0.1260/sec | max 10 sec - kling-o3-pro | video | $0.2016/sec | max 15 sec tiers=any:$0.2016,any+audio:$0.2520 - kling-o3-pro-image-to-video | video | $0.2016/sec | max 15 sec tiers=any:$0.2016,any+audio:$0.2520 - kling-3.0-pro-motion-control | video | $0.3024/sec | max 30 sec - kling-2.6-motion-control | video | $0.1260/sec | max 30 sec - kling-o1-edit | video | $0.2268/sec | max 30 sec - kling-o1-edit-pro | video | $0.3024/sec | max 30 sec - kling-o3-pro-edit | video | $0.2520/sec | max 30 sec - kling-o3-4k-edit | video | $0.7560/sec | max 30 sec - luma-ray-2-reframe | video | $0.3600/sec | max 30 sec - seedance-2.0 | video | $1.22/sec | max 15 sec tiers=480p:$0.2421,720p:$0.5443,1080p:$1.22,4k:$4.90 - seedance-2.0-image-to-video | video | $1.22/sec | max 15 sec tiers=480p:$0.2421,720p:$0.5443,1080p:$1.22,4k:$4.90 - seedance-2.0-fast | video | $0.4355/sec | max 15 sec tiers=480p:$0.1937,720p:$0.4355,1080p:$0.9798 - seedance-2.0-fast-image-to-video | video | $0.4355/sec | max 15 sec tiers=480p:$0.1937,720p:$0.4355,1080p:$0.9798 - seedance-2.0-reference-to-video | video | $1.22/sec | max 15 sec tiers=480p:$0.2421,720p:$0.5443,1080p:$1.22,4k:$4.90 - seedance-2.5 | video | $0.8320/sec | max 30 sec tiers=480p:$0.3701,720p:$0.8320,1080p:$1.87 - seedance-2.5-image-to-video | video | $0.8320/sec | max 30 sec tiers=480p:$0.3701,720p:$0.8320,1080p:$1.87 - seedance-2.5-reference-to-video | video | $0.8320/sec | max 30 sec tiers=480p:$0.3701,720p:$0.8320,1080p:$1.87 - seedance-2.5-extended | video | $0.4991/sec | max 30 sec tiers=480p:$0.2221,720p:$0.4991,1080p:$1.23 - seedance-2.5-extended-image | video | $0.4991/sec | max 30 sec tiers=480p:$0.2221,720p:$0.4991,1080p:$1.23 - seedance-2.5-reference-extended | video | $0.4991/sec | max 30 sec tiers=480p:$0.2221,720p:$0.4991,1080p:$1.23 - wan-3.0-prime-extended | video | $0.2268/sec | max 30 sec tiers=480p:$0.1102,720p:$0.2268,1080p:$0.4536 - wan-3.0-prime-extended-image | video | $0.2268/sec | max 30 sec tiers=480p:$0.1102,720p:$0.2268,1080p:$0.4536 - sora-2 | video | $0.1800/sec | max 20 sec - sora-2-image-to-video | video | $0.1800/sec | max 20 sec - sora-2-pro | video | $0.5400/sec | max 20 sec tiers=720p:$0.5400,1080p:$0.9000 - sora-2-pro-image-to-video | video | $0.5400/sec | max 20 sec tiers=720p:$0.5400,1080p:$0.9000 - wan-2.7 | video | $0.1800/sec | max 15 sec - wan-2.7-image-to-video | video | $0.1800/sec | max 15 sec - wan-3.0-prime | video | $0.2520/sec | max 30 sec tiers=480p:$0.1224,720p:$0.2520,1080p:$0.5040 - wan-3.0-prime-image-to-video | video | $0.2520/sec | max 30 sec tiers=480p:$0.1224,720p:$0.2520,1080p:$0.5040 - happy-horse-1.0 | video | $0.5040/sec | max 15 sec tiers=720p:$0.2520,1080p:$0.5040 - happy-horse-1.0-image-to-video | video | $0.5040/sec | max 15 sec tiers=720p:$0.2520,1080p:$0.5040 - happy-horse-1.1 | video | $0.3240/sec | max 15 sec tiers=720p:$0.2520,1080p:$0.3240 - happy-horse-1.1-image-to-video | video | $0.3240/sec | max 15 sec tiers=720p:$0.2520,1080p:$0.3240 - flux-3-video | video | $0.3060/sec | max 20 sec tiers=720p:$0.3060,1080p:$0.5220 - flux-3-video-image-to-video | video | $0.3060/sec | max 20 sec tiers=720p:$0.3060,1080p:$0.5220 - grok-imagine-video | video | $0.1260/sec | max 15 sec tiers=480p:$0.0900,720p:$0.1260 - grok-imagine-video-image-to-video | video | $0.1260/sec | max 15 sec tiers=480p:$0.0900,720p:$0.1260 - grok-imagine-video-1.5 | video | $0.2520/sec | max 15 sec tiers=480p:$0.1440,720p:$0.2520,1080p:$0.4500 - grok-imagine-video-1.5-image-to-video | video | $0.2700/sec | max 15 sec tiers=480p:$0.1620,720p:$0.2700,1080p:$0.4680 - grok-imagine-video-1.5-reference-to-video | video | $0.2520/sec | max 15 sec tiers=480p:$0.1440,720p:$0.2520 - nano-banana-pro | image | $0.2700/image | max 4 image - nano-banana-2 | image | $0.1440/image | max 4 image tiers=0.5k:$0.1080,1k:$0.1440,2k:$0.2160,4k:$0.2880 - gpt-image-2 | image | $0.0954/image | max 4 image - flux-2-pro | image | $0.0540/MP | max 16 MP - seedream-5-lite-edit | image | $0.0630/image | max 4 image - seedream-5-lite | image | $0.0630/image | max 4 image - seedream-5-pro | image | $0.2430/image | max 4 image tiers=480p:$0.1215,720p:$0.1215,1080p:$0.2430,4k:$0.2430 - seedream-5-pro-extended | image | $0.1296/image | max 4 image tiers=1k:$0.0648,2k:$0.1296 - seedream-5-5-extended | image | $0.0486/image | max 4 image tiers=1k:$0.0351,1.5k:$0.0351,2k:$0.0486,4k:$0.0945 - seedream-5-5-layers-extended | image | $0.0486/image | max 100 image tiers=1k:$0.0351,1.5k:$0.0351,2k:$0.0486,auto:$0.0486 - qwen-image-edit-extended | image | $0.0684/image | max 1 image - recraft-v4-pro | image | $0.4500/image | max 4 image - recraft-v4-vector | image | $0.1440/image | max 4 image - hidream-o1 | image | $0.0180/MP | max 16 MP - qwen-image | image | $0.0360/MP | max 16 MP - qwen-image-edit | image | $0.0540/MP | max 16 MP - grok-imagine-image | image | $0.0900/image | max 4 image - background-removal | image | $0.0360/image | max 1 image - topaz-image-upscale | upscale | $0.1440/image | max 4 image - topaz-image-upscale-generative | upscale | $0.8640/image | max 4 image - topaz-video-upscale | upscale | $0.1440/sec | max 60 sec - topaz-video-upscale-generative | upscale | $0.4680/sec | max 60 sec - kling-avatar-2.0 | avatar | $0.1012/sec | max 30 sec - omnihuman-1.5 | avatar | $0.1012/sec | max 30 sec - latentsync | avatar | $0.0090/sec | max 60 sec - lipsync-2 | avatar | $0.0900/sec | max 60 sec - lipsync-2-pro | avatar | $0.1500/sec | max 60 sec - lipsync-3 | avatar | $0.2399/sec | max 60 sec - whisper | audio | $0.0022/sec | max 3600 sec - scribe-v2 | audio | $0.0002/sec | max 3600 sec - stem-separation | audio | $0.0013/sec | max 3600 sec - openai/gpt-6-astra | text | $36.00/1M input, $90.00/1M output | context 1050000 - openai/gpt-6-astra-pro | text | $36.00/1M input, $90.00/1M output | context 1050000 - openai/gpt-5.4 | text | $4.50/1M input, $27.00/1M output | context 256000 - anthropic/claude-sonnet-4.6 | text | $5.40/1M input, $27.00/1M output | context 200000 - anthropic/claude-opus-4.6 | text | $9.00/1M input, $45.00/1M output | context 200000 - google/gemini-2.5-pro | text | $2.25/1M input, $18.00/1M output | context 1000000 - openai/gpt-4.1 | text | $3.60/1M input, $14.40/1M output | context 1047576 - google/gemini-2.5-flash | text | $0.5400/1M input, $4.50/1M output | context 1000000 - deepseek/deepseek-v3 | text | $0.4500/1M input, $1.80/1M output | context 128000 - meta-llama/llama-4-maverick | text | $0.3600/1M input, $1.44/1M output | context 128000