GPT-4o 图像 API

利用 OpenAI 的全模态视觉引擎。GPT-4o 图像 API 提供像素级完美的文本、电影级逼真度及原生重绘能力——经 EvoLink 优化,兼顾成本与速度。

77 (suggested: 2,000)

Upload reference images

Click to upload or drag and drop

Supported formats: JPG, JPEG, PNG, WEBP
Maximum file size: 10MB; Maximum files: 10

Generated image 1

History

最多保留20条

0 运行中 · 0 已完成

您的生成历史将显示在这里
$

Pricing

Starting from
$0.035
2.5 Credits
per image
Guaranteed
99.9% Uptime
Powered by 16 redundant providers

GPT-4o 图像 API:精准视觉,清晰文字

使用业界最准确的文本渲染模型生成和编辑资产。从 1024px 营销视觉图到复杂的扩图 (Outpainting),利用原生 C2PA 溯源简化您的工作流。

示例 1

利用 GPT-4o 图像 API 可以构建什么?

排版精准的设计

终于有一款能拼对单词的 AI 了。生成海报、UI 原型和 Logo,具备可靠的拉丁字母文本渲染能力。

示例 2

商业级照片逼真度

凭借先进的布光和纹理控制,创作影棚级的产品图和人像。

示例 3

原生重绘 (Inpainting) 与扩图 (Outpainting)

以编程方式编辑现有图像。通过蒙版指定特定区域,无缝修改对象或扩展画布边界。

示例 4

为何开发者选择 GPT-4o 图像 API

在文本保真度和指令遵循方面超越 DALL·E 3,提供统一的生成与编辑端点,且价格极具竞争力(通过 EvoLink 约 $0.035)。

卓越的指令遵循

比以往任何扩散模型都能更好地理解复杂、多步骤的提示词,降低重试成本。

高性价比扩展

通过 EvoLink 优化的路由基础设施,以约 $0.035 每张(1024px 渲染)的价格获取顶级视觉能力。

信任与安全标准

每次生成均包含用于溯源的 C2PA 元数据,并遵循企业级安全过滤标准。

如何集成 GPT-4o 图像 API

三个简单请求,从提示词到像素级完美结果。

1

第 1 步 — 配置负载 (Payload)

将模型设置为 `gpt-4o-image`,定义尺寸(默认 1024x1024),并选择“生成”或“编辑”端点。

2

第 2 步 — 发送上下文提示词

提交详细的文本指令。对于编辑任务,请包含底图和目标区域的透明蒙版。

3

第 3 步 — 获取与部署

接收高保真 URL 或 Base64 数据。处理 C2PA 元数据并将资产直接集成到您的应用中。

核心 API 能力

由 GPT-4o 原生全模态架构驱动

精度

文本渲染引擎

相比 DALL·E 3,拼写错误大幅减少。

编辑

高级重绘

编程化蒙版功能,用于添加、移除或修改图像区域。

创意

风格多变性

通过提示词在写实、3D 渲染和线稿风格间自由切换。

质量

高清输出

原生 1024px 生成,具备适合印刷的可扩展质量。

合规

企业级安全

内置内容审核与溯源水印。

价值

优化定价

通过 EvoLink 路由,享受约 $0.035 每次生成的费率。

图像生成模型对比

为您的特定视觉需求选择合适的工具

ModelDurationResolutionPriceStrength
GPT-4o Image APIN/A1024px (原生)~$0.035/图卓越的文本渲染,原生重绘,最高的提示词保真度。
Nano Banana 2N/A1024px 基础~$0.12/图强大的多语言支持;适合批量任务的快速吞吐。
Wan 2.5 T2IN/A可变 (Token)~$0.03/图灵活的纵横比与实验性的风格批处理。

GPT-4o 图像 API - 常见问题

Everything you need to know about the product and billing.

通过 EvoLink 路由,每张 1024px 图片的实际成本约为 $0.035,这使其成为比标准 DALL·E 3 列表价格更具性价比的替代方案。
GPT-4o 图像 API 采用全模态架构,显著提高了文本渲染的准确度和提示词遵循度,并启用了 DALL·E 3 所缺乏的原生重绘 (Inpainting) 和扩图 (Outpainting) 能力。
是的。该端点接受一张底图和一张蒙版图像,允许您使用文本提示词无缝编辑或替换视觉内容的特定区域。
标准原生生成为 1024x1024 像素。针对更高需求,EvoLink 提供放大管道,可达到 2048px 或 4K。
可以,您拥有所生成图片的所有权。此外,API 包含 C2PA 元数据以验证来源,并设有安全过滤器以防止违规。
虽然细节非常丰富,但 GPT-4o 图像 API 针对速度进行了优化。具体延迟取决于服务器负载,但 EvoLink 路由会优先选择最快的可用路径。
是的,API 支持多种纵横比,包括正方形 (1:1)、宽屏 (16:9) 和竖屏 (9:16),以满足不同平台的需求。
POST
/v1/images/generations

Generate 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-image

Image generation model name.

Examplegpt-4o-image
promptstringRequired

Prompt describing the image to be generated or how to edit the input image.

Notes
  • Limited to 2000 tokens
ExampleA cat playing in the grass
sizestringOptional

Size of the generated image. Supports ratio format and pixel format.

ValueDescription
1:1Square ratio
2:3Portrait ratio
3:2Landscape ratio
1024x1024Square (1024×1024)
1024x1536Portrait (1024×1536)
1536x1024Landscape (1536×1024)
Example1024x1024
nintegerOptional

Number of images to generate.

ValueDescription
1Generate 1 image
2Generate 2 images
4Generate 4 images
Notes
  • Pre-charged based on n value, actual charge based on generated count
Example1
image_urlsarrayOptional

Reference 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
Examplehttps://example.com/image1.png
mask_urlstringOptional

Mask 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
Examplehttps://example.com/mask.png
callback_urlstringOptional

HTTPS 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
Examplehttps://your-domain.com/webhooks/image-task-completed

Request Example

{
  "model": "gpt-4o-image",
  "prompt": "A beautiful sunset over the ocean with vibrant colors",
  "size": "1024x1024",
  "n": 1
}

Response Example

{
  "created": 1757165031,
  "id": "task-unified-1757165031-uyujaw3d",
  "model": "gpt-4o-image",
  "object": "image.generation.task",
  "progress": 0,
  "status": "pending",
  "task_info": {
    "can_cancel": true,
    "estimated_time": 45
  },
  "type": "image",
  "usage": {
    "billing_rule": "per_call",
    "credits_reserved": 2.5,
    "user_group": "default"
  }
}