HappyHorse 1.0 正式上线立即体验

GPT Image 2 API

在 EvoLink 上使用 GPT Image 2 进行文生图、图像编辑和异步图像交付。一个 API Key 即可完成定价评估、Playground 验证和生产接入。

Est.价格: $0.0017 - 0.817(~ 0.11383 - 55.58049 credits) per image

Token-based billing — range covers all Playground combinations at n=1 (quality / resolution / ratio / up to 16 reference images). Multiply by Count for n>1.

稳定性最高,保证 99.9% 可用性。推荐用于生产环境。

Use the same API endpoint. The model parameter selects the variant.

GPT Image 2 API 定价与接入

通过 EvoLink 运行 GPT Image 2,用于文生图、图生图、图像编辑和异步任务交付。查看定价,在 Playground 测试提示词,并用一套 API 流程进入生产环境。

GPT Image 2 API 示例输出
Need inspiration? Browse GPT Image 2 prompts
42 (suggested: 2,000)

Upload up to 16 images (max 50MB each)

Click to upload or drag and drop

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

Ratio mode: w×h ≈ Resolution tier pixel budget (1K≈1.05MP, 2K≈4.19MP, 4K=8.29MP). Auto lets the model decide (resolution ignored; cost estimated as 2048×2048 conservative cap). Custom takes any WxH — both multiples of 16, 655K~8.29M total pixels, edges ≤ 3840px, aspect ≤ 3:1.

Anchor-edge tier for aspect-ratio sizes. Combinations exceeding the 8.29 MP budget are scaled down (e.g. 4K 1:1 → 2880×2880). Ignored in Auto and Custom modes.

Rendering effort / thinking depth. Directly affects output token count and cost.

Number of images to generate (1-10)

1
1
2
3
4
5
6
7
8
9
10

Click Generate to see preview

History

最多保留20条

0 运行中 · 0 已完成

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

Billing Model

  • Token-based — charged by the token counts reported in the upstream usage object.
  • Image Output tokens scale with size and quality (low/medium/high).
  • Image Input tokens apply only in image-to-image / edit mode.
  • Cached Input is charged only when the upstream usage object reports cached tokens.

Pricing

GPT Image 2
Token-based billing
Token Category:Image Output
Price:
$0.027/ 1K tokens
(1.836 Credits)
GPT Image 2
Token-based billing
Token Category:Image Input
Price:
$0.0072/ 1K tokens
(0.4896 Credits)
GPT Image 2
Token-based billing
Token Category:Image Cached Input
Price:
$0.0018/ 1K tokens
(0.1224 Credits)
GPT Image 2
Token-based billing
Token Category:Text Input
Price:
$0.0045/ 1K tokens
(0.306 Credits)
GPT Image 2
Token-based billing
Token Category:Text Cached Input
Price:
$0.0011/ 1K tokens
(0.0765 Credits)

If it's down, we automatically use the next cheapest available—ensuring 99.9% uptime at the best possible price.

EVOLINK · PRICE EST.gpt-image-2
× 1 · real-time

Figures are pre-bill estimates. Actual charges follow the upstream response.usage returned by the model.

Your estimate
~$0.0473.224
Official· saves ~10%
~$0.0533.582
Tokens per image
image output1,756
image input0
text input0
Quality
Size
Resolution
Aspect
Count
1
Ref images
0
Prompt
0 chars · ~0 tokens

利用 GPT Image 2 可以构建什么

商品图更新工作流

用 GPT Image 2 更新电商目录和商品展示图,而不必每次都从零重做素材。团队可以生成新背景、季节性变体和更干净的主图,同时保持产品表达的一致性。

商品图更新示例

营销素材生成

通过一条 API 路由生成发布海报、社交媒体视觉和广告概念图。适合需要快速试错提示词、提前看到价格,并从 Playground 平滑进入生产接入的团队。

营销素材生成示例

基于参考图的图像编辑

当你需要定向修改而不是纯新图生成时,可以把提示词和参考图一起提交。它适合需要受控编辑、更新构图,或从同一源图反复生成变体的工作流。

