Image-to-Video
Image-to-Video transforms static images into short video clips with motion and stylization. The API returns a video URL and a task ID to track processing.
Endpoint for requesting image2video inference
The main prompt for video generation
A beautiful sunset over mountains
Elements to avoid in the generated video
blur, darkness, noise
Image for the first frame of video
Image for the last frame of video
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/img2video HTTP/1.1
Host: api.deapi.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: application/json
Content-Type: multipart/form-data
Content-Length: 266
{
"prompt": "A beautiful sunset over mountains",
"negative_prompt": "blur, darkness, noise",
"first_frame_image": "binary",
"last_frame_image": "binary",
"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 image2video 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 img2video inference.
Unauthorized user.
Unauthorized user.
POST /api/v1/client/img2video/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