gpt-image-2:yellowसबसे सस्ताGPT Image 2 API — कनेक्ट और भुगतान कैसे करें
GPT Image 2 — इमेज जनरेशन और एडिटिंग। टेक्स्ट-टू-इमेज और इमेज-टू-इमेज (एडिट/रिस्टोरेशन)।
चैनल तुलना
पिछले 7 दिन
gpt-image-2:whiteडिफ़ॉल्टgpt-image-2| चैनल | कीमत |
|---|---|
Yellow gpt-image-2:yellowसबसे सस्ता | $0.008242 से शुरू per image |
सफ़ेद gpt-image-2:whiteडिफ़ॉल्ट | $0.011333 से शुरू per image |
Pixel gpt-image-2 | $0.011333 से शुरू per image |
अपनी ज़रूरत का परिणाम बनाएँ
gpt-image-2:whiteGPT Image 2 क्या है
GPT Image 2 — इमेज जनरेशन और एडिटिंग। टेक्स्ट-टू-इमेज और इमेज-टू-इमेज (एडिट/रिस्टोरेशन)।
अनुबंध एक नज़र में
- इनपुट
- text, image
- आउटपुट
- image
- मोड
- असिंक्रोनस (जॉब + पोलिंग)
- स्टेटस पोलिंग
- हर 3 सेकंड · अधिकतम 90 सेकंड तक
खूबियाँ
- मूल्य निर्धारण: प्रति इमेज
- इनपुट: टेक्स्ट, इमेज
- 5 कॉन्फ़िगर करने योग्य विकल्प
- मीडिया जनरेशन के लिए एक API key
इसका उपयोग कहाँ किया जाता है
- लेख और सोशल मीडिया चित्रण
- उत्पाद इमेज
- बैनर और कवर
- डिज़ाइन प्रोटोटाइप
API अनुबंध
जनरेशन असिंक्रोनस रूप से चलता है: जॉब बनाएँ, फिर पूरा होने तक उसका स्टेटस पोल करें।
- जॉब बनाएँ
- POST /api/media/generate
- स्टेटस जाँचें
- GET /api/media/jobs/{jobId}
- इनपुट
- text, image
- आउटपुट
- image
- पोलिंग
- हर 3 सेकंड · अधिकतम 90 सेकंड तक
- प्रमाणीकरण
- Authorization: Bearer sk-pv-…
अनुरोध का उदाहरण
अपनी कुंजी Bearer हेडर में भेजें। API स्टेटस पोल करने के लिए jobId लौटाता है।
curl -sS https://getvibeapi.com/api/media/generate \
-H "Authorization: Bearer $GETVIBE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary '{"model":"gpt-image-2:white","prompt":"a beautiful landscape","opts":{"aspect_ratio":"1:1","resolution":"1K","mode":"text-to-image"}}'JavaScript
const response = await fetch('https://getvibeapi.com/api/media/generate', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.GETVIBE_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"model": "gpt-image-2:white",
"prompt": "a beautiful landscape",
"opts": {
"aspect_ratio": "1:1",
"resolution": "1K",
"mode": "text-to-image"
}
}),
});
if (!response.ok) throw new Error(`GetVibe API: ${response.status}`);
const { jobId } = await response.json();
console.log(jobId);API अनुरोध पैरामीटर
GetVibe API के माध्यम से GPT Image 2 के अनुरोधों के लिए पैरामीटर।
promptआवश्यकimage_urlaspect_ratioresolutionmodeinput_urlsimage_file_idimage_base64input_file_idsinput_base64| पैरामीटर | प्रकार | मान | डिफ़ॉल्ट | कीमत |
|---|---|---|---|---|
promptआवश्यक | text | text description | required | — |
image_url | URL | Public image URL | — | — |
aspect_ratio | option selection | 1:1 (default) · 16:9 · 9:16 · 4:3 · 3:4 · 3:2 · 2:3 · 21:9 | 1:1 | Included in the base price |
resolution | option selection | 1K (default) · 2K · 4K | 1K | 1K: $0.011333, 2K: $0.018667, 4K: $0.028 |
mode | option selection | Generate (text → image) (default) · Edit (image → image) | निर्माण (पाठ → छवि) | Included in the base price |
input_urls | Array<URLs>, 0–16 items | Public HTTP(S) URLs | — | Included in the base price |
image_file_id | text | Alternative to image_url: the id of your own file from POST /v1/files (file-pv-…) | — | Included in the base price |
image_base64 | text | Alternative to image_url: the file inline, as base64 or a data: URI | — | Included in the base price |
input_file_ids | Array<strings> | List of values | — | Included in the base price |
input_base64 | Array<strings> | List of values | — | Included in the base price |
अनुरोध: POST https://getvibeapi.com/api/media/generate। कीमतें USD में।
GPT Image 2 की कीमत
GPT Image 2 की लागत: से $0.011333 per image. कीमत की गणना वर्तमान विनिमय दर पर गतिशील रूप से की जाती है और अंतिम शुल्क API प्रतिक्रिया में दिखाया जाता है (priceRub)। भुगतान USD में, कोई सदस्यता नहीं।
डिफ़ॉल्ट अनुरोध की कीमत
कोई पैरामीटर न भेजने पर, अनुरोध इन मानों का उपयोग करता है: Resolution — 1K, Mode — Generate (text → image), Frame format — 1:1। उस अनुरोध की कीमत $0.011333 है।
हर पैरामीटर संयोजन के लिए चैनल और कीमतें
हर चैनल के लिए, हर पैरामीटर संयोजन की कीमत। सफल जनरेशन पर लिया जाने वाला शुल्क ठीक इतना ही है और नीचे दिए गए मशीन-पठनीय टेबल में भी यही राशि है।
सफ़ेदgpt-image-2:white$0.011333 से शुरूसटीक कीमतें
| Resolution | 1K | 2K | 4K |
|---|---|---|---|
| सफ़ेद | $0.011333 | $0.018667 | $0.028 |
हर संयोजन JSON के रूप में: /api/media/price-table?model=gpt-image-2%3Awhite
Pixelgpt-image-2$0.011333 से शुरूसटीक कीमतें
| Resolution | 1K | 2K | 4K |
|---|---|---|---|
| Pixel | $0.011333 | $0.018667 | $0.028 |
हर संयोजन JSON के रूप में: /api/media/price-table?model=gpt-image-2
Yellowgpt-image-2:yellow$0.008242 से शुरूसटीक कीमतें
| Aspect ratio · Mode \ Resolution | 1K | 2K | 4K |
|---|---|---|---|
| 1:1 · Generate (text → image) | $0.008242 | $0.019231 | — |
| 16:9 · Generate (text → image) | — | — | $0.019231 |
| 9:16 · Generate (text → image) | — | — | $0.019231 |
हर संयोजन JSON के रूप में: /api/media/price-table?model=gpt-image-2%3Ayellow
README
GPT Image 2 के मशीन-पठनीय अनुबंध में अनुरोध स्कीमा, ऑपरेशन, सीमाएँ, पोलिंग और प्रतिक्रिया के उदाहरण शामिल हैं।
# GPT Image 2
सार्वजनिक मॉडल: gpt-image-2:white
जॉब बनाएँ: POST /api/media/generate
स्टेटस जाँचें: GET /api/media/jobs/{jobId}
## इनपुट पैरामीटर
- `prompt` (text): text description; डिफ़ॉल्ट: required
- `image_url` (URL): Public image URL; डिफ़ॉल्ट: —
- `aspect_ratio` (option selection): 1:1 (default) · 16:9 · 9:16 · 4:3 · 3:4 · 3:2 · 2:3 · 21:9; डिफ़ॉल्ट: 1:1
- `resolution` (option selection): 1K (default) · 2K · 4K; डिफ़ॉल्ट: 1K
- `mode` (option selection): Generate (text → image) (default) · Edit (image → image); डिफ़ॉल्ट: Generate (text → image)
- `input_urls` (Array<URLs>, 0–16 items): Public HTTP(S) URLs; डिफ़ॉल्ट: —
- `image_file_id` (text): Alternative to image_url: the id of your own file from POST /v1/files (file-pv-…); डिफ़ॉल्ट: —
- `image_base64` (text): Alternative to image_url: the file inline, as base64 or a data: URI; डिफ़ॉल्ट: —
- `input_file_ids` (Array<strings>): List of values; डिफ़ॉल्ट: —
- `input_base64` (Array<strings>): List of values; डिफ़ॉल्ट: —
## सार्वजनिक वेरिएंट
- `gpt-image-2:yellow`: Yellow
- `gpt-image-2:white`: White
- `gpt-image-2`: PixelGPT Image 2 API के बारे में सामान्य प्रश्न
GPT Image 2 की कीमत कितनी है?
GPT Image 2 की कीमत: से $0.011333 per image। कीमत की गणना वर्तमान विनिमय दर पर गतिशील रूप से की जाती है।
क्या यह OpenAI SDK के साथ संगत है?
हाँ, API पूरी तरह OpenAI-संगत है। बस base_url को https://getvibeapi.com/v1 में बदलें और अपनी कुंजी सेट करें — बाकी कोड वैसा ही रहता है।
अभी GPT Image 2 कनेक्ट करें
एक मिनट में साइन अप करें, उपयोग के अनुसार भुगतान करें, ऊपर तैयार कोड उपलब्ध है।
API कुंजी प्राप्त करें