MAGI-2 Reference To Video

Reference to VideoVideo
magi-2/reference-to-video

MAGI-2 Reference to Video builds a 1080p clip with sound from a required prompt and reference media. Send up to 10 images, 5 video clips, and 5 audio clips. Each type can be empty, but at least one reference media item is required. Each video or audio clip is 2 to 30 seconds, and each of those two types stays within 30 seconds in total. Output length is 4 to 30 seconds. Result audio is included in the per-second price.

Video duration

4–30 s

Modalities

MAGI-2 Reference To Video Pricing

Default

Price per second
$0.104
Estimated cost
$0.52

svip

Price per second
$0.104
Estimated cost
$0.52

vip

Price per second
$0.104
Estimated cost
$0.52

MAGI-2 Reference To Video API Capabilities

Aspect ratio

16:99:161:14:33:421:9

Audio generation

Supported

Execution mode

Asynchronous task

Endpoint Protocols

Generation Tasks

Model Highlights

Use media you already have to guide the look, motion and sound of a new scene.

Mixed Media References

Combine images, video clips and audio references in one generation to guide different aspects of the same scene.

Character and Scene References

Use separate images as references for a character, wardrobe or locations across multiple shots.

Motion from a Video Reference

Use a reference clip to show the camera move or performance you want the new shot to follow.

Use Cases

Workflows that carry visual or audio cues into newly generated shots.

Recurring Characters

Reuse character and wardrobe sheets to guide the appearance of cast members across new scenes.

Camera Previsualization

Use a rough previs clip to convey a camera path while image references supply the new scene’s appearance.

Audio-Guided Scenes

Pair a visual reference with an audio example when the new scene should follow a particular delivery or ambience.

How to Use MAGI-2 Reference To Video via the TokenHub API

Create API key
SUBMIT_RESPONSE=$(curl 'https://us-api.tokenhub.com/generation/tasks' \
  -X 'POST' \
  -H "Authorization: Bearer $TOKENHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "audios": [
    "https://example.com/audio.wav"
  ],
  "generate_audio": false,
  "images": [
    "https://example.com/image.jpg"
  ],
  "model": "magi-2/reference-to-video",
  "prompt": "A slow camera pan across a mountain lake",
  "videos": [
    "https://example.com/video.mp4"
  ]
}')
TASK_ID=$(printf '%s' "$SUBMIT_RESPONSE" | python -c "import json,sys; print(json.load(sys.stdin)['data']['task_id'])")
ENCODED_TASK_ID=$(TASK_ID="$TASK_ID" python -c 'import os,urllib.parse; print(urllib.parse.quote(os.environ["TASK_ID"], safe=""))')

for attempt in 1 2 3 4 5 6 7 8 9 10; do
  TASK_RESPONSE=$(curl 'https://us-api.tokenhub.com/generation/tasks/'"${ENCODED_TASK_ID}" \
    -H "Authorization: Bearer $TOKENHUB_API_KEY")
  printf '%s\n' "$TASK_RESPONSE"
  # Stop polling here when the response reports a terminal status.
  [ "$attempt" -eq 10 ] || sleep 2
done

MAGI-2 Demos and Discussions

Demos and production notes using visual, motion or audio references.

X (Twitter)

View original
View post on X
View original
View post on X
View original
View post on X

Reddit

View original
View original
View original

YouTube

View original
Watch on YouTube
View original
Watch on YouTube
View original
Watch on YouTube

MAGI-2 Reference To Video FAQs

Supported reference media, input limits and when to pick this mode.

How many references can I use?+

Higgsfield documents up to 10 images, 5 videos and 5 audio clips per request. Reference video and audio each have a combined limit of 30 seconds.

When should I use references or frame inputs?+

Use references when assets should guide the character, setting, motion or sound. For a predetermined opening image and optional ending image, choose Image To Video.

What duration and aspect ratios are available?+

Higgsfield documents 4–30 seconds at 1080p, with 21:9, 16:9, 4:3, 1:1, 3:4 and 9:16 aspect ratios. Check Specifications for the options exposed on TokenHub.

How do I call this model through TokenHub?+

Use magi-2/reference-to-video as the model ID. Follow the endpoint and request example in Integration, then poll for the result using the returned task ID.

How is a video priced?+

Higgsfield lists US$0.08 per requested second, including generated audio. See the Pricing section for the rate and billing details on TokenHub.

Ready to use MAGI-2 Reference To Video?

Use one API key to access MAGI-2 Reference To Video and more AI models through TokenHub.

Create API key