grok-imagine-image-quality:whiteافتراضيGrok Imagine Image Quality API — كيفية الاتصال والدفع
Grok Imagine Image Quality (xAI) — تحويل النص إلى صورة وتحرير الصور المرجعية (حتى 3 صور) بدقة 1K أو 2K. يُسعّر لكل صورة؛ وتضيف كل صورة مصدر رسمًا إضافيًا يُدرج في عرض السعر.
مقارنة القنوات
آخر 7 أيام
| القناة | السعر |
|---|---|
أبيض grok-imagine-image-quality:whiteافتراضي | يبدأ من $0.053333 per image |
أنشئ النتيجة التي تحتاج إليها
grok-imagine-image-quality:whiteما هو Grok Imagine Image Quality
Grok Imagine Image Quality (xAI) — تحويل النص إلى صورة وتحرير الصور المرجعية (حتى 3 صور) بدقة 1K أو 2K. يُسعّر لكل صورة؛ وتضيف كل صورة مصدر رسمًا إضافيًا يُدرج في عرض السعر.
ملخص العقد
- الإدخال
- text, image
- الإخراج
- image
- الوضع
- غير متزامن (مهمة + استعلام دوري)
- الاستعلام عن الحالة
- كل 3 ثوانٍ · حتى 90 ثانية
نقاط القوة
- التسعير: لكل صورة
- المدخلات: نص، صورة
- 14 خيارًا قابلًا للتهيئة
- مفتاح 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":"grok-imagine-image-quality:white","prompt":"a beautiful landscape","opts":{"aspect_ratio":"auto","resolution":"1K"}}'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": "grok-imagine-image-quality:white",
"prompt": "a beautiful landscape",
"opts": {
"aspect_ratio": "auto",
"resolution": "1K"
}
}),
});
if (!response.ok) throw new Error(`GetVibe API: ${response.status}`);
const { jobId } = await response.json();
console.log(jobId);معلمات طلب API
معلمات الطلبات إلى Grok Imagine Image Quality عبر GetVibe API.
promptمطلوبimage_urlaspect_ratioresolutioninput_urlsimage_file_idimage_base64input_file_idsinput_base64| المعلمة | النوع | القيم | الافتراضي | السعر |
|---|---|---|---|---|
promptمطلوب | text | text description | required | — |
image_url | URL | Public image URL | — | — |
aspect_ratio | option selection | Auto (default) · 1:1 · 3:4 · 4:3 · 9:16 · 16:9 · 2:3 · 3:2 · 9:19.5 · 19.5:9 · 9:20 · 20:9 · 1:2 · 2:1 | تلقائي | Included in the base price |
resolution | option selection | 1K (default) · 2K | 1K | 1K: $0.053333, 2K: $0.074667 |
input_urls | Array<URLs>, 0–3 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. الأسعار بالدولار الأمريكي.
سعر Grok Imagine Image Quality
تكلفة Grok Imagine Image Quality: من $0.053333 per image. يُحتسب السعر ديناميكيًا وفق سعر الصرف الحالي، وتظهر التكلفة النهائية في استجابة API (priceRub). الدفع بالدولار الأمريكي، دون اشتراكات.
تكلفة الطلب الافتراضي
عند عدم إرسال أي معلمات، يستخدم الطلب هذه القيم: Resolution — 1K, Frame format — Auto. تبلغ تكلفة هذا الطلب $0.053333.
القنوات والأسعار لكل مجموعة من المعلمات
لكل قناة، سعر كل مجموعة من المعلمات. هذا هو المبلغ المحدد الذي تُحاسَب عليه عملية الإنشاء الناجحة، وهو الرقم نفسه الوارد في الجدول القابل للقراءة آليًا المرتبط أدناه.
أبيضgrok-imagine-image-quality:whiteيبدأ من $0.053333أسعار دقيقة
| الدقة | 1K | 2K |
|---|---|---|
| أبيض | $0.053333 | $0.074667 |
كل مجموعة بصيغة JSON: /api/media/price-table?model=grok-imagine-image-quality%3Awhite
README
يحتوي العقد القابل للقراءة آليًا لـ Grok Imagine Image Quality على مخطط الطلب، والعمليات، والحدود، وأمثلة الاستطلاع والاستجابة.
# Grok Imagine Image Quality
نموذج عام: grok-imagine-image-quality: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): Auto (default) · 1:1 · 3:4 · 4:3 · 9:16 · 16:9 · 2:3 · 3:2 · 9:19.5 · 19.5:9 · 9:20 · 20:9 · 1:2 · 2:1; افتراضي: Auto
- `resolution` (option selection): 1K (default) · 2K; افتراضي: 1K
- `input_urls` (Array<URLs>, 0–3 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; افتراضي: —
## الأنواع العامة
- `grok-imagine-image-quality:white`: Whiteالأسئلة الشائعة حول واجهة برمجة تطبيقات Grok Imagine Image Quality
كم تبلغ تكلفة Grok Imagine Image Quality؟
سعر Grok Imagine Image Quality: من $0.053333 per image. يُحتسب السعر ديناميكيًا وفق سعر الصرف الحالي.
هل يتوافق مع OpenAI SDK؟
نعم، واجهة برمجة التطبيقات متوافقة بالكامل مع OpenAI. ما عليك سوى تغيير base_url إلى https://getvibeapi.com/v1 وإضافة مفتاحك — وستبقى بقية الشفرة كما هي.
اربط Grok Imagine Image Quality الآن
أنشئ حسابًا خلال دقيقة، وادفع حسب الاستخدام، واستفد من الشفرة الجاهزة أعلاه.
الحصول على مفتاح API