[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-107650":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":12,"contributorsCount":12,"subscribersCount":12,"size":12,"stars1d":12,"stars7d":12,"stars30d":14,"stars90d":12,"forks30d":12,"starsTrendScore":12,"compositeScore":15,"rankGlobal":9,"rankLanguage":9,"license":16,"archived":17,"fork":17,"defaultBranch":18,"hasWiki":19,"hasPages":17,"topics":20,"createdAt":9,"pushedAt":21,"updatedAt":22,"readmeContent":23,"aiSummary":24,"trendingCount":12,"starSnapshotCount":12,"syncStatus":25,"lastSyncTime":26,"discoverSource":27},107650,"nano-banana-2-api-prompts-cn","apimartcn\u002Fnano-banana-2-api-prompts-cn","apimartcn","Nano Banana 2 prompts: tested image prompt recipes with example renders, aspect ratios, the model id (`gemini-3.1-flash-image-preview`) and the cost per image.",null,"Python",68,0,61,7,40.7,"Other",false,"main",true,[],"2026-10-12 11:31:54","2026-11-04 12:28:02","# Nano Banana 2 Prompts — 8 Tested Recipes With Outputs\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.015 per image** (0.5K $0.015 · 1K $0.015 · 2K $0.02) — one OpenAI-compatible endpoint at `https:\u002F\u002Fapi.apimart.ai\u002Fv1`, no monthly plan required. *(observed 2026-10-12)*\n\n**[Get an API key](https:\u002F\u002Fgo.apimart.ai\u002Fk-f9e153)** · **[Live pricing](https:\u002F\u002Fgo.apimart.ai\u002Fk-2c7b35)** · **[Model page](https:\u002F\u002Fgo.apimart.ai\u002Fk-7fb2ea)** · [⚡ 60-second quickstart](#quickstart)\n\n**Why teams call Nano Banana 2 (`gemini-3.1-flash-image-preview`) through APIMart**\n\n- **One key, entire catalog.** The same `https:\u002F\u002Fapi.apimart.ai\u002Fv1` base URL and `Authorization` header reach Nano Banana 2 (`gemini-3.1-flash-image-preview`) and 300+ other image, video and language models — switch the `model` field, not your client.\n- **$1 minimum, pay as you go.** No subscription and no prepaid plan to size up front: top up from $1 and spend it on calls.\n- **The charge comes back in the response.** Every completed task reports the amount billed (`cost` \u002F `credits_cost`); a task marked `failed` is refunded.\n- **Async by design.** Submit, take the `task_id`, poll `GET \u002Fv1\u002Ftasks\u002F{id}` — batching and retries are ordinary queue work, not a bespoke integration.\n\n\u003C!-- \u002Fconv-kit:v1 -->\n\nNano Banana 2 is Google's Gemini 3.1 Flash Image for fast AI image generation with native 4K output and editing.\n\n## Model id and routes\n\n| Route | `model` value | Billing | Notes |\n| --- | --- | --- | --- |\n| Per-image | `gemini-3.1-flash-image-preview` | per delivered image, by resolution | see the [model page](https:\u002F\u002Fgo.apimart.ai\u002Fk-7fb2ea) for the exact tiers |\n\nEndpoint: `POST https:\u002F\u002Fapi.apimart.ai\u002Fv1\u002Fimages\u002Fgenerations` (OpenAI-compatible), 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| default | 0.01875 | 0.015 |\n| 0.5K | 0.01875 | 0.015 |\n| 1K | 0.01875 | 0.015 |\n| 2K | 0.025 | 0.02 |\n| 4K | 0.03125 | 0.025 |\n\n\n\u003C!-- pricing:model:end -->\n\nPrices are a snapshot; the [pricing page](https:\u002F\u002Fgo.apimart.ai\u002Fk-2c7b35) 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 OpenAI-compatible image endpoint. Check the [model page](https:\u002F\u002Fgo.apimart.ai\u002Fk-7fb2ea) 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-3.1-flash-image-preview\",\"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-3.1-flash-image-preview\", \"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**What is the Nano Banana 2 model id?**\n\n`gemini-3.1-flash-image-preview`. See the route table above.\n\n**How is it billed?**\n\n**from $0.015 per image** (0.5K $0.015 · 1K $0.015 · 2K $0.02). The completed task reports the exact amount in its `cost` field; a failed task is refunded.\n\n**How do I get a key?**\n\nUse the [Get an API key](https:\u002F\u002Fgo.apimart.ai\u002Fk-f9e153) link — $1 minimum top-up, no plan required.\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-7fb2ea> | `apimart.ai\u002Fzh\u002Fmodel\u002Fnano-banana-2-api` |\n| Live pricing | \u003Chttps:\u002F\u002Fgo.apimart.ai\u002Fk-2c7b35> | `apimart.ai\u002Fzh\u002Fpricing` |\n| Get an API key | \u003Chttps:\u002F\u002Fgo.apimart.ai\u002Fk-f9e153> | `apimart.ai\u002Fzh\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\nNano Banana 2 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","这是一个面向开发者的 AI 图像生成提示词（prompt）优化资源库，聚焦于 Google Gemini 3.1 Flash Image 模型（ID：gemini-3.1-flash-image-preview）的实测图像生成方案。项目提供 8 套经验证的中文提示词配方，涵盖不同主题、宽高比（如 1:1）、输出分辨率（最高 4K）及对应生成成本，并附带示例渲染图与 OpenAI 兼容 API 调用方式。核心特点是轻量级、按量计费（低至 $0.015\u002F图）、免订阅、异步任务接口及统一 API 网关支持多模型切换。适用于需快速集成低成本、高可用图像生成功能的原型开发、A\u002FB 测试、电商素材生成或自动化内容生产等场景。",2,"2026-11-24 04:32:32","CREATED_QUERY"]