# gpt-image-2-official API — WanAPIs

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

OpenAI GPT Image generation and editing models with precise text rendering, strong instruction-following, multiple resolutions and reference images. Async task API, pre-charged by tier and settled on actual usage when the task finishes, with any shortfall charged automatically.

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

## Live Pricing & Specs

- **Per call**: $0.120 (¥0.12/call (~$0.017 USD/call))

## 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-official",
  "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

### How do I call gpt-image-2-official via WanAPIs?

Send an authenticated request with Authorization: Bearer <WANAPIS_API_KEY> to https://api.wanapis.com using POST /v1/images/tasks and model "gpt-image-2-official".

### How much does gpt-image-2-official cost on WanAPIs?

Current live rate: $0.120 / call. WanAPIs uses RMB-anchored quota (¥1 = $1 quota, roughly 1/7 or ~86% off USD-denominated list pricing) with zero monthly subscription.

### Can AI coding agents (Claude Code, Codex, Cursor) discover and use this model?

Yes. Point your agent to https://wanapi.ai/SKILL.md or install npx -y @wanapis/mcp. A machine-readable Markdown spec is also available at /model/gpt-image-2-official.md.

## Related Links

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