参考图编辑示例

为什么通过 EvoLink 使用 GPT Image 2

EvoLink 把 GPT Image 2 变成一个更容易决策的接入页:一条路由、清晰定价、Playground 验证,以及适合生产图像任务的异步工作流。

从测试到生产只用一条 API 路由

你可以先在 Playground 验证提示词和请求结构,再进入 API 集成,而不需要切换工具或重构调用流程。

更清楚的价格与计费视图

这个页面把定价、Playground 入口和请求模型名放在一起,方便团队在扩大图像工作负载之前先判断成本。

更适合真实任务的异步流程

EvoLink 上的 GPT Image 2 采用异步任务流,更适合耗时更长的生成和编辑请求,而不是把所有请求都假设成即时同步返回。

如何接入 GPT Image 2

三步完成路由测试、请求发送和异步图像结果获取。

1

创建 API Key

登录 EvoLink 后创建一个 API Key,即可同时用于 Playground 测试和生产请求。这也是平台内其他支持模型的统一接入方式。

2

发送 GPT Image 2 请求

请求里使用 `gpt-image-2` 作为模型名,并传入 prompt、size、quality;如果要做参考图编辑或图生图工作流,再额外传入 `image_urls`。

3

轮询任务结果并保存素材

图像生成通过异步任务返回。你的应用需要轮询任务状态,在结果完成后及时保存资产,因为生成后的图片链接有时效限制。

GPT Image 2 核心能力

在评估图像 API 是否适合生产使用时,真正重要的控制项和交付能力。

工作流

文生图与图像编辑

同一条路由既可用于全新图像生成,也可处理参考图编辑和图生图类工作流。

编辑

参考图支持

当工作流需要受控编辑、变体生成或基于已有素材做 prompt 驱动修改时,可以附加一张或多张参考图 URL。

控制项

尺寸与质量控制

可以选择支持的纵横比或像素尺寸,并按输出要求和成本容忍度调整质量参数。

异步

异步任务交付

请求会返回任务 ID 以便轮询,这让团队可以更清晰地管理耗时较长的生成和编辑任务。

输出

单图输出流程

这条路由围绕单次请求输出一张结果图来设计,更适合审批、存储和自动化流水线中的后处理。

交付

有时效的结果链接

生成完成后的图片 URL 是临时的,生产集成应及时把输出保存到应用自己的存储或素材管理流程中。

费用示例

100 张图片(1K 默认)100 × $0.015 = $1.50
1,000 张图片(1K 默认)1,000 × $0.015 = $15
生产规模每月 10,000 张图片10,000 × $0.015 = $150

使用低质量进行提示词迭代(0.11 倍成本),仅在最终输出时使用高质量。

常见问题

Everything you need to know about the product and billing.

在 EvoLink 上,GPT Image 2 是一条用于文生图、参考图编辑和图生图工作流的图像生成路由。这个页面是它的产品入口,用于查看定价、测试 Playground 和开始 API 接入。
价格取决于当前页面展示的路由配置。正式上线前,建议先结合定价区块评估尺寸、质量和预期图像量级,再决定是否扩大工作负载。
支持。你可以在请求中传入 prompt,并在需要时附带 `image_urls`,以完成参考图编辑、受控变体或图生图类请求,而不只是纯新图生成。
这条路由的请求模型名是 `gpt-image-2`。建议在 Playground 测试、集成开发和生产发布中都保持一致。
是。EvoLink 上的 GPT Image 2 通过异步任务流运行。你的应用需要先创建任务,再轮询状态,并在结果完成后保存或分发图像。
可以直接使用本页的 Playground 先验证提示词、对比参数设置,并判断这条路由是否适合你的业务工作流,然后再进入正式集成。
EvoLink 上的 GPT Image 2 支持多种纵横比和像素尺寸,也支持按输出要求和成本控制调整质量设置。当前可用选项以本页参数说明和定价区块为准。
可以使用本页的 API 区块查看端点行为、请求结构和异步任务处理方式。在正式上线前,建议先用这里确认实现细节。

