在线试用 GPT Image 2 生成图片,再接入 API
GPT Image 2 在 Crazyrouter 上通过 OpenAI 兼容的 images 接口提供。按张付费、无订阅,与文本模型共用一把 Key。
把模型 ID、实时价格、Base URL 和调用示例一次粘贴进你的 coding agent。
GPT Image 2 是什么?
GPT Image 2 是 OpenAI 的 GPT Image 系列图片模型,支持文生图与图片编辑。在 Crazyrouter 上它与对话、视频、音频模型共用 Key 和余额,不用再开一家账号。
请求与响应结构与 OpenAI Images API 一致,现有客户端代码可直接用。
只按成功生成的图片数量、以本页价格扣费。
上游模型支持时可传参考图做编辑与风格迁移。
图片、对话、视频、音乐共用一个余额。
GPT Image 2 API 快速开始
向 https://api.crazyrouter.com/v1/images/generations 发 POST,model 填 gpt-image-2。响应遵循 OpenAI images 格式(URL 或 base64)。
curl https://api.crazyrouter.com/v1/images/generations \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $CRAZYROUTER_API_KEY" \
-d '{
"model": "gpt-image-2",
"prompt": "Product photo of a matte ceramic coffee mug on a light oak desk, soft morning window light, shallow depth of field, neutral background, commercial photography",
"n": 1,
"size": "1536x1024"
}'GPT Image 2 样例输出
以下样例全部通过 Crazyrouter 用上方所示请求生成,未经修图或挑选;显示的是每条请求的实际耗时与扣费。

展开完整提示词
Product photo of a matte ceramic coffee mug on a light oak desk, soft morning window light, shallow depth of field, neutral background, commercial photography

展开完整提示词
Studio portrait of a smiling woman in her thirties wearing a linen shirt, natural window light, 85mm lens look, soft grey backdrop, photorealistic

展开完整提示词
Top-down aerial view of a rain-soaked city street at night, neon signs reflecting on wet asphalt, a single yellow umbrella, cinematic, moody

展开完整提示词
Minimal poster with the word CRAZYROUTER in bold black sans-serif letters centered on a warm off-white background, one thin amber underline, lots of negative space, print quality
生成于 2026-09-28
适用场景
开发工具兼容
OpenAI SDK
client.images.generate(model="gpt-image-2", prompt=...),base URL 指向 Crazyrouter。
n8n / Dify / Make
用 HTTP 节点或 OpenAI 兼容连接器接 Crazyrouter。
自建后端
纯 HTTPS 调用,不依赖 SDK。
Crazyrouter 演练场
写代码前先在控制台试提示词。
GPT Image 2 常见问题
调用哪个接口?
https://api.crazyrouter.com/v1/images/generations,model 填 gpt-image-2。
怎么计费?
按成功生成的图片张数、按本页价格扣费,失败不计费。
支持哪些尺寸和格式?
以上游模型为准,按厂商文档传 size 与 response_format。
能编辑已有图片吗?
上游支持编辑的模型可通过 edits 接口或 image 字段传参考图。
有限流吗?
按账户等级限流,需要更高吞吐可联系支持。
相关指南与对比
Tutorial电商使用 gpt-image-2 失败的常见原因:size、品牌词、图片素材和渠道问题
基于多批电商图片生成和图片编辑实践统计,总结使用 gpt-image-2 做商品主图、场景图、白底图改背景时的常见失败原因:size 参数不兼容、未传 model、提示词包含品牌/IP、图片编辑目标冲突、素材质量问题和上游渠道临时异常。
GuideAI 扩图 API 指南 2026:Uncrop、Outpaint、gpt-image-2 和 Nano Banana 路线怎么选
面向开发者和内容团队的 AI 扩图路线选择:什么时候用在线 uncrop,什么时候用 Photoshop 或对话式图片编辑,什么时候用 CrazyRouter 的 gpt-image-2、Nano Banana 2 与 Nano Banana Pro API。
TutorialGPT-image-2 实战:AI Meme 生成器 & 涂色书制作 — 好玩还能赚钱的两个项目
用 GPT-image-2 通过 Crazyrouter API 生成 Meme 表情包和涂色书页面。两个好玩又能变现的项目,附完整代码。
最新节目
EP196 · 2026年10月29日 · 6:53
AI API Security Posture — Turn Controls Into Continuous Evidence
A practical guide to AI API security posture: inventory exposure, verify controls continuously, protect keys and data, constrain tools, and turn security assumptions into evidence that operators can act on.
EP195 · 2026年10月28日 · 7:21
AI API Policy Drift — Detect When Production Rules Stop Matching Intent
A practical guide to policy drift in AI APIs: version routing and safety rules, detect stale enforcement, compare intended and observed behavior, and restore control before small gaps become incidents.
