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:whiteما هو GPT Image 2
GPT Image 2 — توليد الصور وتحريرها. تحويل النص إلى صورة وتحويل الصورة إلى صورة (تحرير/ترميم).
ملخص العقد
- الإدخال
- text, image
- الإخراج
- image
- الوضع
- غير متزامن (مهمة + استعلام دوري)
- الاستعلام عن الحالة
- كل 3 ثوانٍ · حتى 90 ثانية
نقاط القوة
- التسعير: لكل صورة
- المدخلات: نص، صورة
- 5 خيارات قابلة للتهيئة
- مفتاح API واحد لتوليد الوسائط
أين يُستخدم
- رسوم توضيحية للمقالات ووسائل التواصل الاجتماعي
- صور المنتجات
- اللافتات والأغلفة
- نماذج التصميم الأولية
عقد 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
معلمات الطلبات إلى GPT Image 2 عبر GetVibe API.
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. الأسعار بالدولار الأمريكي.
سعر GPT Image 2
تكلفة GPT Image 2: من $0.011333 per image. يُحتسب السعر ديناميكيًا وفق سعر الصرف الحالي، وتظهر التكلفة النهائية في استجابة API (priceRub). الدفع بالدولار الأمريكي، دون اشتراكات.
تكلفة الطلب الافتراضي
عند عدم إرسال أي معلمات، يستخدم الطلب هذه القيم: Resolution — 1K, Mode — Generate (text → image), Frame format — 1:1. تبلغ تكلفة هذا الطلب $0.011333.
القنوات والأسعار لكل مجموعة من المعلمات
لكل قناة، سعر كل مجموعة من المعلمات. هذا هو المبلغ المحدد الذي تُحاسَب عليه عملية الإنشاء الناجحة، وهو الرقم نفسه الوارد في الجدول القابل للقراءة آليًا المرتبط أدناه.
أبيضgpt-image-2:whiteيبدأ من $0.011333أسعار دقيقة
| الدقة | 1K | 2K | 4K |
|---|---|---|---|
| أبيض | $0.011333 | $0.018667 | $0.028 |
كل مجموعة بصيغة JSON: /api/media/price-table?model=gpt-image-2%3Awhite
Pixelgpt-image-2يبدأ من $0.011333أسعار دقيقة
| الدقة | 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`: Pixelالأسئلة الشائعة حول واجهة برمجة تطبيقات GPT Image 2
كم تبلغ تكلفة GPT Image 2؟
سعر GPT Image 2: من $0.011333 per image. يُحتسب السعر ديناميكيًا وفق سعر الصرف الحالي.
هل يتوافق مع OpenAI SDK؟
نعم، واجهة برمجة التطبيقات متوافقة بالكامل مع OpenAI. ما عليك سوى تغيير base_url إلى https://getvibeapi.com/v1 وإضافة مفتاحك — وستبقى بقية الشفرة كما هي.
اربط GPT Image 2 الآن
أنشئ حسابًا خلال دقيقة، وادفع حسب الاستخدام، واستفد من الشفرة الجاهزة أعلاه.
الحصول على مفتاح API