[{"data":1,"prerenderedAt":481,"buildId":482},["ShallowReactive",2],{"blog:article:nano-banana-pro-api":3,"catalog":146},{"article":4,"related":118,"studioPath":145},{"slug":5,"path":6,"title":7,"description":8,"category":9,"categoryLabel":10,"date":11,"updated":11,"readingMinutes":12,"models":13,"featured":16,"primaryKeyword":17,"keywords":18,"words":28,"toc":29,"blocks":55,"faq":112},"nano-banana-pro-api","\u002Fblog\u002Fnano-banana-pro-api","Nano Banana Pro API: Generate Images by Code","The Nano Banana Pro API on one key: Google's highest-fidelity image model by code, edits from your pictures, batches, curl, Python and Node, and the price.","models","Models","2026-11-28",5,[14,15],"nano-banana-pro","nano-banana-2-1",false,"nano banana pro api",[17,19,20,21,22,23,24,25,26,27],"nano banana api","nano banana pro edit api","nano banana pro api key","nano banana api key","nano banana api documentation","nano banana api docs","nano banana api tutorial","nano banana pro api free","nano banana api free",1211,[30,34,37,40,43,46,49,52],{"id":31,"text":32,"level":33},"nano-banana-pro-at-a-glance","Nano Banana Pro at a glance",2,{"id":35,"text":36,"level":33},"your-first-nano-banana-pro-api-request","Your first Nano Banana Pro API request",{"id":38,"text":39,"level":33},"edits-and-reference-pictures","Edits and reference pictures",{"id":41,"text":42,"level":33},"aspect-ratios-and-batches-of-up-to-four","Aspect ratios and batches of up to four",{"id":44,"text":45,"level":33},"how-each-image-is-billed","How each image is billed",{"id":47,"text":48,"level":33},"nano-banana-pro-or-nano-banana-2-1","Nano Banana Pro or Nano Banana 2.1",{"id":50,"text":51,"level":33},"prompt-tips-for-nano-banana-pro","Prompt tips for Nano Banana Pro",{"id":53,"text":54,"level":33},"faq","FAQ",[56,59,66,71,73,76,79,81,84,86,88,90],{"type":57,"html":58},"html","\u003Cp>Nano Banana Pro is Google&#39;s highest-fidelity image model. On Frameport the Nano Banana Pro API is one request with a prompt, an aspect ratio, up to 4 images and, if you want, up to 6 reference pictures to edit or build on, for $0.16 an image, and you pay only for the images that succeed.\u003C\u002Fp>\n\u003Cp>The same API key calls every other model of the catalog, so you can draft on a cheaper model and render the final picture here without a second account. This page covers what the model does on Frameport, a first request in curl, Python and Node, edits and reference pictures, shapes and batches, billing, and prompt tips.\u003C\u002Fp>\n\u003Ch2 id=\"nano-banana-pro-at-a-glance\">Nano Banana Pro at a glance\u003C\u002Fh2>\n\u003Cdiv class=\"blog-table box\">\u003Ctable class=\"tbl\">\u003Cthead>\u003Ctr>\u003Cth scope=\"col\">\u003C\u002Fth>\u003Cth scope=\"col\">\u003C\u002Fth>\u003C\u002Ftr>\u003C\u002Fthead>\u003Ctbody>\u003Ctr>\u003Ctd>Maker\u003C\u002Ftd>\u003Ctd>Google\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>What it does\u003C\u002Ftd>\u003Ctd>Images from a prompt, edits of a picture you send\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>Reference pictures\u003C\u002Ftd>\u003Ctd>Up to 6 per request\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>Aspect ratios\u003C\u002Ftd>\u003Ctd>1:1, 3:4, 4:3, 9:16 and 16:9\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>Images per request\u003C\u002Ftd>\u003Ctd>Up to 4\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>Price\u003C\u002Ftd>\u003Ctd>$0.16 per image\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>Model id\u003C\u002Ftd>\u003Ctd>\u003Ccode>nano-banana-pro\u003C\u002Fcode>\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>Endpoint\u003C\u002Ftd>\u003Ctd>\u003Ccode>POST \u002Fv1\u002Fimages\u002Fgenerations\u003C\u002Fcode>\u003C\u002Ftd>\u003C\u002Ftr>\u003C\u002Ftbody>\u003C\u002Ftable>\u003C\u002Fdiv>\n\u003Cp>It is the model to reach for when the picture itself is the deliverable: a campaign visual, a cover, a hero image, a label or sign whose words must read cleanly. It also reads the pictures you send: edit one by instruction, or keep a product, a face or a place in a new scene (see \u003Ca href=\"#edits-and-reference-pictures\">edits and reference pictures\u003C\u002Fa> below).\u003C\u002Fp>\n\u003Ch2 id=\"your-first-nano-banana-pro-api-request\">Your first Nano Banana Pro API request\u003C\u002Fh2>\n\u003Cp>An image request answers \u003Ccode>202\u003C\u002Fcode> at once with an id and the amount held; you then read the generation until its images are ready. This one asks for two takes of a product shot in 4:3:\u003C\u002Fp>",{"type":60,"snippets":61,"title":65},"tabs",{"curl":62,"python":63,"node":64},"# 1. Submit\ncurl https:\u002F\u002Fframeport.ai\u002Fv1\u002Fimages\u002Fgenerations \\\n  -H \"Authorization: Bearer $FRAMEPORT_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"model\": \"nano-banana-pro\",\n    \"prompt\": \"A glass bottle of olive oil on a stone counter with a handwritten label reading \\\"Harvest\\\", soft morning daylight, shallow depth of field\",\n    \"n\": 2,\n    \"aspect_ratio\": \"4:3\"\n  }'\n\n# 2. Poll with the id it returned until \"status\" is \"succeeded\"\ncurl https:\u002F\u002Fframeport.ai\u002Fv1\u002Fimages\u002Fgenerations\u002F$GENERATION_ID \\\n  -H \"Authorization: Bearer $FRAMEPORT_API_KEY\"","import os\nimport time\nimport requests\n\nAPI = \"https:\u002F\u002Fframeport.ai\u002Fv1\"\nheaders = {\"Authorization\": f\"Bearer {os.environ['FRAMEPORT_API_KEY']}\"}\n\ngen = requests.post(f\"{API}\u002Fimages\u002Fgenerations\", headers=headers, json={\n    \"model\": \"nano-banana-pro\",\n    \"prompt\": 'A glass bottle of olive oil on a stone counter with a handwritten label reading \"Harvest\", soft morning daylight, shallow depth of field',\n    \"n\": 2,\n    \"aspect_ratio\": \"4:3\",\n}).json()\nif gen.get(\"error\"):\n    raise SystemExit(f\"{gen['error']['code']}: {gen['error']['message']}\")\n\nwhile gen[\"status\"] in (\"queued\", \"running\"):\n    time.sleep(3)\n    gen = requests.get(f\"{API}\u002Fimages\u002Fgenerations\u002F{gen['id']}\", headers=headers).json()\n\n# Each image settles on its own: save the ones that succeeded\nfor index, output in enumerate(gen[\"outputs\"]):\n    if output[\"status\"] == \"succeeded\":\n        open(f\"bottle-{index}.png\", \"wb\").write(requests.get(output[\"url\"]).content)\nprint(\"charged\", gen[\"cost_usd\"])","import { writeFile } from 'node:fs\u002Fpromises'\n\nconst API = 'https:\u002F\u002Fframeport.ai\u002Fv1'\nconst auth = { Authorization: `Bearer ${process.env.FRAMEPORT_API_KEY}` }\n\nlet gen = await fetch(`${API}\u002Fimages\u002Fgenerations`, {\n  method: 'POST',\n  headers: { ...auth, 'Content-Type': 'application\u002Fjson' },\n  body: JSON.stringify({\n    model: 'nano-banana-pro',\n    prompt: 'A glass bottle of olive oil on a stone counter with a handwritten label reading \"Harvest\", soft morning daylight, shallow depth of field',\n    n: 2,\n    aspect_ratio: '4:3',\n  }),\n}).then(res => res.json())\nif (gen.error) throw new Error(`${gen.error.code}: ${gen.error.message}`)\n\nwhile (gen.status === 'queued' || gen.status === 'running') {\n  await new Promise(resolve => setTimeout(resolve, 3000))\n  gen = await fetch(`${API}\u002Fimages\u002Fgenerations\u002F${gen.id}`, { headers: auth }).then(res => res.json())\n}\n\n\u002F\u002F Each image settles on its own: save the ones that succeeded\nfor (const [index, output] of gen.outputs.entries()) {\n  if (output.status !== 'succeeded') continue\n  const file = await fetch(output.url)\n  await writeFile(`bottle-${index}.png`, Buffer.from(await file.arrayBuffer()))\n}\nconsole.log('charged', gen.cost_usd)","Submit · poll",{"type":67,"lang":68,"code":69,"title":70},"code","json","{\n  \"id\": \"gen_4kQ8vT2nLm9Xr7Wd1sYcPa\",\n  \"object\": \"generation\",\n  \"type\": \"image\",\n  \"model\": \"nano-banana-pro\",\n  \"status\": \"queued\",\n  \"input\": {\n    \"prompt\": \"A glass bottle of olive oil on a stone counter with a handwritten label reading \\\"Harvest\\\", soft morning daylight, shallow depth of field\",\n    \"n\": 2,\n    \"aspect_ratio\": \"4:3\",\n    \"reference_images\": 0\n  },\n  \"reserved_usd\": 0.32,\n  \"cost_usd\": null,\n  \"outputs\": [\n    { \"id\": \"file_8Hc2RkQw5ZpT1mVb7nXe3L\", \"status\": \"queued\" },\n    { \"id\": \"file_3Vb8KqW2nTx7Lc5Rm1YdPs\", \"status\": \"queued\" }\n  ],\n  \"error\": null,\n  \"created_at\": \"2026-11-28T10:00:00.000Z\",\n  \"completed_at\": null\n}","202 Accepted",{"type":57,"html":72},"\u003Cp>Each finished output carries a \u003Ccode>url\u003C\u002Fcode> that opens without a key for about an hour, and its \u003Ccode>content_type\u003C\u002Fcode>. The \u003Ca href=\"\u002Fdocs\u002Fimages\">images reference\u003C\u002Fa> lists every field, and \u003Ca href=\"\u002Fdocs\u002Fwebhooks\">webhooks\u003C\u002Fa> can tell you when a generation is done instead of polling.\u003C\u002Fp>\n\u003Cp>For a full Python script with batches, saved files and retries, see \u003Ca href=\"\u002Fblog\u002Fimage-generation-api-python\">image generation API in Python\u003C\u002Fa>.\u003C\u002Fp>\n\u003Ch2 id=\"edits-and-reference-pictures\">Edits and reference pictures\u003C\u002Fh2>\n\u003Cp>Send up to 6 pictures in \u003Ccode>reference_images\u003C\u002Fcode> and say in the prompt what to do with them. To edit, write the change rather than the whole scene; to build on them, say what each picture is for:\u003C\u002Fp>",{"type":67,"lang":68,"code":74,"title":75},"{\n  \"model\": \"nano-banana-pro\",\n  \"prompt\": \"Change the background to a beach at sunset. Keep the bottle and its label exactly as they are.\",\n  \"reference_images\": [\"https:\u002F\u002Fexample.com\u002Fbottle.jpg\"],\n  \"aspect_ratio\": \"4:3\"\n}","An edit by instruction · POST \u002Fv1\u002Fimages\u002Fgenerations",{"type":67,"lang":68,"code":77,"title":78},"{\n  \"model\": \"nano-banana-pro\",\n  \"prompt\": \"The woman from the first picture holds the bottle from the second picture at a rooftop bar, golden hour, 50mm\",\n  \"reference_images\": [\"https:\u002F\u002Fexample.com\u002Fher.jpg\", \"https:\u002F\u002Fexample.com\u002Fbottle.jpg\"],\n  \"n\": 2\n}","Two references in one scene",{"type":57,"html":80},"\u003Cp>A picture can be a public URL, an \u003Ca href=\"\u002Fdocs\u002Fuploads\">upload\u003C\u002Fa> id or the id of an image you made on Frameport, so a take you like can come back as the start of the next one. Post the body to \u003Ccode>POST \u002Fv1\u002Fgenerations\u002Fquote\u003C\u002Fcode> first to see its exact price.\u003C\u002Fp>\n\u003Ch2 id=\"aspect-ratios-and-batches-of-up-to-four\">Aspect ratios and batches of up to four\u003C\u002Fh2>\n\u003Cp>Three more fields shape the request:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>\u003Cstrong>\u003Ccode>aspect_ratio\u003C\u002Fcode>\u003C\u002Fstrong>: 1:1, 3:4, 4:3, 9:16 and 16:9, \u003Ccode>1:1\u003C\u002Fcode> when left out. \u003Ccode>16:9\u003C\u002Fcode> suits banners and covers, \u003Ccode>9:16\u003C\u002Fcode> stories and phone screens, \u003Ccode>3:4\u003C\u002Fcode> and \u003Ccode>4:3\u003C\u002Fcode> product and editorial frames.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>\u003Ccode>n\u003C\u002Fcode>\u003C\u002Fstrong>: 1 to 4 images, 1 when left out. Each image is rendered on its own from the same prompt, so a batch gives you several takes to pick from, each charged on its own.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>\u003Ccode>prompt\u003C\u002Fcode>\u003C\u002Fstrong>: up to 2,400 characters.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>A value the model does not take is refused with \u003Ccode>400 invalid_request\u003C\u002Fcode> before anything is held. Send an \u003Ccode>Idempotency-Key\u003C\u002Fcode> header to retry a request safely: a retry with the same key returns the first generation instead of paying twice.\u003C\u002Fp>\n\u003Ch2 id=\"how-each-image-is-billed\">How each image is billed\u003C\u002Fh2>\n\u003Cp>Each image costs $0.16. When you submit, the price of the whole batch is held from your balance; each image is charged when it succeeds, and an image that fails costs nothing. With \u003Ccode>n: 4\u003C\u002Fcode>, three can succeed and one fail, and only three are charged.\u003C\u002Fp>\n\u003Cdiv class=\"blog-table box blog-table-wide\">\u003Ctable class=\"tbl\">\u003Cthead>\u003Ctr>\u003Cth scope=\"col\" class=\"r\">Images\u003C\u002Fth>\u003Cth scope=\"col\" class=\"r\">Nano Banana Pro\u003C\u002Fth>\u003Cth scope=\"col\" class=\"r\">Nano Banana 2.1\u003C\u002Fth>\u003C\u002Ftr>\u003C\u002Fthead>\u003Ctbody>\u003Ctr>\u003Ctd class=\"r\">1\u003C\u002Ftd>\u003Ctd class=\"r\">$0.16\u003C\u002Ftd>\u003Ctd class=\"r\">$0.085\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd class=\"r\">4\u003C\u002Ftd>\u003Ctd class=\"r\">$0.64\u003C\u002Ftd>\u003Ctd class=\"r\">$0.34\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd class=\"r\">100\u003C\u002Ftd>\u003Ctd class=\"r\">$16.00\u003C\u002Ftd>\u003Ctd class=\"r\">$8.50\u003C\u002Ftd>\u003C\u002Ftr>\u003C\u002Ftbody>\u003C\u002Ftable>\u003C\u002Fdiv>\n\u003Cp>To see the price of a body before you send it, post it to \u003Ccode>POST \u002Fv1\u002Fgenerations\u002Fquote\u003C\u002Fcode>. Nothing is held or started, and the answer says whether your balance covers it:\u003C\u002Fp>",{"type":67,"lang":68,"code":82,"title":83},"{\n  \"object\": \"quote\",\n  \"model\": \"nano-banana-pro\",\n  \"type\": \"image\",\n  \"mode\": \"generate\",\n  \"price_usd\": 0.64,\n  \"reserved_usd\": 0.64,\n  \"breakdown\": \"4 images × $0.16\",\n  \"available_usd\": 42.5,\n  \"enough_balance\": true\n}","Quote · 200 OK",{"type":57,"html":85},"\u003Cp>Add \u003Ccode>max_cost_usd\u003C\u002Fcode> to a request built from user input, and anything priced above it is refused before anything is held. Nano Banana Pro keeps Google&#39;s own content policy: a prompt it refuses answers \u003Ccode>400 content_policy\u003C\u002Fcode>, an image refused after it started fails, and neither costs anything.\u003C\u002Fp>\n\u003Cp>Volume costs and ways to spend less are in \u003Ca href=\"\u002Fblog\u002Fnano-banana-pro-api-pricing\">Nano Banana Pro API pricing\u003C\u002Fa>.\u003C\u002Fp>\n\u003Ch2 id=\"nano-banana-pro-or-nano-banana-2-1\">Nano Banana Pro or Nano Banana 2.1\u003C\u002Fh2>\n\u003Cp>Both come from Google, take the same request and the same aspect ratios, and make up to 4 images a call. \u003Ca href=\"\u002Fmodels\u002Fnano-banana-2-1\">Nano Banana 2.1\u003C\u002Fa> is its fast model, at $0.085 an image; Nano Banana Pro is its highest-fidelity one, at $0.16. One way to use the pair: try prompts on Nano Banana 2.1 until the framing is right, then render the keeper on Nano Banana Pro by changing \u003Ccode>model\u003C\u002Fcode>.\u003C\u002Fp>\n\u003Cp>For posters and layouts with text, also look at \u003Ca href=\"\u002Fblog\u002Fgpt-image-2-5-api\">GPT Image 2.5\u003C\u002Fa>, on the same key. The \u003Ca href=\"\u002Fblog\u002Fnano-banana-pro-vs-gpt-image-2-5\">Nano Banana Pro vs GPT Image 2.5\u003C\u002Fa> comparison puts the three side by side.\u003C\u002Fp>\n\u003Cp>Pro and 2.1 are compared in full in \u003Ca href=\"\u002Fblog\u002Fnano-banana-pro-vs-nano-banana-2-1\">Nano Banana Pro vs Nano Banana 2.1\u003C\u002Fa>.\u003C\u002Fp>\n\u003Ch2 id=\"prompt-tips-for-nano-banana-pro\">Prompt tips for Nano Banana Pro\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>\u003Cstrong>Be specific and layered:\u003C\u002Fstrong> subject, wardrobe, setting, light, lens and mood, in that order. &quot;A ceramicist at her wheel, linen apron, sunlit studio with clay dust in the air, 50 mm lens, warm and quiet&quot; leaves little to chance.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Quote the words that must appear,\u003C\u002Fstrong> and keep them short: a label reading &quot;Harvest&quot;, a sign that says &quot;Open late&quot;.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Describe the light\u003C\u002Fstrong> as you would to a photographer: soft window light, golden hour, overcast, a single hard key light.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Change one thing at a time\u003C\u002Fstrong> between runs, so you know what each change did.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Use the batch:\u003C\u002Fstrong> \u003Ccode>n: 4\u003C\u002Fcode> on one prompt gives four takes to choose from in a single request.\u003C\u002Fli>\n\u003C\u002Ful>",{"type":87,"model":14},"cta",{"type":57,"html":89},"\u003Cp>Templates and worked examples are in the \u003Ca href=\"\u002Fblog\u002Fnano-banana-pro-prompt-guide\">Nano Banana Pro prompt guide\u003C\u002Fa>. For icons, items and textures in one style, see the \u003Ca href=\"\u002Fblog\u002Fgame-assets-image-api\">AI game assets API\u003C\u002Fa>.\u003C\u002Fp>",{"type":53,"id":53,"title":54,"items":91},[92,96,100,104,108],{"q":93,"html":94,"text":95},"How do I get a Nano Banana Pro API key?","\u003Cp>Use a Frameport key: \u003Ca href=\"\u002Fsignup\">create an account\u003C\u002Fa>, add funds under Billing, then create a key under API keys. It starts with \u003Ccode>fp_live_\u003C\u002Fcode>, is shown once, and calls Nano Banana Pro and every other model of the catalog. No second account is needed.\u003C\u002Fp>","Use a Frameport key: create an account, add funds under Billing, then create a key under API keys. It starts with fp_live_, is shown once, and calls Nano Banana Pro and every other model of the catalog. No second account is needed.",{"q":97,"html":98,"text":99},"Is there a free Nano Banana Pro API?","\u003Cp>The account, the key and quotes are free, and an image that fails costs nothing. Images are paid from a prepaid balance, topped up from $10, with no subscription. You can also \u003Ca href=\"\u002Ftry\u002Fnano-banana-pro\">try Nano Banana Pro online\u003C\u002Fa> before writing code.\u003C\u002Fp>","The account, the key and quotes are free, and an image that fails costs nothing. Images are paid from a prepaid balance, topped up from $10, with no subscription. You can also try Nano Banana Pro online before writing code.",{"q":101,"html":102,"text":103},"How much does the Nano Banana Pro API cost?","\u003Cp>$0.16 per image, so a batch of four costs $0.64 and a hundred images $16.00. The price is the same at every aspect ratio.\u003C\u002Fp>","$0.16 per image, so a batch of four costs $0.64 and a hundred images $16.00. The price is the same at every aspect ratio.",{"q":105,"html":106,"text":107},"Can I send my own pictures to Nano Banana Pro?","\u003Cp>Yes: up to 6 per request in \u003Ccode>reference_images\u003C\u002Fcode>, as URLs, upload ids or images you made here. Write the change you want to edit one (&quot;make it night, keep the label&quot;), or describe a new scene to keep a product, a face or a place from them.\u003C\u002Fp>","Yes: up to 6 per request in reference_images, as URLs, upload ids or images you made here. Write the change you want to edit one (\"make it night, keep the label\"), or describe a new scene to keep a product, a face or a place from them.",{"q":109,"html":110,"text":111},"Where is the Nano Banana Pro API documentation?","\u003Cp>The \u003Ca href=\"\u002Fdocs\u002Fimages\">images reference\u003C\u002Fa> documents the endpoint and every field, the \u003Ca href=\"\u002Fmodels\u002Fnano-banana-pro\">model page\u003C\u002Fa> lists its options and prices, and \u003Ccode>GET \u002Fv1\u002Fmodels\u003C\u002Fcode> returns the live values your code should read: \u003Ccode>options.aspect_ratios\u003C\u002Fcode>, \u003Ccode>options.max_images\u003C\u002Fcode> and \u003Ccode>pricing.per_image\u003C\u002Fcode>.\u003C\u002Fp>","The images reference documents the endpoint and every field, the model page lists its options and prices, and GET \u002Fv1\u002Fmodels returns the live values your code should read: options.aspect_ratios, options.max_images and pricing.per_image.",[113,114,115,116,117],{"q":93,"html":94,"text":95},{"q":97,"html":98,"text":99},{"q":101,"html":102,"text":103},{"q":105,"html":106,"text":107},{"q":109,"html":110,"text":111},[119,126,139],{"slug":120,"path":121,"title":122,"description":123,"category":9,"categoryLabel":10,"date":11,"updated":11,"readingMinutes":12,"models":124,"featured":16},"nano-banana-2-1-api","\u002Fblog\u002Fnano-banana-2-1-api","Nano Banana 2.1 API: Code, Batches and Price per Image","The Nano Banana 2.1 API on one key: Google's general-purpose image model from a prompt, with aspect ratios, batches, code in three languages and pricing.",[15,14,125],"fp-image-3",{"slug":127,"path":128,"title":129,"description":130,"category":131,"categoryLabel":132,"date":11,"updated":11,"readingMinutes":133,"models":134,"featured":16},"ai-image-generation-api-cost","\u002Fblog\u002Fai-image-generation-api-cost","AI Image Generation API Cost per Image, by Model","Image generation API cost per image, model by model: what a batch and 1,000 images cost, reference pictures, and why a failed image costs nothing.","pricing","Pricing",4,[14,135,136,137,138,15],"gpt-image-2-5-sunburst","seedream-5-0-pro","flux-3-image","fp-image-1",{"slug":140,"path":141,"title":142,"description":143,"category":131,"categoryLabel":132,"date":11,"updated":11,"readingMinutes":12,"models":144,"featured":16},"nano-banana-2-1-api-pricing","\u002Fblog\u002Fnano-banana-2-1-api-pricing","Nano Banana 2.1 API Pricing per Image","Nano Banana 2.1 API pricing per image and per batch, partial batches billed per success, a price cap per request, and when Pro is worth the step up.",[15,14],"\u002Fstudio",[147,165,173,182,208,226,246,262,277,292,307,321,332,346,359,372,385,395,403,411,420,428,437,445,464],{"id":148,"type":149,"name":150,"description":151,"maker":152,"family":152,"own":153,"image":154,"private":164},"fp-image-2","image","Frameport Image 2","Photoreal renders, up to 4 reference images.","Frameport",true,{"pricing":155,"options":157},{"per_image":156,"per_extra_reference_image":-1},0.025,{"aspect_ratios":158,"max_images":133},[159,160,161,162,163],"1:1","3:4","4:3","9:16","16:9",{},{"id":125,"type":149,"name":166,"description":167,"maker":152,"family":152,"own":153,"image":168,"private":172},"Frameport Image 3","Clean photoreal renders for characters.",{"pricing":169,"options":170},{"per_image":156,"per_extra_reference_image":-1},{"aspect_ratios":171,"max_images":133},[159,160,161,162,163],{},{"id":138,"type":149,"name":174,"description":175,"maker":152,"family":152,"own":153,"image":176,"private":181},"Frameport Image 1","Generation and reference-driven renders, up to 10 reference images.",{"pricing":177,"options":179},{"per_image":156,"per_extra_reference_image":178},0.0025,{"aspect_ratios":180,"max_images":133},[159,160,161,162,163],{},{"id":183,"type":184,"name":185,"description":186,"maker":152,"family":187,"own":153,"video":188,"private":206},"fp-motion-1","video","Frameport Motion 1","Our video engine, with native sound.","Frameport Motion",{"pricing":189,"options":196},{"default_resolution":190,"per_second":191,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},"768p",{"480p":192,"768p":193,"1080p":194,"2K":195},0.02,0.06,0.08,0.095,{"resolutions":197,"durations":201,"aspect_ratios":204,"audio_toggle":153,"start_frame":153,"end_frame":153,"max_reference_images":133,"identity_resolutions":205,"seed":16,"negative_prompt":16},[198,190,199,200],"480p","1080p","2K",{"min":12,"max":202,"step":203},15,1,[163,162,159,161,160],[190,199],{"resolutions":207},[198,190],{"id":209,"type":184,"name":210,"description":211,"maker":212,"family":213,"own":16,"video":214},"seedance-2-5","Seedance 2.5","The long-take flagship — up to 30 seconds with sound","ByteDance","Seedance",{"pricing":215,"options":220},{"default_resolution":216,"per_second":217,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},"720p",{"480p":218,"720p":219},0.12,0.27,{"resolutions":221,"durations":222,"aspect_ratios":224,"audio_toggle":153,"start_frame":153,"end_frame":153,"max_reference_images":133,"identity_resolutions":-1,"seed":153,"negative_prompt":16},[198,216],{"min":133,"max":223,"step":203},30,[163,161,159,160,162,225],"21:9",{"id":227,"type":184,"name":228,"description":229,"maker":230,"family":231,"own":16,"video":232},"veo-3-1","Veo 3.1","Google’s flagship — up to 4K with native audio","Google","Veo",{"pricing":233,"options":239},{"default_resolution":199,"per_second":234,"per_second_with_audio":237,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"720p":235,"1080p":235,"4K":236},0.235,0.465,{"720p":236,"1080p":236,"4K":238},0.695,{"resolutions":240,"durations":242,"aspect_ratios":244,"audio_toggle":153,"start_frame":153,"end_frame":153,"max_reference_images":245,"identity_resolutions":-1,"seed":153,"negative_prompt":153},[216,199,241],"4K",{"min":133,"max":243,"step":33},8,[163,162],3,{"id":247,"type":184,"name":248,"description":249,"maker":212,"family":213,"own":16,"video":250},"seedance-2-0","Seedance 2.0","Character consistency, up to 4K",{"pricing":251,"options":258},{"default_resolution":216,"per_second":252,"per_second_with_audio":-1,"aspect_ratio_multiplier":256,"per_reference_image":-1,"per_frame_image":-1},{"480p":194,"720p":253,"1080p":254,"4K":255},0.175,0.435,0.9,{"21:9":257},1.32,{"resolutions":259,"durations":260,"aspect_ratios":261,"audio_toggle":153,"start_frame":153,"end_frame":153,"max_reference_images":133,"identity_resolutions":-1,"seed":153,"negative_prompt":16},[198,216,199,241],{"min":133,"max":202,"step":203},[163,161,159,160,162,225],{"id":263,"type":184,"name":264,"description":265,"maker":266,"family":267,"own":16,"video":268},"hailuo-3","Hailuo 3","2K cinematic physics, subject references","MiniMax","Hailuo",{"pricing":269,"options":273},{"default_resolution":200,"per_second":270,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":272,"per_frame_image":-1},{"2K":271},0.15,0.047,{"resolutions":274,"durations":275,"aspect_ratios":276,"audio_toggle":153,"start_frame":153,"end_frame":153,"max_reference_images":245,"identity_resolutions":-1,"seed":16,"negative_prompt":16},[200],{"min":12,"max":202,"step":203},[225,163,161,159,160,162],{"id":278,"type":184,"name":279,"description":280,"maker":281,"family":281,"own":16,"video":282},"runway-gen-4-5","Runway Gen-4.5","Cinematic motion, strong prompt adherence","Runway",{"pricing":283,"options":286},{"default_resolution":216,"per_second":284,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"720p":285},0.14,{"resolutions":287,"durations":288,"aspect_ratios":290,"audio_toggle":16,"start_frame":153,"end_frame":16,"max_reference_images":291,"identity_resolutions":-1,"seed":153,"negative_prompt":16},[216],{"min":33,"max":289,"step":203},10,[163,162],0,{"id":293,"type":184,"name":294,"description":295,"maker":230,"family":231,"own":16,"video":296},"veo-3-1-fast","Veo 3.1 Fast","Veo quality, faster and a quarter of the price",{"pricing":297,"options":303},{"default_resolution":216,"per_second":298,"per_second_with_audio":301,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"720p":299,"1080p":218,"4K":300},0.093,0.29,{"720p":218,"1080p":285,"4K":302},0.35,{"resolutions":304,"durations":305,"aspect_ratios":306,"audio_toggle":153,"start_frame":153,"end_frame":153,"max_reference_images":245,"identity_resolutions":-1,"seed":153,"negative_prompt":153},[216,199,241],{"min":133,"max":243,"step":33},[163,162],{"id":308,"type":184,"name":309,"description":310,"maker":212,"family":213,"own":16,"video":311},"seedance-2-0-fast","Seedance 2.0 Fast","Seedance references and sound, faster",{"pricing":312,"options":317},{"default_resolution":216,"per_second":313,"per_second_with_audio":-1,"aspect_ratio_multiplier":316,"per_reference_image":-1,"per_frame_image":-1},{"480p":314,"720p":315},0.063,0.145,{"21:9":257},{"resolutions":318,"durations":319,"aspect_ratios":320,"audio_toggle":153,"start_frame":153,"end_frame":153,"max_reference_images":133,"identity_resolutions":-1,"seed":153,"negative_prompt":16},[198,216],{"min":133,"max":202,"step":203},[163,161,159,160,162,225],{"id":322,"type":184,"name":323,"description":324,"maker":266,"family":267,"own":16,"video":325},"hailuo-3-max","Hailuo 3 Max","Fast Hailuo motion, 768p",{"pricing":326,"options":328},{"default_resolution":190,"per_second":327,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"480p":193,"768p":299},{"resolutions":329,"durations":330,"aspect_ratios":331,"audio_toggle":16,"start_frame":153,"end_frame":153,"max_reference_images":291,"identity_resolutions":-1,"seed":16,"negative_prompt":16},[198,190],{"min":12,"max":202,"step":203},[225,163,161,159,160,162],{"id":333,"type":184,"name":334,"description":335,"maker":336,"family":334,"own":16,"video":337},"grok-imagine","Grok Imagine","Quick clips from a prompt or a start image","xAI",{"pricing":338,"options":342},{"default_resolution":216,"per_second":339,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":341},{"480p":299,"720p":340,"1080p":300},0.165,0.014,{"resolutions":343,"durations":344,"aspect_ratios":345,"audio_toggle":16,"start_frame":153,"end_frame":16,"max_reference_images":291,"identity_resolutions":-1,"seed":16,"negative_prompt":16},[198,216,199],{"min":203,"max":202,"step":203},[163,162,159,161,160],{"id":347,"type":184,"name":348,"description":-1,"maker":212,"family":213,"own":16,"video":349},"seedance-2-0-mini","Seedance 2.0 Mini",{"pricing":350,"options":355},{"default_resolution":198,"per_second":351,"per_second_with_audio":-1,"aspect_ratio_multiplier":354,"per_reference_image":-1,"per_frame_image":-1},{"480p":352,"720p":353},0.041,0.088,{"21:9":257},{"resolutions":356,"durations":357,"aspect_ratios":358,"audio_toggle":153,"start_frame":153,"end_frame":153,"max_reference_images":133,"identity_resolutions":-1,"seed":153,"negative_prompt":16},[198,216],{"min":133,"max":202,"step":203},[163,161,159,160,162,225],{"id":360,"type":184,"name":361,"description":362,"maker":230,"family":231,"own":16,"video":363},"veo-3-1-lite","Veo 3.1 Lite","Veo with sound, on every account",{"pricing":364,"options":368},{"default_resolution":216,"per_second":365,"per_second_with_audio":367,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"720p":366,"1080p":193},0.036,{"720p":193,"1080p":299},{"resolutions":369,"durations":370,"aspect_ratios":371,"audio_toggle":153,"start_frame":153,"end_frame":153,"max_reference_images":291,"identity_resolutions":-1,"seed":153,"negative_prompt":153},[216,199],{"min":133,"max":243,"step":33},[163,162],{"id":373,"type":184,"name":374,"description":375,"maker":376,"family":377,"own":16,"video":378},"wan-3","Wan 3.0","Up to 30 seconds, references and sound","Alibaba","Wan",{"pricing":379,"options":381},{"default_resolution":216,"per_second":380,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"480p":193,"720p":218,"1080p":235},{"resolutions":382,"durations":383,"aspect_ratios":384,"audio_toggle":153,"start_frame":153,"end_frame":16,"max_reference_images":245,"identity_resolutions":-1,"seed":153,"negative_prompt":16},[198,216,199],{"min":33,"max":223,"step":203},[163,161,159,160,162],{"id":135,"type":149,"name":386,"description":387,"maker":388,"family":389,"own":16,"image":390},"GPT Image 2.5 Sunburst","OpenAI's flagship — precise text, composition and control","OpenAI","GPT Image",{"pricing":391,"options":393},{"per_image":392,"per_extra_reference_image":-1},0.085,{"aspect_ratios":394,"max_images":133},[159,160,161,162,163],{"id":396,"type":149,"name":397,"description":398,"maker":388,"family":389,"own":16,"image":399},"gpt-image-2-5-flare","GPT Image 2.5 Flare","OpenAI's image model tuned for expressive, dramatic frames",{"pricing":400,"options":401},{"per_image":392,"per_extra_reference_image":-1},{"aspect_ratios":402,"max_images":133},[159,160,161,162,163],{"id":15,"type":149,"name":404,"description":405,"maker":230,"family":406,"own":16,"image":407},"Nano Banana 2.1","Google's fast multimodal image model","Nano Banana",{"pricing":408,"options":409},{"per_image":392,"per_extra_reference_image":-1},{"aspect_ratios":410,"max_images":133},[159,160,161,162,163],{"id":136,"type":149,"name":412,"description":413,"maker":212,"family":414,"own":16,"image":415},"Seedream 5.0 Pro","ByteDance's flagship — rich detail and texture","Seedream",{"pricing":416,"options":418},{"per_image":417,"per_extra_reference_image":-1},0.099,{"aspect_ratios":419,"max_images":133},[159,160,161,162,163],{"id":14,"type":149,"name":421,"description":422,"maker":230,"family":406,"own":16,"image":423},"Nano Banana Pro","Google's highest-fidelity image model",{"pricing":424,"options":426},{"per_image":425,"per_extra_reference_image":-1},0.16,{"aspect_ratios":427,"max_images":133},[159,160,161,162,163],{"id":137,"type":149,"name":429,"description":430,"maker":431,"family":432,"own":16,"image":433},"Flux 3 Image","Black Forest Labs' FLUX.3 — photoreal and typography","Black Forest Labs","Flux",{"pricing":434,"options":435},{"per_image":353,"per_extra_reference_image":-1},{"aspect_ratios":436,"max_images":133},[159,160,161,162,163],{"id":438,"type":149,"name":439,"description":440,"maker":336,"family":334,"own":16,"image":441},"grok-imagine-2-0","Grok Imagine 2.0","xAI's fast, characterful image model",{"pricing":442,"options":443},{"per_image":353,"per_extra_reference_image":-1},{"aspect_ratios":444,"max_images":133},[159,160,161,162,163],{"id":446,"type":184,"name":447,"description":448,"maker":152,"family":449,"own":153,"edit":450,"video":458},"fp-replace-1","Frameport Replace 1","Up to four people in your clip replaced by the faces you send: moves, lips, scene and sound kept.","Frameport Replace",{"tool":451,"formats":452,"min_seconds":33,"max_seconds":289,"min_billed_seconds":33,"max_bytes":455,"max_frames":456,"fps":457,"max_faces":133},"replace",[453,454],"mp4","mov",64000000,600,24,{"pricing":459,"options":462},{"default_resolution":190,"per_second":460,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"768p":218,"1080p":461},0.25,{"resolutions":463,"durations":-1,"aspect_ratios":-1,"audio_toggle":-1,"start_frame":-1,"end_frame":-1,"max_reference_images":-1,"identity_resolutions":-1,"seed":-1,"negative_prompt":-1},[190,199],{"id":465,"type":184,"name":466,"description":467,"maker":152,"family":468,"own":153,"edit":469,"video":474},"fp-upscale-1","Frameport Upscale 1","Your clip at 1080p or 2K: the same motion, frame rate and sound, sharper detail.","Frameport Upscale",{"tool":470,"formats":471,"min_seconds":203,"max_seconds":223,"min_billed_seconds":12,"max_bytes":472,"max_frames":473,"fps":-1,"max_faces":-1},"upscale",[453,454],100000000,900,{"pricing":475,"options":479},{"default_resolution":199,"per_second":476,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"1080p":477,"2K":478},0.03,0.05,{"resolutions":480,"durations":-1,"aspect_ratios":-1,"audio_toggle":-1,"start_frame":-1,"end_frame":-1,"max_reference_images":-1,"identity_resolutions":-1,"seed":-1,"negative_prompt":-1},[199,200],1795901825935,"b270fb84-a112-44f2-9801-f99d6c2e889e"]