Oluşturma görevi oluştur
Girdiyi doğrulayın, kredileri düşün, bir görev oluşturun ve taskId döndürün.
Payload parametreleri
- Gerekli. sora-2-text-to-video, sora-2-image-to-video, sora-2-pro-text-to-video, sora-2-pro-image-to-video, sora-2-pro-storyboard'dan biri.
- Koşullu. sora-2-pro-storyboard hariç tüm modeller için gereklidir.
- Koşullu. data:image/png;base64,... gibi Base64 veri URL'si. imageUrl yoksa görüntüden videoya için gereklidir.
- Koşullu. imageData sağlanmadığında kullanılan genel görüntü URL'si.
- İsteğe bağlı. portrait veya landscape. Varsayılan: landscape.
- İsteğe bağlı. 10, 15 veya 25 (yalnızca storyboard). Varsayılanlar modele göre değişir.
- İsteğe bağlı. standard veya high. Yalnızca Pro metin/görüntü modelleri için.
- İsteğe bağlı. Storyboard olmayan modeller için filigranı kaldırın. Varsayılan: true.
- Koşullu. sora-2-pro-storyboard için gereklidir. '{ Scene, duration }' dizisi.
Notlar
- Her ikisi de sağlandığında imageData, imageUrl'den önceliklidir.
- prompt, storyboard için isteğe bağlıdır ve sağlayıcıya gönderilmez; içerik için shots kullanın.
- nFrames, model başına izin verilen değerlere normalleştirilir.
- removeWatermark, storyboard olmayan modeller için varsayılan olarak true'dur.
- shots, Scene (büyük S) ve duration > 0 içermelidir.
Örnek istekler
curl -X POST https://freesoragenerator.com/api/v1/video/sora-pro \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "sora-2-pro-text-to-video",
"prompt": "A cinematic shot of a futuristic city at sunset.",
"aspectRatio": "landscape",
"nFrames": "10",
"size": "high",
"removeWatermark": true
}'curl -X POST https://freesoragenerator.com/api/v1/video/sora-pro \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "sora-2-image-to-video",
"prompt": "Turn this image into a dynamic 10s clip.",
"imageUrl": "https://example.com/reference.png",
"aspectRatio": "portrait",
"nFrames": "10"
}'curl -X POST https://freesoragenerator.com/api/v1/video/sora-pro \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "sora-2-pro-storyboard",
"shots": [
{ "Scene": "Establishing shot of a city skyline at dusk", "duration": 5 },
{ "Scene": "Close-up of a runner splashing through puddles", "duration": 5 }
],
"aspectRatio": "landscape",
"nFrames": "10"
}'Örnek yanıt
{
"code": 0,
"message": "ok",
"data": {
"taskId": "281e5b0*********************f39b9"
}
}