Videos
Asynchronous video generation, remix, edit, extend, and characters using Sora models. OpenAI-compatible.
List video jobs
Authorization
api_key API key authentication using Bearer token format
In: header
Response Body
application/json
curl -X GET "https://loading/api/v1/videos"{
"data": [
{
"completed_at": 0,
"created_at": 0,
"error": {},
"expires_at": 0,
"id": "string",
"model": "string",
"object": "string",
"progress": 0,
"prompt": "string",
"remixed_from_video_id": "string",
"seconds": "string",
"size": "string",
"status": "queued"
}
],
"first_id": "string",
"has_more": true,
"last_id": "string",
"object": "string"
}Create a video generation job
Authorization
api_key API key authentication using Bearer token format
In: header
Request Body
application/json
The model to use for video generation (defaults to sora-2).
A text description of the desired video.
Response Body
application/json
curl -X POST "https://loading/api/v1/videos" \ -H "Content-Type: application/json" \ -d '{ "prompt": "string" }'{
"completed_at": 0,
"created_at": 0,
"error": {},
"expires_at": 0,
"id": "string",
"model": "string",
"object": "string",
"progress": 0,
"prompt": "string",
"remixed_from_video_id": "string",
"seconds": "string",
"size": "string",
"status": "queued"
}Create a character from a reference video
Authorization
api_key API key authentication using Bearer token format
In: header
Request Body
multipart/form-data
Optional model id, used only to resolve the provider (default sora-2).
Display name for the new character.
Response Body
application/json
curl -X POST "https://loading/api/v1/videos/characters" \ -F name="string"{
"created_at": 0,
"id": "string",
"name": "string",
"object": "string"
}Retrieve a character
Authorization
api_key API key authentication using Bearer token format
In: header
Path Parameters
Character id
Response Body
application/json
curl -X GET "https://loading/api/v1/videos/characters/string"{
"created_at": 0,
"id": "string",
"name": "string",
"object": "string"
}Edit a video into a new job
Authorization
api_key API key authentication using Bearer token format
In: header
Request Body
application/json
Instructions describing the edit.
The source video to edit.
Response Body
application/json
curl -X POST "https://loading/api/v1/videos/edits" \ -H "Content-Type: application/json" \ -d '{ "prompt": "string", "video": { "id": "string" } }'{
"completed_at": 0,
"created_at": 0,
"error": {},
"expires_at": 0,
"id": "string",
"model": "string",
"object": "string",
"progress": 0,
"prompt": "string",
"remixed_from_video_id": "string",
"seconds": "string",
"size": "string",
"status": "queued"
}Extend a video into a new job
Authorization
api_key API key authentication using Bearer token format
In: header
Request Body
application/json
Direction for the extended segment.
Additional duration in seconds (4, 8, 12, 16, or 20).
"4" | "8" | "12" | "16" | "20"The source video to extend.
Response Body
application/json
curl -X POST "https://loading/api/v1/videos/extensions" \ -H "Content-Type: application/json" \ -d '{ "prompt": "string", "seconds": "4", "video": { "id": "string" } }'{
"completed_at": 0,
"created_at": 0,
"error": {},
"expires_at": 0,
"id": "string",
"model": "string",
"object": "string",
"progress": 0,
"prompt": "string",
"remixed_from_video_id": "string",
"seconds": "string",
"size": "string",
"status": "queued"
}Retrieve a video job (refreshes status from the provider)
Authorization
api_key API key authentication using Bearer token format
In: header
Path Parameters
Video job id
Response Body
application/json
curl -X GET "https://loading/api/v1/videos/string"{
"completed_at": 0,
"created_at": 0,
"error": {},
"expires_at": 0,
"id": "string",
"model": "string",
"object": "string",
"progress": 0,
"prompt": "string",
"remixed_from_video_id": "string",
"seconds": "string",
"size": "string",
"status": "queued"
}Delete a video job
Authorization
api_key API key authentication using Bearer token format
In: header
Path Parameters
Video job id
Response Body
application/json
curl -X DELETE "https://loading/api/v1/videos/string"{
"deleted": true,
"id": "string",
"object": "string"
}Download the rendered asset for a video job
Authorization
api_key API key authentication using Bearer token format
In: header
Path Parameters
Video job id
Response Body
curl -X GET "https://loading/api/v1/videos/string/content"Remix a video into a new job
Authorization
api_key API key authentication using Bearer token format
In: header
Path Parameters
Source video id
Request Body
application/json
Updated direction for the remixed video.
Response Body
application/json
curl -X POST "https://loading/api/v1/videos/string/remix" \ -H "Content-Type: application/json" \ -d '{ "prompt": "string" }'{
"completed_at": 0,
"created_at": 0,
"error": {},
"expires_at": 0,
"id": "string",
"model": "string",
"object": "string",
"progress": 0,
"prompt": "string",
"remixed_from_video_id": "string",
"seconds": "string",
"size": "string",
"status": "queued"
}