OpenAI
GPT Image 2.5
Générez une image à partir d’une consigne textuelle. Décrivez le sujet, la composition, l’éclairage, le style et le texte à afficher, le cas échéant. Choisissez une taille et un niveau de qualité pour obtenir une image finalisée sans image de référence ni réglage de l’échantillonneur.
gpt-image-2.5- Point de terminaison
POST /api/v2/run- Entrée
- Text prompt · Reference images
- Sortie
- Image (PNG / WebP)
- Tarif
- ~$0.0845 / 1024×1024
Exemple de 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 fiddle…”
Usages recommandés
- Créez des images à partir de texte et modifiez des images par envoi multipart sur POST /api/v2/run avec une seule clé API
- Obtenez un devis gratuit sur POST /api/v2/quote avant d’engager vos crédits
- Qualité d’image des modèles phares partenaires avec une clé API et un plafond de dépenses contrôlé à l’envoi
Référence de l’API
- ID du modèle dans l’API
gpt-image-2.5- Développeur du modèle
- OpenAI
- Modalité
- Génération et retouche d’images
- Entrée
- Text prompt · Reference images
- Sortie
- Image (PNG / WebP)
- Points de terminaison
POST /api/v2/quotePOST /api/v2/runGET /api/v2/jobs/{request_id}GET /api/v2/jobs/{request_id}/outputMCP runstage_generate_media- Infrastructure
- Capacité du cloud partenaire
Paramètres de la requête
modelstring · obligatoireExact Runstage model slug (gpt-image-2.5).
promptstring · obligatoireVisual description of subject, composition, lighting, and medium.
width / heightinteger · facultatifOutput pixel dimensions (e.g. 1024×1024 or 1536×1024).
Paramètres supplémentaires
qualityseedenhance_prompt
Démarrage rapide
Copiez une requête fonctionnelle utilisant l’ID de modèle gpt-image-2.5. Consultez d’abord le devis gratuit (le coût final est arrêté à la fin de l’exécution), puis lancez la requête avec votre clé API Runstage.
Ouvrir 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.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>'Tarifs
| Unité facturée et options | Tarif (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 |
Notes de facturation
- Partner external model (Premium plan required). Quote via /api/v2/quote returns an estimate (is_estimated: true); settled on completion.
- Avant d’engager vos crédits prépayés, obtenez une estimation gratuite via POST /api/v2/quote.
- À la fin de la tâche ou en cas d’échec, la réservation est automatiquement ajustée au coût réel et les crédits inutilisés sont remboursés.
- Le modèle utilise la capacité externe d’un partenaire. Le montant final est calculé d’après les métriques d’exécution communiquées.
Tarifs en vigueur du catalogue Runstage. Crédits prépayés en USD avec plafonds de dépenses par clé.
Comparer dans le catalogue complet