TheFluxTrain

Motion control

Animate a still image using motion from a reference video.

Drive a still character image with motion from a reference video, or replace a character in footage (depending on model). Results are usually asynchronous — use Jobs when status is PENDING.

URL: POST https://api.thefluxtrain.com/api/v1/motion-control/animate

Authentication: x-api-key

Request body

FieldTypeRequiredDefaultDescription
imagestringYesCharacter / subject image URL
videostringYesMotion reference or source video URL
model_variantstringNoprostd, pro, or wan-2.2-animate-replace
refert_numintegerNo1Reference frames (1 or 5) for Wan
frames_per_secondintegerNo24Output FPS (Wan)
go_fastbooleanNotrueFaster processing (Wan)
resolutionstringNoe.g. 720 for Wan
durationnumberNo5.0Estimated duration in seconds (0.1–60)
promptstringNo""Optional guidance prompt
keep_original_soundbooleanNotrueKeep reference audio
character_orientationstringNovideoimage or video
folder_idstringNoFolder UUID in your account
message_idstringNoYour own tracking ID

Example

{
  "image": "https://example.com/character.png",
  "video": "https://example.com/dance.mp4",
  "model_variant": "pro",
  "duration": 5,
  "folder_id": "your-folder-uuid"
}

Response

Same job shape as Video generation.

FieldTypeDescription
idstringJob ID
urlstringOutput video URL when complete
statusstringSUCCESS, PENDING, FAILED, etc.
media_typestringVIDEO
metaobjectMetadata

Example

{
  "data": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "url": "https://storage.example/animated.mp4",
    "status": "SUCCESS",
    "media_type": "VIDEO",
    "meta": {}
  },
  "error": null
}