Sora2
Sora 2 d'OpenAI pour la génération vidéo
Fonctionnalités
- Génération de texte vers vidéo
- Animation d'image à vidéo
- Durées multiples
- Suppression de filigrane facultative
Tarification
| Duration | Watermark | No Watermark |
|---|---|---|
| 10 frames | 8 (~$0.09) | 10 (~$0.11) |
| 15 frames | 10 (~$0.11) | 12 (~$0.13) |
Sora2 standard version
Sora2-pro version
| Duration | Standard | High |
|---|---|---|
| 10 frames | 125 (~$1.39) | 275 (~$3.06) |
| 15 frames | 225 (~$2.50) | 475 (~$5.28) |
Point de terminaison
POST
/api/v1/videos/generateParamètres
| Paramètre | Type | Obligatoire | Description |
|---|---|---|---|
| model | string | Obligatoire | "sora2" or "sora2-pro" |
| type | string | Facultatif | "text-to-video" or "image-to-video" |
| prompt | string | Obligatoire | Text description of the video |
| n_frames | string | Facultatif | "10" or "15" |
| remove_watermark | boolean | Facultatif | Remove watermark (sora2 only) |
| size | string | Facultatif | "standard" or "high" (sora2-pro only) |
| aspect_ratio | string | Facultatif | "landscape", "portrait", or "square" |
| input_image | string | Facultatif | URL for image-to-video |
Exemple de Demande
{
"model": "sora2",
"type": "text-to-video",
"prompt": "A cat walking on the beach",
"n_frames": "10",
"remove_watermark": true,
"aspect_ratio": "landscape"
}Exemple de réponse
{
"success": true,
"data": {
"task_id": "task_sora123",
"credits_used": 10,
"remaining_credits": 490,
"model": "sora2"
}
}Exemples de Code
curl -X POST https://gateway.nanobananapro.site/api/v1/videos/generate \
-H "Authorization: Bearer sk-your-api-key" \
-H "Content-Type: application/json" \
-d '{
"model": "sora2",
"type": "text-to-video",
"prompt": "A cat walking on the beach",
"n_frames": "10",
"remove_watermark": true
}'