OpenAI
GPT Image 2
प्रायोगिक · पार्टनर मॉडल · प्रीमियम। दिए गए विवरण से इमेज बनाएँ। मॉडल इमेज बनाने से पहले निर्देशों का तार्किक विश्लेषण करता है। इसका फ़ायदा उन प्रॉम्प्ट में सबसे स्पष्ट दिखता है जिनकी कई शर्तें एक-दूसरे से जुड़ी हों, जैसे तय स्थानों वाला लेआउट, निश्चित संख्या में वस्तुओं वाला दृश्य या किसी खास टेक्स्ट पंक्ति वाला डिज़ाइन। आउटपुट का आकार 512 से 2048 px तक है।
gpt-image-2- एंडपॉइंट
POST /api/v2/run- इनपुट
- Text prompt · Reference images
- आउटपुट
- Image (PNG / WebP)
- दर
- ~$0.0845 / 1024×1024
प्रॉम्प्ट का उदाहरण“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 …”
उपयुक्त उपयोग
- एक API कुंजी से POST /api/v2/run पर टेक्स्ट से इमेज बनाएँ और मल्टीपार्ट अपलोड से इमेज संपादित करें
- क्रेडिट लगाने से पहले POST /api/v2/quote से मुफ़्त लागत अनुमान लें
- एक API कुंजी से साझेदारों के प्रमुख मॉडलों की इमेज गुणवत्ता पाएँ। अनुरोध भेजते समय खर्च सीमा लागू होती है
- API मॉडल ID
gpt-image-2- मॉडल डेवलपर
- 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).
promptstring · आवश्यकVisual description of subject, composition, lighting, and medium.
width / heightinteger · वैकल्पिकOutput pixel dimensions (e.g. 1024×1024 or 1536×1024).
अतिरिक्त पैरामीटर
qualityseedenhance_prompt
त्वरित शुरुआत
मॉडल ID gpt-image-2 वाला तैयार अनुरोध कॉपी करें। पहले मुफ़्त अनुमान जाँचें (अंतिम लागत कार्य पूरा होने पर तय होती है), फिर अपनी 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","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>'कीमतें
| बिलिंग इकाई और विकल्प | दर (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 |
बिलिंग संबंधी जानकारी
- 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 की मौजूदा कैटलॉग दरें। हर कुंजी की खर्च सीमा के साथ प्रीपेड USD क्रेडिट।
पूरे कैटलॉग में तुलना करें