
MAGI-2
Sand AI
Metinden VideoyaGörüntüden VideoyaVideoya Referans$0,08 / S'den
MAGI-2, yerel ses, çok modlu referanslar, hassas zaman çizelgesi kontrolü ve hedefli video düzenleme özellikleriyle 30 saniyeye kadar 1080p videolar üretebilir.
Giriş
Mod
Fiyatı görmek için gerekli alanları doldurun.
Text To Video · 1080p · 5s
Boşta çalışma çıktısı kullanılamıyor.
| Süre | Çözünürlük | Tip | Fiyat |
|---|---|---|---|
| output second | 1080p | Görüntüden Videoya | $0,08 / s |
| Videoya Referans | $0,08 / s | ||
| Metinden Videoya | $0,08 / s |
* Nihai ücretler, son çıktıya göre belirlenir.
Uç nokta
POST
https://pollo.ai/api/platform/v1/generation/sand-ai/magi-2/videoMod
Kimlik doğrulama
API anahtarınızı x-api-key istek başlığında iletin.
x-api-key: YOUR_API_KEYAPI Anahtarlarını GörüntüleGörevi Gönder
Bir model oluşturma görevi oluşturun.
Rica etmek
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
}
}'Yanıt (200)
{
"taskId": "task_01HZ7Q2V8J3E4T6Y9K0M1N2P3",
"status": "pending"
}Durumu Kontrol Et
Oluşturma işlemi tamamlanana kadar görev durumu uç noktasını sorgulayın.
HTTP isteği
GET /api/platform/v1/generation/{taskId}/status HTTP/1.1
Host: pollo.ai
x-api-key: YOUR_API_KEYYanıt (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
İsteğe bağlı olarak, görev başarılı veya başarısız olduğunda geri bildirim almak için webhookUrl'yi ekleyebilirsiniz.
İsteğe bağlı istek alanı
{
"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"
}Şema
Seçilen uç nokta ve mod için giriş alanları.
| Alan | Tip | Gerekli | Tanım |
|---|---|---|---|
| prompt | string | Evet | Text prompt describing the content to generate. |
| resolution | string | HAYIR | Output resolution of the generated media (e.g. 720p, 1080p, 2K, 4K). Values are case-insensitive. |
| duration | integer | HAYIR | The duration of the generated video, in seconds. |
| aspectRatio | string | HAYIR | Output aspect ratio, as width:height (e.g. 16:9). |
| generateAudio | boolean | HAYIR | Generate natural-sounding, fitting audio for the output video. |
Hatalar
Genel API yanıt kodlarının yaygın kullanımı.
- 400
- Geçersiz giriş veya model kısıtlaması
- 401
- Eksik veya geçersiz API anahtarı
- 403
- API anahtarının erişimi yok.
- 404
- Model veya görev bulunamadı.
Yükleniyor…