# GPT Image 2 API — WanAPIs

> **Model ID**: `gpt-image-2` · **Provider**: OpenAI · **Category**: image · **Endpoint**: `POST /v1/images/tasks`
> **Live Price**: $0.120 / 次 (RMB-anchored quota: `¥1 = $1 quota`, ~86% off USD list rates at `$1 ≈ ¥7`).
> **Web Page**: https://wanapis.com/model/gpt-image-2

GPT Image 2 在复杂多元素构图、精准文字渲染与多图编辑上表现优异。通过 WanAPIs 统一接口调用，无需绑定海外信用卡，单张成本极低并支持 MCP / Agent 一键出图。

**Also known as**: OpenAI gpt-image-2

## Live Pricing & Specs

- **Per call**: $0.120 (实付 ¥0.12/call（≈ $0.017/call）)

## Key Highlights

- 对复杂长提示词、信息图、UI 原型和含文字海报的理解非常准确
- 同系列覆盖 gpt-image-2-official 与新一代 gpt-image-2.6-sunburst / flare
- 单张仅 ¥0.12（≈ $0.017 USD），适合高频设计迭代与批量生成

## Quickstart (cURL)

```bash
curl https://api.wanapis.com/v1/images/tasks \
  -H "Authorization: Bearer $WANAPIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "gpt-image-2",
  "prompt": "Minimalist studio product shot on clean background",
  "size": "1:1",
  "n": 1
}'

# Poll until data.status is SUCCESS or FAILURE:
curl https://api.wanapis.com/v1/images/tasks/<task_id> \
  -H "Authorization: Bearer $WANAPIS_API_KEY"
```

## FAQ

### gpt-image-2 和 gpt-image-2.6-sunburst 怎么选？

gpt-image-2 单价更低、速度稳定；gpt-image-2.6-sunburst 是更新一代型号，支持按 quality / resolution 精细控制画质。

## Related Links

- Web Landing Page: https://wanapis.com/model/gpt-image-2
- Agent Skill Router: https://wanapis.com/SKILL.md
- Complete Live Pricing (Markdown): https://wanapis.com/pricing.md
- OpenAPI 3.1 Spec: https://wanapis.com/openapi.json
- MCP Server Card: https://wanapis.com/.well-known/mcp.json
