跳转至内容
Runstage

OpenAI

GPT Image 2.5

根据文本提示生成图像。描述主体、构图、光线、风格和需要显示的文字,选择图像尺寸和质量级别,无需参考图像或设置采样器,即可生成完整画面。

公开 API 价格
~$0.0845 / 1024×1024
查看所有价格档位
1024×1024~$0.0845
1536×1024~$0.0974
1024×1536~$0.0974
API 模型 ID
图像 API 接口gpt-image-2.5
端点
POST /api/v2/run
输入
Text prompt · Reference images
输出
Image (PNG / WebP)
费率
~$0.0845 / 1024×1024
示例提示词

“A nineteenth-century botanical plate of a single hart's-tongue fern, hand-coloured copperplate engraving on aged cream paper. The full plant fills the centre: glossy strap-shaped fronds with wavy margins, a curled fiddle…”

适用场景

API 参考

API 模型 ID
gpt-image-2.5
模型开发者
OpenAI
模态
图像生成与编辑
输入
Text prompt · Reference images
输出
Image (PNG / WebP)
端点列表
POST /api/v2/quotePOST /api/v2/runGET /api/v2/jobs/{request_id}GET /api/v2/jobs/{request_id}/outputMCP runstage_generate_media
基础设施
合作云算力

请求参数

  • modelstring · 必填

    Exact Runstage model slug (gpt-image-2.5).

  • promptstring · 必填

    Visual description of subject, composition, lighting, and medium.

  • width / heightinteger · 可选

    Output pixel dimensions (e.g. 1024×1024 or 1536×1024).

其他参数

  • quality
  • seed
  • enhance_prompt

快速入门

复制使用模型 ID gpt-image-2.5 的请求示例。先免费获取运行前报价(最终费用在完成时结算),再使用 Runstage API 密钥运行。

打开工作室
# 1. Free pre-run retail quote
curl -X POST 'https://runstage.dev/api/v2/quote' \
  -H "Content-Type: application/json" \
  -d '{"model":"gpt-image-2.5","width":1024,"height":1024}'

# 2. Submit metered job
curl -X POST 'https://runstage.dev/api/v2/run' \
  -H "Authorization: Bearer $RUNSTAGE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{   "model": "gpt-image-2.5",   "prompt": "A nineteenth-century botanical plate of a single hart'\''s-tongue fern, hand-coloured copperplate engraving on aged cream paper. The full plant fills the centre: glossy strap-shaped fronds with wavy margins, a curled fiddlehead unrolling at the base, and the underside of one frond turned toward the viewer to show the rows of rust-brown sori in fine stipple. Two small inset details on the right show a single sorus magnified and a cross-section of the rhizome, each numbered \"1\" and \"2\". The title \"ASPLENIUM SCOLOPENDRIUM\" runs along the bottom in engraved serif capitals, with \"Hart'\''s-tongue Fern - Pl. XLII\" in italic beneath it and a small scale bar marked \"5 cm\". Faint foxing at the corners, muted greens and sepia.",   "width": 1024,   "height": 1024,   "seed": 42 }'

# Optional: switch to image editing (img2img) by uploading multipart -F "image=@input.png"
# curl -X POST 'https://runstage.dev/api/v2/run' -H "Authorization: Bearer $RUNSTAGE_API_KEY" --form-string 'model=gpt-image-2.5' --form-string 'prompt=A nineteenth-century botanical plate of a single hart'\''s-tongue fern, hand-coloured copperplate engraving on aged cream paper. The full plant fills the centre: glossy strap-shaped fronds with wavy margins, a curled fiddlehead unrolling at the base, and the underside of one frond turned toward the viewer to show the rows of rust-brown sori in fine stipple. Two small inset details on the right show a single sorus magnified and a cross-section of the rhizome, each numbered "1" and "2". The title "ASPLENIUM SCOLOPENDRIUM" runs along the bottom in engraved serif capitals, with "Hart'\''s-tongue Fern - Pl. XLII" in italic beneath it and a small scale bar marked "5 cm". Faint foxing at the corners, muted greens and sepia.' -F "image=@input.png"

# 3. Poll owner-scoped job result until status is "done" or "failed"
curl -H "Authorization: Bearer $RUNSTAGE_API_KEY" \
  'https://runstage.dev/api/v2/jobs/<request_id>'

价格

计费单位和选项费率(美元)
Standard · 1024×1024Production square artwork (estimated)~$0.0845
Widescreen · 1536×1024Hero & banner aspect ratio (estimated)~$0.0974
Portrait · 1024×1536Vertical editorial & mobile layout (estimated)~$0.0974

计费说明

  • Partner external model (Premium plan required). Quote via /api/v2/quote returns an estimate (is_estimated: true); settled on completion.
  • 动用预付点数前,可通过 POST /api/v2/quote 免费估算运行费用。
  • 任务完成或失败时按实际费用自动结算,并退回未使用的预留点数。
  • 使用合作伙伴的外部算力,最终费用按报告的执行指标结算。

Runstage 的实时目录价格。使用美元预付点数,每个密钥均有支出限额。

在完整目录中比较