Use this recipe when the video should be guided by one or more images instead of relying on prompt text alone.Documentation Index
Fetch the complete documentation index at: https://docs.ai-stats.phaseo.app/llms.txt
Use this file to discover all available pages before exploring further.
Goal
- Send a valid
input_referencesarray. - Use one image as a first frame or general reference.
- Keep the request portable across providers where possible.
1. Start with one reference image
The video API accepts structured input references.2. Use the role deliberately
Common roles include:first_framelast_framereferencesource
3. Keep the prompt aligned with the image
Reference images work best when the prompt explains the intended motion or transformation instead of re-describing the whole scene from scratch. Better pattern:- describe the motion, pacing, framing, and ending state
- re-list every visible object already present in the image
4. Verify the selected model actually supports this flow
Before shipping:- check the model in
GET /v1/videos/models - confirm the input types and supported parameters match your request
5. Add provider-specific overrides only if needed
If one provider needs extra video options, add them throughprovider_params instead of rewriting the whole request around one provider.