AI API: one key, pay per result
77 models on one key · Pay per result · $0 for a failed job
Add image, video and text generation to a bot, a product or a workflow in a few minutes. One API key, the price before you start, and an automatic refund if a job fails.
- Card from any country
- Pay per result
- Refund on failure
- Signed webhooks
- MCP server
- OpenAPI 3.1
Your first request in a minute
Create a job, then poll its status — or pass a webhook and we will POST the result.
curl -X POST https://mixmedia.tech/api/v1/jobs/createTask \
-H "Authorization: Bearer $MIXMEDIA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"nano-banana-pro","input":{"prompt":"Storyboard frame: a woman in a yellow raincoat on a night street, cinematic light","resolution":"2K","aspect_ratio":"9:16"}}'
# status (or pass callBackUrl — we will POST the result)
curl "https://mixmedia.tech/api/v1/jobs/recordInfo?taskId=TASK_ID" \
-H "Authorization: Bearer $MIXMEDIA_API_KEY"
import os, time, requests
API = "https://mixmedia.tech/api/v1"
KEY = os.environ["MIXMEDIA_API_KEY"]
H = {"Authorization": f"Bearer {KEY}"}
r = requests.post(f"{API}/jobs/createTask", headers=H, json={
"model": "nano-banana-pro",
"input": {
"prompt": "Storyboard frame: a woman in a yellow raincoat on a night street, cinematic light",
"resolution": "2K",
"aspect_ratio": "9:16"
}
})
r.raise_for_status()
task_id = r.json()["data"]["taskId"]
while True:
info = requests.get(f"{API}/jobs/recordInfo", headers=H, params={"taskId": task_id}).json()["data"]
if info.get("state") in ("success", "fail"):
print(info)
break
time.sleep(2)
const API = "https://mixmedia.tech/api/v1";
const headers = { Authorization: `Bearer ${process.env.MIXMEDIA_API_KEY}`, "Content-Type": "application/json" };
const created = await fetch(`${API}/jobs/createTask`, { method: "POST", headers, body: JSON.stringify({
"model": "nano-banana-pro",
"input": {
"prompt": "Storyboard frame: a woman in a yellow raincoat on a night street, cinematic light",
"resolution": "2K",
"aspect_ratio": "9:16"
}
}) }).then((r) => r.json());
let info;
for (;;) {
info = (await fetch(`${API}/jobs/recordInfo?taskId=${created.data.taskId}`, { headers }).then((r) => r.json())).data;
if (info.state === "success" || info.state === "fail") break;
await new Promise((r) => setTimeout(r, 2000));
}
console.log(info);
Endpoints: POST /api/v1/jobs/createTask, GET /api/v1/jobs/recordInfo?taskId=…, POST /api/v1/files/upload, GET /api/v1/models, GET /api/v1/user/balance. Spec: openapi.json.
Models and USD prices
The exact amount for your parameters is in the calculator and on the job before you start. Prices below are in USD, from the same live source as the rest of the site.
| Model | API ID | Price |
|---|---|---|
| Seedream 5.5 | seedream-5.5 | from $0.04 |
| FLUX 3 Image | flux-3-image | from $0.05 |
| GPT Image 2.6 | gpt-image-2.6-text-to-image | from $0.035 |
| Flux Dev | flux-dev | $0.033 |
| GPT Image 2.6 Edit | gpt-image-2.6-image-to-image | from $0.035 |
| FLUX 3 Image Klein | flux-3-image-klein | from $0.013 |
| GPT Image 2.5 | gpt-image-2.5-text-to-image | from $0.05 |
| Kling V4 Image | kling-v4-image | from $0.075 |
| GPT Image 2.5 Edit | gpt-image-2.5-image-to-image | from $0.05 |
| Kling V4 Long Image | kling-v4-long-image | from $0.279 |
| MiniMax H3 Image | minimax-h3-image | from $0.035 |
| MAI Image 2.7 | mai-image-2.7 | from $0.037 |
| Nano Banana 2.1 | nano-banana-2 | from $0.025 |
| MAI Image 2.7 Flash | mai-image-2.7-flash | from $0.012 |
| MiniMax H3 Image Highspeed | minimax-h3-image-highspeed | from $0.055 |
| Nano Banana Pro | nano-banana-pro | from $0.05 |
| Nano Banana | google/nano-banana | $0.03 |
| Nano Banana Lite | nano-banana-lite | $0.02 |
| Nano Banana Edit | google/nano-banana-edit | $0.03 |
| Nano Banana Lite Edit | nano-banana-lite-edit | $0.02 |
| Seedream Pro | seedream-pro | from $0.05 |
| Seedream Flash | seedream-flash | $0.025 |
| Claude Fable 5.2 | claude-fable-5.2 | $10.88 / 1M input · $54.4 / 1M output |
| Claude Opus 5.5 | claude-opus-5.5 | $4.16 / 1M input · $20.8 / 1M output |
| Claude Sonnet 5.5 | claude-sonnet-5.5 | $2.08 / 1M input · $10.4 / 1M output |
| Claude Haiku 5.5 | claude-haiku-5.5 | $0.104 / 1M input · $0.52 / 1M output |
| Claude Sonnet 4.5 | claude-sonnet-4.5 | $2.52 / 1M input · $12.6 / 1M output |
| Gemini 4 Argon | gemini-4-argon | $2.72 / 1M input · $13.6 / 1M output |
| Gemini 4 Carbon | gemini-4-carbon | $2.72 / 1M input · $13.6 / 1M output |
| Gemini 3.8 Flash | gemini-3.8-flash | $0.78 / 1M input · $3.9 / 1M output |
| Gemini 4 Hydrogen | gemini-4-hydrogen | $1.56 / 1M input · $7.8 / 1M output |
| Gemini 3.7 Flash | gemini-3.7-flash | $0.78 / 1M input · $3.9 / 1M output |
| Gemini 3.6 Flash | gemini-3.6-flash | $1.56 / 1M input · $7.8 / 1M output |
| Gemini 3.1 Pro | gemini-3.1-pro | $2.08 / 1M input · $12.48 / 1M output |
| Gemini 3 Pro | gemini-3-pro | $2.08 / 1M input · $12.48 / 1M output |
| GPT-6.2 Astra | gpt-6.2-astra | $8.32 / 1M input · $41.6 / 1M output |
| GPT-6.2 Sol | gpt-6.2-sol | $2.08 / 1M input · $10.4 / 1M output |
| GPT-6.1 Sol | gpt-6.1-sol | $1.68 / 1M input · $8.4 / 1M output |
| GPT-6 Astra | gpt-6-astra | $8.4 / 1M input · $42 / 1M output |
| GPT-5.6 | gpt-5.6 | $4.16 / 1M input · $20.8 / 1M output |
| DeepSeek V4 Pro | deepseek-v4-pro | $0.8743 / 1M input · $2.6229 / 1M output |
| DeepSeek V4.1 Flash | deepseek-v4.1-flash | $0.1943 / 1M input · $0.7771 / 1M output |
| Kimi K3.1 Pro | kimi-k3.1-pro | $1.36 / 1M input · $6.8 / 1M output |
| MiniMax H3 | minimax-h3-video | from $0.075/sec |
| Gemini Omni 1.2 Flash | gemini-omni-1.2-flash | from $0.026/sec |
| Gemini Omni Flash | gemini-omni-flash | from $0.049/sec |
| Grok Imagine 1.5 | grok-imagine-1.5 | from $0.096/sec |
| Kling 4.0 Flash | kling-4.0-flash | from $0.112/sec |
| Grok Imagine | grok-imagine | from $0.065/sec |
| Kling 4.0 | kling-4.0 | from $0.186/sec |
| Higgsfield Genjutsu | higgsfield-genjutsu | from $0.414/sec |
| Vidu Q4 | vidu-q4 | from $0.059/sec |
| Kling 3.0 | kling-3.0 | from $0.091/sec |
| Kling 3.0 Omni | kling-3.0-omni | from $0.091/sec |
| Kling 3.0 Motion Control | kling-3.0-motion-control | from $0.134/sec |
| Kling 2.6 | kling-2.6 | from $0.072/sec |
| Kling 2.6 Motion Control | kling-2.6-motion-control | from $0.075/sec |
| Kling 2.5 Turbo | kling-2.5-turbo | from $0.082/sec |
| PixVerse V6 | pixverse-v6 | from $0.037/sec |
| Pruna P-Video Replace | pruna-p-video-replace | from $0.039/sec |
| OmniHuman 2.0 | omnihuman-2.0 | from $0.091/sec |
| Runway | runway | from $0.016/sec |
| Seedance 2.5 | seedance-2.5 | from $0.09/sec |
| Seedance 2.5 Flash | seedance-2.5-flash | from $0.056/sec |
| Seedance 2.0 | seedance-2.0 | from $0.06/sec |
| Seedance 2.0 Fast | seedance-2.0-fast | from $0.036/sec |
| Seedance 2.0 Mini | seedance-2.0-mini | from $0.016/sec |
| Seedance 1.0 Pro Fast | seedance-1.0-pro-fast | from $0.012/sec |
| Seedance 1.5 Pro | seedance-1.5-pro | from $0.03/sec |
| Veo 3.1 Quality | veo-3.1 | from $0.204/sec |
| Veo 3.1 Fast | veo-3.1-fast | from $0.049/sec |
| Veo 3.1 Lite | veo-3.1-lite | from $0.025/sec |
| Wan 3.0 | wan-3.0 | from $0.054/sec |
| Wan 2.7 | wan-2.7 | from $0.104/sec |
| Wan 2.5 | wan-2.5 | from $0.087/sec |
| Wan 2.2 Fast | wan-2.2-i2v-fast | from $0.017/sec |
| Suno | suno-v6 | $0.09 |
Who it is for
How to pay
Top up from $5 with a card from any country. People in Russia can also pay in rubles (a Russian bank card, SBP or SberPay). The same balance is used on the website and in the API, with no subscription. More detail is on the payments page.
Claude Code, Codex and Gemini CLI
The same key works in coding agents: Claude Code, Codex CLI, Gemini CLI, OpenCode, Cline. Base URL https://api.mixmedia.tech, Anthropic, OpenAI and Gemini formats, pay per token. Step-by-step guides →
USD per 1M tokens, charged from the same MixMedia balance. These prices are for the agent API at api.mixmedia.tech, not for the playground on this website.
| Model | ID | Coding agents | Regular API | ||||
|---|---|---|---|---|---|---|---|
| In | Out | Cache read | In | Out | Cache read | ||
| Claude Opus 5.5 | claude-opus-5-5 | $4.16 | $20.8 | $0.208 | $4.8 | $24 | $0.24 |
| Claude Sonnet 5.5 | claude-sonnet-5-5 | $2.08 | $10.4 | $0.208 | $2.4 | $12 | $0.24 |
| Claude Haiku 5.5 | claude-haiku-5-5 | $0.104 | $0.52 | $0.0104 | $0.12 | $0.6 | $0.012 |
| Claude Fable 5.2 | claude-fable-5.2 | $8.32 | $41.6 | $0.208 | $9.6 | $48 | $0.24 |
| GPT-6 Astra | gpt-6-astra | $10.4 | $52 | $1.04 | $12 | $60 | $1.2 |
| GPT-6.1 Sol | gpt-6.1-sol | $2.08 | $10.4 | $0.104 | $2.4 | $12 | $0.12 |
| GPT-6.2 Sol | gpt-6.2-sol | $2.08 | $10.4 | $0.104 | $2.4 | $12 | $0.12 |
| GPT-6.2 Astra | gpt-6.2-astra | $8.32 | $41.6 | $0.416 | $9.6 | $48 | $0.48 |
| GPT-5.6 | gpt-5.6 | $4.16 | $20.8 | $0.416 | $4.8 | $24 | $0.48 |
| Gemini 4 Argon | gemini-4-argon | $4.16 | $20.8 | $0.208 | $4.8 | $24 | $0.24 |
| Gemini 3.8 Flash | gemini-3.8-flash | $0.78 | $3.9 | $0.078 | $0.9 | $4.5 | $0.09 |
| Gemini 3.7 Flash | gemini-3.7-flash | $0.78 | $3.9 | $0.078 | $0.9 | $4.5 | $0.09 |
| Gemini 4 Carbon | gemini-4-carbon | $4.16 | $20.8 | $0.208 | $4.8 | $24 | $0.24 |
| Gemini 4 Hydrogen | gemini-4-hydrogen | $1.56 | $7.8 | $0.078 | $1.8 | $9 | $0.09 |
| DeepSeek V4 Pro | deepseek-v4-pro | $0.6686 | $2.0058 | $0.0669 | $0.7715 | $2.3144 | $0.0771 |
| DeepSeek V4.1 Flash | deepseek-v4.1-flash | $0.1486 | $0.5942 | $0.0149 | $0.1715 | $0.6857 | $0.0171 |
Coding prices apply to Claude Code, Codex, Gemini CLI, OpenCode, Cline and similar tools. A regular API call (curl, your own backend, an SDK) uses the Regular API column. Cache write is 1.25× the input price in the same column. A 1-hour cache write is 2× input for Claude and 2.5× input for GPT. Long context: Claude Haiku 5.5: prompts over 100k tokens — coding $0.52 / $2.6, direct API $0.6 / $3; GPT-6 Astra: prompts over 272k tokens — coding $20.8 / $78, direct API $24 / $90; GPT-6.1 Sol: prompts over 272k tokens — coding $4.16 / $15.6, direct API $4.8 / $18; GPT-6.2 Sol: prompts over 272k tokens — coding $4.16 / $15.6, direct API $4.8 / $18; GPT-6.2 Astra: prompts over 272k tokens — coding $16.64 / $62.4, direct API $19.2 / $72; GPT-5.6: prompts over 272k tokens — coding $8.32 / $31.2, direct API $9.6 / $36.
Sections
FAQ
Does it work with Claude Code and Codex?
Yes. Point Claude Code, Codex CLI, Gemini CLI or OpenCode at https://api.mixmedia.tech with your MixMedia key; pay per token from the balance. Guides.
Where can I ask a question?
In Telegram @mixmedia_robot — we can help with the API, payments and integration. For a ticket with history, open Support in the dashboard.
How do I pay?
Top up from $5 with a card from any country. People in Russia can also pay in rubles (a Russian bank card, SBP or SberPay). The same balance is used on the website and in the API. You pay per finished result, with no subscription.
Do I need a VPN?
No. The API and the website work without a VPN. Requests go to mixmedia.tech/api/v1, and result links use our domain.
What if a generation fails?
The price is charged when the job is created and returned to your balance automatically if the job ends with an error (state = fail).
Are there rate limits?
Limits on concurrent jobs and requests per minute depend on the model and are listed in the docs. If you need a higher throughput, write to support.
How do webhooks work?
Pass callBackUrl in createTask. When the job becomes success or fail, we send a POST with the same JSON as recordInfo. The X-Signature header is HMAC-SHA256 of the raw body with your whsec_… secret; we retry up to four times. Read more.
Is there an MCP server?
Yes: https://api.mixmedia.tech/mcp. Connect it in Cursor, Claude or another MCP client with your key — the assistant can generate images, video and text itself.
Where are the exact prices?
In the table below, on the prices page, in the price calculator, in machine-readable prices.json, and in the /v1/pricing/calculate API (no key required).
Get started
Sign in, create a key in the dashboard, top up from $5 — and send your first request. You pay only for finished results; failed jobs are refunded.
Questions? Write in Telegram @mixmedia_robot.