
ماجي-2
Sand AI
تحويل النص إلى فيديوالصورة إلى فيديومرجع للفيديومن 0.08 $ / س
يقوم برنامج MAGI-2 بإنشاء مقاطع فيديو تصل مدتها إلى 30 ثانية بدقة 1080 بكسل مع صوت أصلي، ومراجع متعددة الوسائط، وتحكم دقيق في الجدول الزمني، وتحرير فيديو مستهدف.
مدخل
وضع
أكمل الحقول المطلوبة لعرض السعر
Text To Video · 1080p · 5s
مخرجات الخمول غير متاحة
| المدة | دقة | يكتب | سعر |
|---|---|---|---|
| output second | 1080p | الصورة إلى فيديو | 0.08 $ / s |
| مرجع للفيديو | 0.08 $ / s | ||
| تحويل النص إلى فيديو | 0.08 $ / s |
* يتم احتساب الرسوم الفعلية بناءً على المخرجات النهائية.
نقطة النهاية
POST
https://pollo.ai/api/platform/v1/generation/sand-ai/magi-2/videoوضع
المصادقة
قم بتمرير مفتاح API الخاص بك في رأس طلب x-api-key.
x-api-key: YOUR_API_KEYعرض مفاتيح واجهة برمجة التطبيقاتإرسال المهمة
أنشئ مهمة لتوليد النموذج.
طلب
curl -X POST 'https://pollo.ai/api/platform/v1/generation/sand-ai/magi-2/video' \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY' \
-d '{
"input": {
"prompt": "At dawn, waves break gently against the rocks as the camera slowly moves forward.",
"resolution": "1080p",
"duration": 5,
"aspectRatio": "16:9",
"generateAudio": true
}
}'الرد (200)
{
"taskId": "task_01HZ7Q2V8J3E4T6Y9K0M1N2P3",
"status": "pending"
}تحقق من الحالة
قم باستطلاع نقطة نهاية حالة المهمة حتى يكتمل الإنشاء.
طلب HTTP
GET /api/platform/v1/generation/{taskId}/status HTTP/1.1
Host: pollo.ai
x-api-key: YOUR_API_KEYالرد (200)
{
"taskId": "task_01HZ7Q2V8J3E4T6Y9K0M1N2P3",
"credit": 12,
"costUsd": 0.12,
"generations": [
{
"id": "generation_01",
"createdDate": "2026-07-13T07:00:00.000Z",
"updatedDate": "2026-07-13T07:00:12.000Z",
"status": "succeeded",
"failMsg": null,
"url": "https://example.com/output.mp4",
"mediaType": "video"
}
]
}Webhook
يمكنك تضمين webhookUrl اختياريًا لتلقي رد اتصال عند نجاح المهمة أو فشلها.
حقل طلب اختياري
{
"input": {
"prompt": "At dawn, waves break gently against the rocks as the camera slowly moves forward.",
"resolution": "1080p",
"duration": 5,
"aspectRatio": "16:9",
"generateAudio": true
},
"webhookUrl": "https://example.com/webhooks/pollo"
}مخطط
حقول إدخال لنقطة النهاية والوضع المحددين.
| مجال | يكتب | مطلوب | وصف |
|---|---|---|---|
| prompt | string | نعم | Text prompt describing the content to generate. |
| resolution | string | لا | Output resolution of the generated media (e.g. 720p, 1080p, 2K, 4K). Values are case-insensitive. |
| duration | integer | لا | The duration of the generated video, in seconds. |
| aspectRatio | string | لا | Output aspect ratio, as width:height (e.g. 16:9). |
| generateAudio | boolean | لا | Generate natural-sounding, fitting audio for the output video. |
أخطاء
رموز الاستجابة الشائعة لواجهات برمجة التطبيقات العامة.
- 400
- إدخال غير صالح أو قيد نموذج غير صالح
- 401
- مفتاح API مفقود أو غير صالح
- 403
- لا يملك مفتاح API صلاحية الوصول
- 404
- لم يتم العثور على النموذج أو المهمة
ستتوفر وثائق النموذج قريباً.