TheFluxTrain

Video generation

Text-to-video, image-to-video, and reference-based video models.

Create video from text, a starting image, reference clips, or multi-shot setups. Most models return PENDING first — poll Jobs with the returned id.

URL: POST https://api.thefluxtrain.com/api/v1/video-generate/generate

Authentication: x-api-key

Request body

FieldTypeRequiredDefaultDescription
modelstringNoveo-3.1-fastVideo model ID (full list in OpenAPI)
promptstringNoText prompt
imagestringNoStart frame URL
last_framestringNoEnd frame URL
reference_imagesstringNoReference image URLs
reference_videosstringNoReference videos (Seedance 2.0, max 3)
reference_audiosstringNoReference audio URLs
videostringNoReference video URL
durationintegerNo5Duration in seconds (1–60)
resolutionstringNoe.g. 720p, 1080p
aspect_ratiostringNo16:9Aspect ratio
generate_audiobooleanNotrueGenerate or keep audio
camera_fixedbooleanNoSeedance: fix camera
elementsobjectNoKling V3 character/object elements
multi_promptsobjectNoKling multi-shot { prompt, duration }
shot_typestringNocustomizeKling shot type
folder_idstringNoFolder UUID in your account
message_idstringNoYour own tracking ID

Common models: veo-3.1-fast, veo-3.1, kling-o3-image-to-video-pro, seedance-2.0-image-to-video, happy-horse-text-to-video, gemini-omni-flash-text-to-video, gemini-omni-flash-image-to-video, gemini-omni-flash-reference-to-video, gemini-omni-flash-video-edit, and others — see OpenAPI for the full list.

Example (image-to-video)

{
  "model": "veo-3.1-fast",
  "prompt": "Slow pan across the scene, cinematic",
  "image": "https://example.com/frame.jpg",
  "duration": 5,
  "aspect_ratio": "16:9",
  "folder_id": "your-folder-uuid"
}

Response

FieldTypeDescription
idstringJob ID — poll via Jobs
urlstringVideo URL when status is SUCCESS
statusstringOften PENDING at first
media_typestringVIDEO
metaobjectProvider metadata
folder_idstring | nullFolder UUID
providerstring | nullProvider name
provider_idstring | nullProvider job ID

Example

{
  "data": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "url": "",
    "status": "PENDING",
    "media_type": "VIDEO",
    "meta": {},
    "provider_id": "provider-job-id"
  },
  "error": null
}