Skip to content

Bytedance - V1 Pro 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) ​

ParameterTypeRequiredDescription
modelstringYesThe model name to use for generation. Required field.
- Must be bytedance/v1-pro-text-to-video for this endpoint Default:"bytedance/v1-pro-text-to-video"。 Allowed values:bytedance/v1-pro-text-to-video。 Example:bytedance/v1-pro-text-to-video。
promptstringYesPrompt required by the ModelFold gateway; at most 2000 characters. The text prompt used to generate the video (Max length: 10000 characters) maxLength: 2000. Example:A boy with curly hair and a backpack rides a bike down a golden-lit rural road at sunset.<br>[Cut to] He slows down and looks toward a field of tall grass.<br>[Wide shot] His silhouette halts in the orange haze.。
aspect_ratiostringNoThe aspect ratio of the generated video Default:"16:9"。 Allowed values:21:9 / 16:9 / 4:3 / 1:1 / 3:4 / 9:16。 Example:16:9。
resolutionstringNoVideo resolution - 480p for faster generation, 720p for balance, 1080p for higher quality Default:"720p"。 Allowed values:480p / 720p / 1080p。 Example:720p。
durationstringNoDuration of the video in seconds Default:"5"。 Allowed values:5 / 10。 Example:5。
camera_fixedbooleanNoWhether to fix the camera position (Boolean value (true/false)) Example:false。
seednumberNoRandom seed to control video generation. Use -1 for random. (Min: -1, Max: 2147483647, Step: 1) (step: 1) Default:-1。 minimum: -1. maximum: 2147483647. Example:-1。
enable_safety_checkerbooleanNoThe 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_checkerbooleanNoDefaults 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-pro-text-to-video",
  "prompt": "A boy with curly hair and a backpack rides a bike down a golden-lit rural road at sunset.\n[Cut to] He slows down and looks toward a field of tall grass.\n[Wide shot] His silhouette halts in the orange haze.",
  "aspect_ratio": "16:9",
  "resolution": "720p",
  "duration": "5",
  "seed": -1
}'
json
{
  "model": "bytedance/v1-pro-text-to-video",
  "prompt": "A boy with curly hair and a backpack rides a bike down a golden-lit rural road at sunset.\n[Cut to] He slows down and looks toward a field of tall grass.\n[Wide shot] His silhouette halts in the orange haze.",
  "aspect_ratio": "16:9",
  "resolution": "720p",
  "duration": "5",
  "seed": -1
}

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": {}
}

ModelFold — one API for all the best AI models.