Bytedance - V1 Lite Text to Video
Endpoint
POST /videos/generations
Full URL: https://modelfold.ai/v1/videos/generations
Authentication: every request must include the
Authorization: Bearer <API_KEY>header.
Send model parameters directly in the JSON body. Do not wrap them in input. This request waits for generation to finish and returns data[].url; supported media models also offer async jobs, polling and callbacks. Replace example media URLs with your own publicly accessible files. See API gateway for billing and errors.
Input parameters for the generation task
Request Parameters
Body (application/json)
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | Yes | The model name to use for generation. Required field. - Must be bytedance/v1-lite-text-to-video for this endpoint Default:"bytedance/v1-lite-text-to-video"。 Allowed values:bytedance/v1-lite-text-to-video。 Example:bytedance/v1-lite-text-to-video。 |
prompt | string | Yes | Prompt required by the ModelFold gateway; at most 2000 characters. The text prompt used to generate the video (Max length: 10000 characters) maxLength: 2000. Example:Wide-angle shot: A serene sailing boat gently sways in the harbor at dawn, surrounded by soft Impressionist hues of pink and orange with ivory accents. The camera slowly pans across the scene, capturing the delicate reflections on the water and the intricate details of the boat's sails as the light gradually brightens.。 |
aspect_ratio | string | No | The aspect ratio of the generated video Default:"16:9"。 Allowed values:16:9 / 4:3 / 1:1 / 3:4 / 9:16 / 9:21。 Example:16:9。 |
resolution | string | No | Video resolution - 480p for faster generation, 720p for higher quality Default:"720p"。 Allowed values:480p / 720p / 1080p。 Example:720p。 |
duration | string | No | Duration of the video in seconds Default:"5"。 Allowed values:5 / 10。 Example:5。 |
camera_fixed | boolean | No | Whether to fix the camera position (Boolean value (true/false)) Example:false。 |
seed | integer | No | Random seed to control video generation. Use -1 for random. |
enable_safety_checker | boolean | No | The safety checker is always enabled in Playground. It can only be disabled by setting false through the API. (Boolean value (true/false)) Example:true。 |
nsfw_checker | boolean | No | Defaults to false. When false, no additional content filtering is applied and results are returned directly by the model. |
Request Example
bash
curl -X POST "https://modelfold.ai/v1/videos/generations" \
-H "Authorization: Bearer $MODELFOLD_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "bytedance/v1-lite-text-to-video",
"prompt": "Wide-angle shot: A serene sailing boat gently sways in the harbor at dawn, surrounded by soft Impressionist hues of pink and orange with ivory accents. The camera slowly pans across the scene, capturing the delicate reflections on the water and the intricate details of the boat'\''s sails as the light gradually brightens.",
"aspect_ratio": "16:9",
"resolution": "720p",
"duration": "5"
}'json
{
"model": "bytedance/v1-lite-text-to-video",
"prompt": "Wide-angle shot: A serene sailing boat gently sways in the harbor at dawn, surrounded by soft Impressionist hues of pink and orange with ivory accents. The camera slowly pans across the scene, capturing the delicate reflections on the water and the intricate details of the boat's sails as the light gradually brightens.",
"aspect_ratio": "16:9",
"resolution": "720p",
"duration": "5"
}Response
200 — Generation completed. usage contains actual billing details; result URLs are illustrative.
json
{
"ok": true,
"created": 1792134000,
"data": [
{
"url": "https://modelfold.ai/uploads/outputs/result.mp4"
}
],
"usage": {}
}