Nano Banana
Google's lightweight, fast model: text-to-image generation and instruction-based photo editing.
| Mode | ID | Price |
|---|---|---|
| Image to Image | google/nano-banana-edit | $0.02 |
| Text to Image | google/nano-banana | $0.02 |
Image to Image
Upload a photo and describe what to change. ID: google/nano-banana-edit · $0.02 per image · ~1.5 min
Parameters (field input)
| Parameter | Required | Description | Values (default in bold) |
|---|---|---|---|
prompt | yes | What to draw or what to change | text, up to 5000 chars |
image_urls | yes | Links to your photos (https), up to 10 | ["https://…"] |
aspect_ratio | no | Image shape | 1:1 9:16 16:9 3:4 4:3 3:2 2:3 5:4 4:5 21:9 auto |
output_format | no | File format | png jpeg |
Example
curl -X POST https://ai.aimixmedia.site/api/v1/jobs/createTask \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"google/nano-banana-edit","input":{"prompt":"Make the background a neon city at night","image_urls":["https://ai.aimixmedia.site/static/img/previews/gpt-t2i.jpg"],"aspect_ratio":"1:1"}}'
import os, requests
r = requests.post(
"https://ai.aimixmedia.site/api/v1/jobs/createTask",
headers={"Authorization": f"Bearer {os.environ['API_KEY']}"},
json={
"model": "google/nano-banana-edit",
"input": {
"prompt": "Make the background a neon city at night",
"image_urls": [
"https://ai.aimixmedia.site/static/img/previews/gpt-t2i.jpg"
],
"aspect_ratio": "1:1"
}
},
)
print(r.json()) # {"code": 200, "data": {"taskId": "..."}}
const r = await fetch("https://ai.aimixmedia.site/api/v1/jobs/createTask", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.API_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({
"model": "google/nano-banana-edit",
"input": {
"prompt": "Make the background a neon city at night",
"image_urls": [
"https://ai.aimixmedia.site/static/img/previews/gpt-t2i.jpg"
],
"aspect_ratio": "1:1"
}
}),
});
console.log(await r.json()); // { code: 200, data: { taskId: "..." } }
Text to Image
Describe the picture and the model creates it from scratch. ID: google/nano-banana · $0.02 per image · ~1 min
Parameters (field input)
| Parameter | Required | Description | Values (default in bold) |
|---|---|---|---|
prompt | yes | What to draw or what to change | text, up to 5000 chars |
aspect_ratio | no | Image shape | 1:1 9:16 16:9 3:4 4:3 3:2 2:3 5:4 4:5 21:9 auto |
output_format | no | File format | png jpeg |
Example
curl -X POST https://ai.aimixmedia.site/api/v1/jobs/createTask \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"google/nano-banana","input":{"prompt":"A cat astronaut in a neon city, cinematic light","aspect_ratio":"1:1"}}'
import os, requests
r = requests.post(
"https://ai.aimixmedia.site/api/v1/jobs/createTask",
headers={"Authorization": f"Bearer {os.environ['API_KEY']}"},
json={
"model": "google/nano-banana",
"input": {
"prompt": "A cat astronaut in a neon city, cinematic light",
"aspect_ratio": "1:1"
}
},
)
print(r.json()) # {"code": 200, "data": {"taskId": "..."}}
const r = await fetch("https://ai.aimixmedia.site/api/v1/jobs/createTask", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.API_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({
"model": "google/nano-banana",
"input": {
"prompt": "A cat astronaut in a neon city, cinematic light",
"aspect_ratio": "1:1"
}
}),
});
console.log(await r.json()); // { code: 200, data: { taskId: "..." } }
Result
Same as any task: call recordInfo or receive a callback. Image links are in resultJson (kept for 30 days).
Upload your photos via files/upload or pass any public https links.