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
application/jsonPossible values: The main prompt for video generation
A beautiful sunset over mountainsElements to avoid in the generated video
blur, darkness, noiseImage for the first frame of video. Supported formats: JPG, JPEG, PNG, GIF, BMP, WebP. Maximum file size: 10 MB.
Image for the last frame of video (optional). Supported formats: JPG, JPEG, PNG, GIF, BMP, WebP. Maximum file size: 10 MB.
Width of the generated video in pixels
512Height of the generated video in pixels
512Guidance scale for the generation
7.5Number of inference steps
20Number of video frames to generate
20FPS of generated video
30Random seed for generation
42The 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_FP8ID 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": "c08a339c-73e5-4d67-a4d5-231302fbff9a"
}
}Endpoint for calculating price for image2video inference
application/jsonPossible values: Width of the generated video in pixels
512Height of the generated video in pixels
512Number of inference steps
20Number of video frames to generate
20FPS of generated video
30The 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_FP8Calculated 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: application/json
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