[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-107636":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":13,"contributorsCount":13,"subscribersCount":13,"size":13,"stars1d":13,"stars7d":13,"stars30d":15,"stars90d":13,"forks30d":13,"starsTrendScore":13,"compositeScore":16,"rankGlobal":10,"rankLanguage":10,"license":17,"archived":18,"fork":18,"defaultBranch":19,"hasWiki":20,"hasPages":18,"topics":21,"createdAt":10,"pushedAt":31,"updatedAt":32,"readmeContent":33,"aiSummary":34,"trendingCount":13,"starSnapshotCount":13,"syncStatus":35,"lastSyncTime":36,"discoverSource":37},107636,"nano-banana-2-1-api-id","a3g9df6h4jh\u002Fnano-banana-2-1-api-id","a3g9df6h4jh","Gemini Nano Banana 2.1 API (`gemini-nano-banana-2.1`): model id, pricing, parameters and copy-paste examples for the OpenAI-compatible APIMart endpoint.","https:\u002F\u002Fgo.apimart.ai\u002Fk-e9c595",null,"Python",79,0,64,10,41,"Other",false,"main",true,[22,23,24,25,26,27,28,29,30],"ai-api-gateway","ai-image-api","apimart","image-api","image-editing","image-generation","nano-banana-2-1","nano-banana-2-1-api","text-to-image","2026-10-16 08:32:32","2026-11-04 12:22:15","# Gemini Nano Banana 2.1 API (`gemini-nano-banana-2.1`)\n\n\u003C!-- conv-kit:v1 -->\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"assets\u002Fbadges\u002Fprice.svg\" alt=\"observed unit price\"> \u003Cimg src=\"assets\u002Fbadges\u002Fbilling.svg\" alt=\"billing model\"> \u003Cimg src=\"assets\u002Fbadges\u002Fcompat.svg\" alt=\"OpenAI-compatible endpoint\">\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"assets\u002F01-product-hero-perfume.jpg\" width=\"820\" alt=\"Sample render via the APIMart image API\">\n\u003C\u002Fp>\n\n> **from $0.0137 per image** on the APIMart route — satu endpoint yang kompatibel dengan OpenAI di `https:\u002F\u002Fapi.apimart.ai\u002Fv1`, tanpa paket bulanan. *(diamati 2026-10-12)*\n\n**[Dapatkan API key](https:\u002F\u002Fgo.apimart.ai\u002Fk-cfbf75)** · **[Harga live](https:\u002F\u002Fgo.apimart.ai\u002Fk-96a803)** · **[Halaman model](https:\u002F\u002Fgo.apimart.ai\u002Fk-e9c595)** · [⚡ Quickstart 60 detik](#quickstart)\n\n**Alasan tim memakai Gemini Nano Banana 2.1 (`gemini-nano-banana-2.1`) lewat APIMart**\n\n- **Satu key untuk seluruh katalog.** base URL `https:\u002F\u002Fapi.apimart.ai\u002Fv1` dan header `Authorization` yang sama menjangkau Gemini Nano Banana 2.1 (`gemini-nano-banana-2.1`) plus 300+ model gambar, video, dan bahasa lainnya — cukup ganti field `model`, bukan klien Anda.\n- **Minimum $1, bayar sesuai pemakaian.** Tanpa langganan dan tanpa paket prabayar yang harus dihitung di awal: isi saldo mulai $1 dan pakai untuk panggilan.\n- **Biaya dikembalikan di respons.** Setiap task yang selesai melaporkan jumlah yang ditagih (`cost` \u002F `credits_cost`); task berstatus `failed` dikembalikan dananya.\n- **Asinkron sejak awal.** Kirim, ambil `task_id`, polling `GET \u002Fv1\u002Ftasks\u002F{id}` — batching dan retry hanyalah pekerjaan antrean biasa, bukan integrasi khusus.\n\n\u003C!-- \u002Fconv-kit:v1 -->\n\n\n\nGemini Nano Banana 2.1 is Google's image model on APIMart: text-to-image and reference-image editing on the official or Ext route with 1K \u002F 2K \u002F 4K output.\n\n## Model id and routes\n\n| Route | `model` value | Billing | Notes |\n| --- | --- | --- | --- |\n| Per-image | `gemini-nano-banana-2.1` | per delivered image, by resolution | see the [model page](https:\u002F\u002Fgo.apimart.ai\u002Fk-e9c595) for the exact tiers |\n\nEndpoint: `POST https:\u002F\u002Fapi.apimart.ai\u002Fv1\u002Fimages\u002Fgenerations`, then poll `GET \u002Fv1\u002Ftasks\u002F{task_id}`.\n\n## Pricing\n\n\u003C!-- pricing:model:start -->\n| Output | List price | Effective price |\n| --- | --- | --- |\n| per generated second | — | see the live pricing page |\n\nToken rates (effective): `text_input` $1.2\u002FM, `image_input` $1.2\u002FM, `text_output` $6\u002FM, `image_output` $24\u002FM.\n\u003C!-- pricing:model:end -->\n\nPrices are a snapshot; the [pricing page](https:\u002F\u002Fgo.apimart.ai\u002Fk-96a803) and [`data\u002Fmodel.json`](data\u002Fmodel.json) are refreshed by CI, and a completed task reports the exact amount in its `cost` field.\n\n## Request parameters\n\n| Field | Type | Default | Notes |\n| --- | --- | --- | --- |\n| `model` | string | required | the model id shown in the route table above |\n| `prompt` | string | required | what to generate, or what to change when editing |\n| `size` | string | `auto` \u002F `1:1` | aspect ratio, or `auto` where the route supports it |\n| `resolution` | string | `1K` | output resolution tier — cost scales with it |\n| `n` | integer | `1` | number of images per task, where the route allows more than one |\n| `image_urls` | string[] | — | reference images as public HTTP(S) URLs or base64 data URLs |\n| `nsfw_check` | boolean | `false` | runs `omni-moderation-latest` before submitting |\n\nThe table lists the fields accepted by the APIMart `images\u002Fgenerations` endpoint. Check the [model page](https:\u002F\u002Fgo.apimart.ai\u002Fk-e9c595) for anything this model adds on top.\n\n## Quickstart\n\n```bash\ncurl --request POST --url https:\u002F\u002Fapi.apimart.ai\u002Fv1\u002Fimages\u002Fgenerations \\\n  --header \"Authorization: Bearer $APIMART_API_KEY\" --header 'Content-Type: application\u002Fjson' \\\n  -d '{\"model\":\"gemini-nano-banana-2.1\",\"prompt\":\"A bamboo forest at sunrise, slow push-in\",\"size\":\"1:1\",\"resolution\":\"1K\"}'\n```\n\n```python\nimport os, time, requests\n\nBASE = \"https:\u002F\u002Fapi.apimart.ai\u002Fv1\"\nHEADERS = {\"Authorization\": f\"Bearer {os.environ['APIMART_API_KEY']}\", \"Content-Type\": \"application\u002Fjson\"}\n\ncreated = requests.post(f\"{BASE}\u002Fimages\u002Fgenerations\", headers=HEADERS, timeout=60, json={\n    \"model\": \"gemini-nano-banana-2.1\", \"prompt\": \"A bamboo forest at sunrise, slow push-in\",\n}).json()\ntask_id = created[\"data\"][\"id\"]\n\nwhile True:\n    task = requests.get(f\"{BASE}\u002Ftasks\u002F{task_id}\", headers=HEADERS, timeout=60).json()[\"data\"]\n    if task[\"status\"] in (\"completed\", \"failed\"):\n        break\n    time.sleep(5)\nprint(task.get(\"cost\"), task[\"result\"][\"images\"][0][\"url\"])\n```\n\nRunnable versions: [`examples\u002F`](examples). The task lifecycle is `pending → processing → completed | failed`.\n\n## FAQ\n\n**Apa id model Gemini Nano Banana 2.1?**\n\n`gemini-nano-banana-2.1`. Lihat tabel rute di atas.\n\n**Bagaimana penagihannya?**\n\n**from $0.0137 per image** on the APIMart route. Task yang selesai melaporkan jumlah tepatnya di field `cost`; task yang gagal dikembalikan dananya.\n\n**How do I get a key?**\n\nUse the [Get an API key](https:\u002F\u002Fgo.apimart.ai\u002Fk-cfbf75) link — $1 minimum top-up, no plan required.\n\n\u003C!-- related-repos:auto -->\n## Related repositories\n\n- **Same model, this language** — the other half of this pair: [nano-banana-2-1-prompts-id](https:\u002F\u002Fgithub.com\u002Fa3g9df6h4jh\u002Fnano-banana-2-1-prompts-id)\n- **Same model, other languages** — 9 more language builds: 中文 [nano-banana-2-1-api-cn](https:\u002F\u002Fgithub.com\u002Fg8yg5t1oq\u002Fnano-banana-2-1-api-cn) · Deutsch [nano-banana-2-1-api-de](https:\u002F\u002Fgithub.com\u002Ftn-gr0cr\u002Fnano-banana-2-1-api-de) · Español [nano-banana-2-1-api-es](https:\u002F\u002Fgithub.com\u002Frx5umw-ict13\u002Fnano-banana-2-1-api-es) · Français `nano-banana-2-1-api-fr` · Relay\u002Fgateway `nano-banana-2-1-api-gateway` · 日本語 `nano-banana-2-1-api-ja` · 한국어 `nano-banana-2-1-api-ko` · Português [nano-banana-2-1-api-pt](https:\u002F\u002Fgithub.com\u002Fulpgjzie6fwa\u002Fnano-banana-2-1-api-pt) · Русский [nano-banana-2-1-api-ru](https:\u002F\u002Fgithub.com\u002Fjqhc31it1vme\u002Fnano-banana-2-1-api-ru)\n- **More models in this language** — [midjourney-api-id](https:\u002F\u002Fgithub.com\u002Fcvrwq0\u002Fmidjourney-api-id) · [gemini-2-5-flash-image-preview-api-id](https:\u002F\u002Fgithub.com\u002Fgmrg0s\u002Fgemini-2-5-flash-image-preview-api-id) · [nano-banana-api-id](https:\u002F\u002Fgithub.com\u002Fvsa185x9ecrd\u002Fnano-banana-api-id) · [gemini-3-1-flash-image-preview-api-id](https:\u002F\u002Fgithub.com\u002Fp61qrgpg\u002Fgemini-3-1-flash-image-preview-api-id) · [nano-banana-2-api-id](https:\u002F\u002Fgithub.com\u002Fn1rf4ezzz\u002Fnano-banana-2-api-id) · [gemini-3-pro-image-preview-api-id](https:\u002F\u002Fgithub.com\u002Fs78ve5v4x9ji2\u002Fgemini-3-pro-image-preview-api-id)\n- **Topic hubs** — every build of this model, all languages: [nano-banana-2-1](https:\u002F\u002Fgithub.com\u002Ftopics\u002Fnano-banana-2-1) · [nano-banana-2-1-api](https:\u002F\u002Fgithub.com\u002Ftopics\u002Fnano-banana-2-1-api)\n\nThis repository is one build in a cross-linked set of API guides for the same model family; each language build links back to the others.\n\u003C!-- \u002Frelated-repos:auto -->\n\n## Attributed links (how this repository is measured)\n\n| Purpose | Attributed link | Target |\n| --- | --- | --- |\n| Model page | \u003Chttps:\u002F\u002Fgo.apimart.ai\u002Fk-e9c595> | `apimart.ai\u002Fid\u002Fmodel\u002Fnano-banana-2-1` |\n| Live pricing | \u003Chttps:\u002F\u002Fgo.apimart.ai\u002Fk-96a803> | `apimart.ai\u002Fid\u002Fpricing` |\n| Get an API key | \u003Chttps:\u002F\u002Fgo.apimart.ai\u002Fk-cfbf75> | `apimart.ai\u002Fid\u002Fkeys` |\n\nOutbound APIMart links are minted through the promo link API; hand-made tracking parameters are rejected by\n`tools\u002Fcheck_links.py` in CI.\n\n## Disclosure\n\nGemini Nano Banana 2.1 is a third-party model served through APIMart; this repository documents how to call it and publishes\nmodel ids and prices, and does not claim official status. Model names, prices and documentation belong to their\nrespective owners.\n\n## License\n\nMIT — see [LICENSE](LICENSE).\n","这是一个为 Gemini Nano Banana 2.1 图像生成模型提供的 OpenAI 兼容 API 接入指南项目，聚焦于 APIMart 平台上的即用型图像 API 集成。核心功能包括：支持文本生成图像（text-to-image）和参考图编辑（image editing），提供按分辨率计费的细粒度定价（最低 $0.0137\u002F图）、异步任务处理（task_id 轮询）、统一认证与多模型共用 API Key 的网关能力。技术特点涵盖 OpenAI 标准接口兼容性、实时费用返回（cost 字段）、零订阅预付费模式及自动刷新的价格与参数配置。适用于需要低成本、高灵活性接入轻量级 AI 图像服务的原型开发、SaaS 工具集成或批量图像生成场景。",2,"2026-11-25 04:37:13","CREATED_QUERY"]