{
"actions": [
{
"time": 0,
"description": "string"
}
],
"inpaint_items": [
{
"type": "image",
"url": "string",
"frame_index": 0,
"preset_id": null,
"generation_id": null,
"upload_media_id": "string",
"source_start_frame": 0,
"source_end_frame": 0
}
],
"type": "video_gen",
"style": "natural",
"prompt": "string",
"width": 1,
"height": 1,
"n_frames": 1,
"n_variants": 1,
"sdedit": {
"amount": 1,
"source_generation_id": "string",
"source_upload_media_id": "string"
},
"operation": "simple_compose",
"model": "turbo"
}
curl --location -g --request POST '{{BASE_URL}}/sora/v1/videos' \
--header 'Authorization: Bearer {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"actions": [
{
"time": 0,
"description": "string"
}
],
"inpaint_items": [
{
"type": "image",
"url": "string",
"frame_index": 0,
"preset_id": null,
"generation_id": null,
"upload_media_id": "string",
"source_start_frame": 0,
"source_end_frame": 0
}
],
"type": "video_gen",
"style": "natural",
"prompt": "string",
"width": 1,
"height": 1,
"n_frames": 1,
"n_variants": 1,
"sdedit": {
"amount": 1,
"source_generation_id": "string",
"source_upload_media_id": "string"
},
"operation": "simple_compose",
"model": "turbo"
}'
{
"code": "success",
"message": "",
"data": "task_01jhjnz502ejqsm6r37km2q637"
}