Text-to-Video
Text-to-Video generates short video clips directly from text prompts with motion and stylization. The API returns a video URL and a task ID to track processing.
Endpoint for requesting text2video inference
The main prompt for video generation
A beautiful sunset over mountains
Elements to avoid in the generated video
blur, darkness, noise
Width of the generated video in pixels
512
Height of the generated video in pixels
512
Guidance scale for the generation
7.5
Number of inference steps
20
Number of video frames to generate
20
FPS of generated video
30
Random seed for generation
42
The model to use for video generation. Available models can be retrieved via the GET /api/v1/client/models endpoint.
Ltxv_13B_0_9_8_Distilled_FP8
ID of the inference request.
Unauthorized user.
Unauthorized user.
POST /api/v1/client/txt2video HTTP/1.1
Host: api.deapi.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: application/json
Content-Type: multipart/form-data
Content-Length: 209
{
"prompt": "A beautiful sunset over mountains",
"negative_prompt": "blur, darkness, noise",
"width": 512,
"height": 512,
"guidance": 7.5,
"steps": 20,
"frames": 20,
"fps": 30,
"seed": 42,
"model": "Ltxv_13B_0_9_8_Distilled_FP8"
}
{
"data": {
"request_id": 1
}
}
Endpoint for calculating price for text2video inference
Width of the generated video in pixels
512
Height of the generated video in pixels
512
Number of inference steps
20
Number of video frames to generate
20
FPS of generated video
30
The model to use for video generation. Available models can be retrieved via the GET /api/v1/client/models endpoint.
Ltxv_13B_0_9_8_Distilled_FP8
Calculated price for txt2video inference.
Unauthorized user.
Unauthorized user.
POST /api/v1/client/txt2video/price-calculation HTTP/1.1
Host: api.deapi.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: application/json
Content-Type: multipart/form-data
Content-Length: 97
{
"width": 512,
"height": 512,
"steps": 20,
"frames": 20,
"fps": 30,
"model": "Ltxv_13B_0_9_8_Distilled_FP8"
}
{
"data": {
"price": 0.15
}
}
Last updated