OpenAI
GPT Image 2
Experimental · Modelo parceiro · Premium. Gere imagens a partir de uma descrição, com uma etapa de raciocínio antes da geração. A melhoria fica mais evidente em prompts com várias restrições interligadas, como um layout com posições definidas, uma cena com uma quantidade exata de objetos ou um design que precisa exibir uma linha específica de texto. O tamanho da saída varia de 512 a 2048 px.
gpt-image-2- Endpoint
POST /api/v2/run- Entrada
- Text prompt · Reference images
- Saída
- Image (PNG / WebP)
- Tarifa
- ~$0.0845 / 1024×1024
Exemplo de prompt“A detailed technical cutaway illustration of a mechanical wristwatch movement, precise line-and-wash rendering on cream paper, the mainspring barrel, escapement, balance wheel and gear train all visible and individually …”
Usos recomendados
- Gere imagens a partir de texto e edite imagens por upload multipart em POST /api/v2/run com uma única chave de API
- Consulte uma estimativa gratuita em POST /api/v2/quote antes de comprometer créditos
- Qualidade de imagem dos modelos de ponta de parceiros com uma chave de API e limites de gastos aplicados no envio
- ID do modelo na API
gpt-image-2- Desenvolvedor do modelo
- OpenAI
- Modalidade
- Geração e edição de imagens
- Entrada
- Text prompt · Reference images
- Saída
- Image (PNG / WebP)
- Endpoints
POST /api/v2/quotePOST /api/v2/runGET /api/v2/jobs/{request_id}GET /api/v2/jobs/{request_id}/outputMCP runstage_generate_media- Infraestrutura
- Capacidade da nuvem parceira
Parâmetros da solicitação
modelstring · obrigatórioExact Runstage model slug (gpt-image-2).
promptstring · obrigatórioVisual description of subject, composition, lighting, and medium.
width / heightinteger · opcionalOutput pixel dimensions (e.g. 1024×1024 or 1536×1024).
Parâmetros adicionais
qualityseedenhance_prompt
Início rápido
Copie uma solicitação funcional com o ID de modelo gpt-image-2. Consulte antes a estimativa gratuita (o custo final é definido na conclusão) e execute com sua chave de API da Runstage.
Abrir o Studio# 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","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", "prompt": "A detailed technical cutaway illustration of a mechanical wristwatch movement, precise line-and-wash rendering on cream paper, the mainspring barrel, escapement, balance wheel and gear train all visible and individually labelled with fine leader lines, an ornate title block at the lower right reading \"CALIBRE 7 - EXPLODED VIEW\", draughtsman precision, muted sepia and slate palette", "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' --form-string 'prompt=A detailed technical cutaway illustration of a mechanical wristwatch movement, precise line-and-wash rendering on cream paper, the mainspring barrel, escapement, balance wheel and gear train all visible and individually labelled with fine leader lines, an ornate title block at the lower right reading "CALIBRE 7 - EXPLODED VIEW", draughtsman precision, muted sepia and slate palette' -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>'Preços
| Unidade de cobrança e opções | Tarifa (USD) |
|---|---|
| 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 |
Notas de cobrança
- Partner external model (Premium plan required). Quote via /api/v2/quote returns an estimate (is_estimated: true); settled on completion.
- Antes de comprometer créditos pré-pagos, obtenha uma estimativa gratuita em POST /api/v2/quote.
- Na conclusão ou falha da tarefa, a reserva é ajustada automaticamente ao custo real, com devolução dos créditos não utilizados.
- O modelo usa capacidade externa de parceiros. O custo final é ajustado conforme as métricas de execução informadas.
Tarifas atuais do catálogo da Runstage. Créditos pré-pagos em USD com limites de gastos por chave.
Comparar no catálogo completo