grok-imagine-videoافتراضيالأرخصGrok Imagine Video API — كيفية الاتصال والدفع
فيديو Grok Imagine (xAI) — وضَعا T2V وI2V. الإصداران 1.0 (مسارا T2V وI2V منفصلان) و1.5 preview. السعر لكل ثانية حسب الدقة (تسعير نموذج Pixel في 2026-08-03): 480p=2.4 و720p=4.5 و1080p=8 credits/s (بدقة 1080p للإصدار 1.0 فقط؛ وتم تأكيد 480p/720p للإصدار 1.5). وضع Spicy غير متاح لـ I2V (للصور الخارجية)؛ وعند دقة 1080p يقبل I2V صورة واحدة فقط.
مقارنة القنوات
آخر 7 أيام
grok-imagine-video:white| القناة | السعر |
|---|---|
Pixel grok-imagine-videoافتراضيالأرخص | يبدأ من $0.015429 / ث |
أبيض grok-imagine-video:white | يبدأ من $0.015429 / ث |
أنشئ النتيجة التي تحتاج إليها
grok-imagine-videoما هو Grok Imagine Video
فيديو Grok Imagine (xAI) — وضَعا T2V وI2V. الإصداران 1.0 (مسارا T2V وI2V منفصلان) و1.5 preview. السعر لكل ثانية حسب الدقة (تسعير نموذج Pixel في 2026-08-03): 480p=2.4 و720p=4.5 و1080p=8 credits/s (بدقة 1080p للإصدار 1.0 فقط؛ وتم تأكيد 480p/720p للإصدار 1.5). وضع Spicy غير متاح لـ I2V (للصور الخارجية)؛ وعند دقة 1080p يقبل I2V صورة واحدة فقط.
ملخص العقد
- الإدخال
- text, image
- الإخراج
- video
- الوضع
- غير متزامن (مهمة + استعلام دوري)
- الاستعلام عن الحالة
- كل 3 ثوانٍ · حتى 600 ثانية
نقاط القوة
- التسعير: لكل ثانية
- المدخلات: نص، صورة
- خياران قابلان للتهيئة
- مفتاح API واحد لتوليد الوسائط
أين يُستخدم
- مقاطع وسائل التواصل الاجتماعي
- مقاطع ترويجية وتسلسلات العناوين
- تحريك الصور الثابتة
- لوحات القصة والمخططات المتحركة
عقد API
تتم عملية الإنشاء بشكل غير متزامن: أنشئ مهمة، ثم استعلم عن حالتها حتى تكتمل.
- إنشاء مهمة
- POST /api/media/generate
- التحقق من الحالة
- GET /api/media/jobs/{jobId}
- الإدخال
- text, image
- الإخراج
- video
- الاستعلام الدوري
- كل 3 ثوانٍ · حتى 600 ثانية
- المصادقة
- 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-video","prompt":"a beautiful landscape","opts":{"version":"1.0","input":"text-to-video","mode":"normal","aspect_ratio":"16:9","resolution":"720p","duration":"6"}}'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-video",
"prompt": "a beautiful landscape",
"opts": {
"version": "1.0",
"input": "text-to-video",
"mode": "normal",
"aspect_ratio": "16:9",
"resolution": "720p",
"duration": "6"
}
}),
});
if (!response.ok) throw new Error(`GetVibe API: ${response.status}`);
const { jobId } = await response.json();
console.log(jobId);معلمات طلب API
معلمات الطلبات إلى Grok Imagine Video عبر GetVibe API.
promptمطلوبimage_urlversioninputmodeaspect_ratioresolutiondurationfirst_frame_urllast_frame_urlloop_urlimage_file_idimage_base64keyframesfirst_frame_file_idlast_frame_file_id| المعلمة | النوع | القيم | الافتراضي | السعر |
|---|---|---|---|---|
promptمطلوب | text | text description | required | — |
image_url | URL | Public image URL | — | — |
version | option selection | 1.0 (default) · 1.5 | 1.0 | Included in the base price |
input | option selection | Text → video (default) · Image → video | نص → فيديو | Included in the base price |
mode | option selection | Normal (balanced) (default) · Fun (playful) · Spicy (dynamic) | Normal (balanced) | Included in the base price |
aspect_ratio | option selection | 16:9 (default) · 9:16 · 1:1 | 16:9 | Included in the base price |
resolution | option selection | 480p · 720p (default) · 1080p | 720p | 480p: $0.015429/s, 720p: $0.028929/s, 1080p: $0.051429/s |
duration | option selection | 6 (default) · 10 | 6 | 6: $0.028929/s, 10: $0.028929/s |
first_frame_url | text / number | any value | — | Included in the base price |
last_frame_url | text / number | any value | — | Included in the base price |
loop_url | text / number | any value | — | 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 |
keyframes | Array<objects>, 1–4 items | object: url, timestamp_s | — | Included in the base price |
first_frame_file_id | text | Alternative to first_frame_url: the id of your own file from POST /v1/files (file-pv-…) | — | Included in the base price |
last_frame_file_id | text | Alternative to last_frame_url: the id of your own file from POST /v1/files (file-pv-…) | — | Included in the base price |
الطلب: POST https://getvibeapi.com/api/media/generate. الأسعار بالدولار الأمريكي.
سعر Grok Imagine Video
تكلفة Grok Imagine Video: من $0.015429 per second. يُحتسب السعر ديناميكيًا وفق سعر الصرف الحالي، وتظهر التكلفة النهائية في استجابة API (priceRub). الدفع بالدولار الأمريكي، دون اشتراكات.
تكلفة الطلب الافتراضي
عند عدم إرسال أي معلمات، يستخدم الطلب هذه القيم: Duration — 6, Resolution — 720p, Model version — 1.0, Source material — Text → video. تبلغ تكلفة هذا الطلب $0.173571.
«من $0.015429» هي أرخص مجموعة من المعلمات، وليست سعر الطلب الافتراضي.
القنوات والأسعار لكل مجموعة من المعلمات
لكل قناة، سعر كل مجموعة من المعلمات. هذا هو المبلغ المحدد الذي تُحاسَب عليه عملية الإنشاء الناجحة، وهو الرقم نفسه الوارد في الجدول القابل للقراءة آليًا المرتبط أدناه.
Pixelgrok-imagine-videoيبدأ من $0.015429 / ثأسعار دقيقة
| الإصدار \ الدقة | 480p | 720p | 1080p |
|---|---|---|---|
| 1.0 | $0.015429 / ث | $0.028929 / ث | $0.051428–$0.051429 / ث |
| 1.5 | $0.015429 / ث | $0.028929 / ث | — |
كل مجموعة بصيغة JSON: /api/media/price-table?model=grok-imagine-video
أبيضgrok-imagine-video:whiteيبدأ من $0.015429 / ثأسعار دقيقة
| الإصدار \ الدقة | 480p | 720p |
|---|---|---|
| 1.5 | $0.015429 / ث | $0.028929 / ث |
كل مجموعة بصيغة JSON: /api/media/price-table?model=grok-imagine-video%3Awhite
README
يحتوي العقد القابل للقراءة آليًا لـ Grok Imagine Video على مخطط الطلب، والعمليات، والحدود، وأمثلة الاستطلاع والاستجابة.
# Grok Imagine Video
نموذج عام: grok-imagine-video
إنشاء مهمة: POST /api/media/generate
التحقق من الحالة: GET /api/media/jobs/{jobId}
## معلمات الإدخال
- `prompt` (text): text description; افتراضي: required
- `image_url` (URL): Public image URL; افتراضي: —
- `version` (option selection): 1.0 (default) · 1.5; افتراضي: 1.0
- `input` (option selection): Text → video (default) · Image → video; افتراضي: Text → video
- `mode` (option selection): Normal (balanced) (default) · Fun (playful) · Spicy (dynamic); افتراضي: Normal (balanced)
- `aspect_ratio` (option selection): 16:9 (default) · 9:16 · 1:1; افتراضي: 16:9
- `resolution` (option selection): 480p · 720p (default) · 1080p; افتراضي: 720p
- `duration` (option selection): 6 (default) · 10; افتراضي: 6
- `first_frame_url` (text / number): any value; افتراضي: —
- `last_frame_url` (text / number): any value; افتراضي: —
- `loop_url` (text / number): any value; افتراضي: —
- `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; افتراضي: —
- `keyframes` (Array<objects>, 1–4 items): object: url, timestamp_s; افتراضي: —
- `first_frame_file_id` (text): Alternative to first_frame_url: the id of your own file from POST /v1/files (file-pv-…); افتراضي: —
- `last_frame_file_id` (text): Alternative to last_frame_url: the id of your own file from POST /v1/files (file-pv-…); افتراضي: —
## الأنواع العامة
- `grok-imagine-video`: Pixel
- `grok-imagine-video:white`: Whiteالأسئلة الشائعة حول واجهة برمجة تطبيقات Grok Imagine Video
كم تبلغ تكلفة Grok Imagine Video؟
سعر Grok Imagine Video: من $0.015429 per second. يُحتسب السعر ديناميكيًا وفق سعر الصرف الحالي.
هل يتوافق مع OpenAI SDK؟
نعم، واجهة برمجة التطبيقات متوافقة بالكامل مع OpenAI. ما عليك سوى تغيير base_url إلى https://getvibeapi.com/v1 وإضافة مفتاحك — وستبقى بقية الشفرة كما هي.
اربط Grok Imagine Video الآن
أنشئ حسابًا خلال دقيقة، وادفع حسب الاستخدام، واستفد من الشفرة الجاهزة أعلاه.
الحصول على مفتاح API