查看 GPT Image 家族

GPT Image 2 是 EvoLink 上 GPT Image 家族里最新的路线。 如果你下一步的问题是应该选哪条路线,先去家族页查看;然后再对比 GPT Image 1.5 或 GPT Image 1,判断当前更适合生产默认还是作为旧版基线。

POST
/v1/images/generations

Generate Image

Create an image generation task using text prompts. Supports text-to-image and reference-image-assisted generation.

Asynchronous processing mode, use the returned task ID to query status.

Generated image links are valid for 24 hours, please save them promptly.

Request Parameters

modelstringRequiredDefault: gpt-image-2

Image generation model name.

ValueDescription
gpt-image-2Official Azure GPT Image 2 — token-based billing
Examplegpt-image-2
promptstringRequired

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

Notes
  • Max 32,000 characters (counted by Unicode code points — works for CJK and other languages)
ExampleA beautiful colorful sunset over the ocean
sizestringOptionalDefault: auto

Aspect ratio or explicit pixel dimensions (WxH).

ValueDescription
autoDefault — let the model decide
1:1 / 1:2 / 2:1 / 1:3 / 3:1 / 2:3 / 3:2 / 3:4 / 4:3 / 4:5 / 5:4 / 9:16 / 16:9 / 21:9 / 9:21Aspect ratio — pixel size decided together with the resolution tier
1024x1024 (or any WxH)Explicit pixels — multiples of 16, pixel budget 655K~8.29M, edges ≤3840, aspect ≤3:1
Notes
  • When size is explicit WxH pixels, the resolution parameter is ignored.
  • In auto mode the model decides the final size; resolution has no effect.
  • Combinations that exceed the 8.29 MP pixel budget are proportionally scaled down (e.g. 4K 1:1 → 2880×2880).
Exampleauto
resolutionstringOptionalDefault: 1K

Resolution tier shortcut. Only effective when size is a ratio; ignored for explicit pixels and auto.

ValueDescription
1KPixel budget ≈ 1024² = 1.05MP (1:1 → 1024×1024, 16:9 → 1360×768)
2KPixel budget ≈ 2048² = 4.19MP (1:1 → 2048×2048, 16:9 → 2736×1536)
4KPixel budget = 8.29MP / MaxPixels (1:1 → 2880×2880, 16:9 → 3840×2160 UHD)
Example2K
qualitystringOptionalDefault: medium

Rendering quality / reasoning depth. Directly drives output token count (tile base 16/48/96 for low/medium/high).

ValueDescription
lowTile base 16 — fastest, ~0.11× cost vs medium
mediumTile base 48 — balanced (default)
highTile base 96 — highest fidelity, ~4× cost vs medium
Examplemedium
nintegerOptionalDefault: 1

Number of images to generate (1-10). Each image is billed independently; text input tokens scale linearly with n.

Example1
image_urlsarrayOptional

Reference image URL list for image-to-image and image editing features.

Notes
  • 1–16 images per request
  • Each image ≤ 50 MB
  • Supported formats: .jpeg, .jpg, .png, .webp
  • URLs must be directly accessible by the server, or URLs that trigger direct download (typically URLs ending with image extensions like .png, .jpg)
  • Reference images themselves consume additional image-input tokens in edit / image-to-image mode
Examplehttps://example.com/image1.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-image-2",
  "prompt": "A beautiful colorful sunset over the ocean",
  "size": "auto",
  "resolution": "1K",
  "quality": "medium",
  "n": 1,
  "image_urls": [
    "https://example.com/reference.png"
  ]
}

Response Example

{
  "created": 1757156493,
  "id": "task-unified-1757156493-imcg5zqt",
  "model": "gpt-image-2",
  "object": "image.generation.task",
  "progress": 0,
  "status": "pending",
  "task_info": {
    "can_cancel": true,
    "estimated_time": 180
  },
  "type": "image",
  "usage": {
    "billing_rule": "per_token",
    "credits_reserved": 1.98,
    "user_group": "default"
  }
}