GPT-4o 图像 API
利用 OpenAI 的全模态视觉引擎。GPT-4o 图像 API 提供像素级完美的文本、电影级逼真度及原生重绘能力——经 EvoLink 优化,兼顾成本与速度。
Upload reference images
Click to upload or drag and drop
Supported formats: JPG, JPEG, PNG, WEBP
Maximum file size: 10MB; Maximum files: 10

History
最多保留20条0 运行中 · 0 已完成
Pricing
GPT-4o 图像 API:精准视觉,清晰文字
使用业界最准确的文本渲染模型生成和编辑资产。从 1024px 营销视觉图到复杂的扩图 (Outpainting),利用原生 C2PA 溯源简化您的工作流。

利用 GPT-4o 图像 API 可以构建什么?
为何开发者选择 GPT-4o 图像 API
在文本保真度和指令遵循方面超越 DALL·E 3,提供统一的生成与编辑端点,且价格极具竞争力(通过 EvoLink 约 $0.035)。
卓越的指令遵循
比以往任何扩散模型都能更好地理解复杂、多步骤的提示词,降低重试成本。
高性价比扩展
通过 EvoLink 优化的路由基础设施,以约 $0.035 每张(1024px 渲染)的价格获取顶级视觉能力。
信任与安全标准
每次生成均包含用于溯源的 C2PA 元数据,并遵循企业级安全过滤标准。
如何集成 GPT-4o 图像 API
三个简单请求,从提示词到像素级完美结果。
第 1 步 — 配置负载 (Payload)
将模型设置为 `gpt-4o-image`,定义尺寸(默认 1024x1024),并选择“生成”或“编辑”端点。
第 2 步 — 发送上下文提示词
提交详细的文本指令。对于编辑任务,请包含底图和目标区域的透明蒙版。
第 3 步 — 获取与部署
接收高保真 URL 或 Base64 数据。处理 C2PA 元数据并将资产直接集成到您的应用中。
核心 API 能力
由 GPT-4o 原生全模态架构驱动
文本渲染引擎
相比 DALL·E 3,拼写错误大幅减少。
高级重绘
编程化蒙版功能,用于添加、移除或修改图像区域。
风格多变性
通过提示词在写实、3D 渲染和线稿风格间自由切换。
高清输出
原生 1024px 生成,具备适合印刷的可扩展质量。
企业级安全
内置内容审核与溯源水印。
优化定价
通过 EvoLink 路由,享受约 $0.035 每次生成的费率。
图像生成模型对比
为您的特定视觉需求选择合适的工具
| Model | Duration | Resolution | Price | Strength |
|---|---|---|---|---|
| GPT-4o Image API | N/A | 1024px (原生) | ~$0.035/图 | 卓越的文本渲染,原生重绘,最高的提示词保真度。 |
| Nano Banana 2 | N/A | 1024px 基础 | ~$0.12/图 | 强大的多语言支持;适合批量任务的快速吞吐。 |
| Wan 2.5 T2I | N/A | 可变 (Token) | ~$0.03/图 | 灵活的纵横比与实验性的风格批处理。 |
GPT-4o 图像 API - 常见问题
Everything you need to know about the product and billing.
API Reference
Select endpoint
Authentication
All APIs require Bearer Token authentication.
Authorization:
Bearer YOUR_API_KEY/v1/images/generationsGenerate Image
Create an image generation task using text prompts or reference images. Supports text-to-image, image-to-image, and image editing modes.
Asynchronous processing mode, use the returned task ID to .
Generated image links are valid for 24 hours, please save them promptly.
Request Parameters
modelstringRequiredDefault: gpt-4o-imageImage generation model name.
gpt-4o-imagepromptstringRequiredPrompt describing the image to be generated or how to edit the input image.
Notes
- Limited to 2000 tokens
A cat playing in the grasssizestringOptionalSize of the generated image. Supports ratio format and pixel format.
| Value | Description |
|---|---|
| 1:1 | Square ratio |
| 2:3 | Portrait ratio |
| 3:2 | Landscape ratio |
| 1024x1024 | Square (1024×1024) |
| 1024x1536 | Portrait (1024×1536) |
| 1536x1024 | Landscape (1536×1024) |
1024x1024nintegerOptionalNumber of images to generate.
| Value | Description |
|---|---|
| 1 | Generate 1 image |
| 2 | Generate 2 images |
| 4 | Generate 4 images |
Notes
- Pre-charged based on n value, actual charge based on generated count
1image_urlsarrayOptionalReference image URL list for image-to-image and image editing functions.
Notes
- Max 5 images per request
- Max size: 10MB per image
- Formats: .jpeg, .jpg, .png, .webp
- URLs must be directly accessible by the server
https://example.com/image1.pngmask_urlstringOptionalMask image URL for image editing.
Notes
- Mask and reference image must be PNG format with same dimensions
- Max size: 4MB
- Cannot be used when image_urls contains more than 1 image
https://example.com/mask.pngcallback_urlstringOptionalHTTPS callback address after task completion.
Notes
- Triggered on completion, failure, or cancellation
- Sent after billing confirmation
- HTTPS only, no internal IPs
- Max length: 2048 chars
- Timeout: 10s, Max 3 retries
https://your-domain.com/webhooks/image-task-completed

