Price before the run
POST /v1/estimate returns the exact cost of a request. The catalog lists prices per second, image, megapixel or 1M tokens.
For AI agents
Official MCP server: the agent sees models, prices and the balance, runs generations and returns the files. You sign in with your CreoHub account, no key copying.
https://api.creohub.ai/mcp
While connecting, CreoHub asks you to approve access and issues a separate key for the agent. Its spend shows in the dashboard, and you can revoke it at any time.
Use the CreoHub API (https://creohub.ai) to generate images, video, speech and text.
API key: creohub_live_…
Send it as the header "Authorization: Key creohub_live_…". Base URL: https://api.creohub.ai/v1
Read the instructions first: https://api.creohub.ai/v1/llms.txt
1. Check the key and the balance: GET https://api.creohub.ai/v1/account
2. Cheap test: POST https://api.creohub.ai/v1/run/flux-2-pro with {"prompt":"a red fox in the snow"}
If your sandbox cannot reach api.creohub.ai, stop and tell me to connect the CreoHub MCP server instead: https://api.creohub.ai/mcpCatalog
Prices are per unit: a second of video, an image, a megapixel, or 1M tokens. The exact cost of any request is available before it starts via POST /v1/estimate.
Integration
The Default key appears right after sign-up. It runs on the same balance as the CreoHub studio — no separate top-up needed.
POST /v1/run/{model_id} returns the result in one response. For video and long jobs use POST /v1/queue/{model_id}: the response holds request_id and links to the status, the result and cancel.
Poll status_url or pass webhook_url. Finished files are served through signed CreoHub links valid for 24 hours.
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","image_size":"landscape_4_3"}'Billing
POST /v1/estimate returns the exact cost of a request. The catalog lists prices per second, image, megapixel or 1M tokens.
The amount is reserved when the job is queued. After the result the actual cost is charged — never above the estimate.
If a generation fails, the reserve returns to the balance automatically. You pay only for results.
Separate keys for projects and teams, a monthly limit per key and a per-model breakdown in the console.
Account
After sign-up the Default key is already waiting in the console. Catalog, prices and docs are open without an account.
Reliability
FAQ
By the model unit: a second of video, an image, a megapixel, or 1M tokens. A missing duration, resolution, generate_audio or num_images takes the model default, and the same value is sent to the generation. Prices by resolution and audio are in the catalog price_tiers. For text, pass max_tokens.
No. The API and the CreoHub studio share one account balance. Every operation shows in the wallet tagged API. GET /v1/account returns the balance, holds and the key limit.
Yes. By default a key spends the credits of an active subscription first and the balance when they run out. Each key can be set to subscription only, balance only, or automatic. GET /v1/account returns the credits left.
A signed link is valid for 24 hours and then returns 410. Download files as soon as the result arrives.
POST /v1/files with the bytes and a Content-Type. The response holds a file_id like chfile_…, which goes into any URL field of the input.
ChatGPT, Claude, Cursor, Claude Code, Codex, VS Code and Gemini CLI connect to the MCP server https://api.creohub.ai/mcp and sign in with a CreoHub account. Instructions for each platform are above. Agents with internet access only need a key and https://api.creohub.ai/v1/llms.txt.