Nano Banana API: Pro, 2.1 and the base model
Google image models on one key: generate a picture from a prompt, or edit a photo you upload. A fixed price per image, paid when the job finishes successfully.
- Nano Banana Pro — posters, infographics, lettering
- Nano Banana 2.1 — fast and precise
- Up to 4K
- Up to 8 references
Example request
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 courier on a scooter, morning, soft light","image_input":["https://example.com/character.png"],"resolution":"2K","aspect_ratio":"16:9"}}'
# 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 courier on a scooter, morning, soft light",
"image_input": [
"https://example.com/character.png"
],
"resolution": "2K",
"aspect_ratio": "16:9"
}
})
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 courier on a scooter, morning, soft light",
"image_input": [
"https://example.com/character.png"
],
"resolution": "2K",
"aspect_ratio": "16:9"
}
}) }).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);
Price per image
| Model ID | Quality | per image | |
|---|---|---|---|
nano-banana-2 | 0.5K | $0.025 | |
nano-banana-2 | 1K | $0.025 | |
nano-banana-2 | 2K | $0.035 | |
nano-banana-2 | 4K | $0.04 | |
nano-banana-pro | 1K | $0.05 | |
nano-banana-pro | 2K | $0.055 | |
nano-banana-pro | 4K | $0.065 | |
google/nano-banana | 1K | $0.03 | |
google/nano-banana | 2K | $0.03 | |
nano-banana-lite | 1K | $0.02 | |
nano-banana-lite | 2K | $0.02 | |
google/nano-banana-edit | 1K | $0.03 | |
google/nano-banana-edit | 2K | $0.03 | |
nano-banana-lite-edit | 1K | $0.02 | |
nano-banana-lite-edit | 2K | $0.02 | |
New accounts receive a starter gift that covers a few Nano Banana Lite pictures on the website — see try it free. The same models are also on the Nano Banana 2.1 page.
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.
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.