Models
Every generation request takes a static model code string (e.g. "kling-3.0"). There is no Models API — the catalog below is the single source of truth, including the exact values each parameter accepts and every input limit.
How model codes work
- Pass the code as
modelin the JSON body ofPOST /v1/videosorPOST /v1/images. - Codes are lowercase and hyphenated. Video codes and image codes are separate namespaces — a code only works on its matching endpoint.
- Unknown codes, or parameter values outside the tables below, are rejected with an error envelope (
code 1046) before any task is created. - Omitted optional parameters fall back to the model default marked default in each cell.
- Modes:
text= text-to-X,image= image-to-X. For video, any image input selects the image mode; a model that only supports one mode rejects the other. - Video input shapes: single
image_url; first/last frame viaimage_url+last_image_url(only where the Frame column is ✓); multiple reference images viaimage_url_list(only where the Reference column is ✓); reference videos viavideo_url_listand reference audios viaaudio_url_list(only where the Ref video / Ref audio columns are ✓, reference mode only).last_image_urlis mutually exclusive withimage_url_list/video_url_list/audio_url_list;audio_url_listmust accompany image or video references.
Video models
Supported parameters per model: duration, quality, ratio, video_num, sound. The Frame column marks models that accept a last_image_url (first/last frame); the Reference column marks models that accept an image_url_list (multiple reference images); the Ref video / Ref audio columns mark models that accept video_url_list / audio_url_list (reference videos / audios in reference mode) with their per-model maximum count. Some models have value dependencies documented in the notes column.
| Code | Model | Modes | Frame | Reference | Ref video | Ref audio | Prompt max | Duration (s) | Quality | Ratio | Num | Sound | Input limits (i2v) |
|---|
Image models
Supported parameters per model: ratio, quality, resolution, image_num. GPT Image 2.6 additionally accepts output_format (png / gif / svg, default png) with frame_count (2–16) and frame_duration_ms (≥20 ms) for animated gif output. Image generation accepts text-to-image (no image inputs), single image-to-image (image_url), or multiple reference images via image_url_list — the Reference column marks models that support it and their maximum image count (including image_url).
| Code | Model | Reference | Prompt max | Ratio | Quality | Resolution | Num |
|---|
Common input limits
- Common image formats (14):
.png .jpg .jpeg .webp .tif .jfif .pjp .heif .tiff .heic .svg .bmp .avif .dng. Models marked with a narrower whitelist accept only those formats. - Reference video formats (where listed):
.mp4 .mov. Reference audio formats:.mp3 .wav. - Input images must be publicly accessible URLs. Per-image size and pixel-edge limits are listed in the video table; aspect-ratio bounds apply where noted.
video_num/image_numabove a model's max is rejected rather than clamped.
Model-specific notes
- sora-2 / sora-2-pro:
ratiovalues arelandscape(16:9) andportrait(9:16), not colon notation. - vidu-1.5: text-to-video only. When
duration=8, quality is forced to720p. - vidu-2.0: image-to-video only (multi-image reference or first/last frame).
- hailuo-2.3 / fast: no
ratioparameter (output follows the input or prompt).duration=10forces768p;1080pforcesduration=5. - minimax-h3:
quality=480prestrictsdurationto5. - seedance-2.5 / genjutsu: prompt length is unlimited.
- genjutsu: image-to-video only (video editing). Output duration follows the reference video;
durationis fixed at5andratiois not accepted (output follows the input). - vidu-q3-drama: does not accept
1:1ratio;vidu-q3-adrequiresduration ≥ 3. - grok-1.5:
720ponly. - kling: image mode supports first/last frame (
image_url+last_image_url); multiple reference images (image_url_list) are not supported. - First/last-frame ratio: for
kling-3-omni,minimax-h3andseedance-2.5the output ratio is derived from the frame images, so a submittedratiois ignored in first/last-frame mode. - Ratio "auto": where listed, the server decides from the prompt/input.
- gpt-image-2.6-sunburst / gpt-image-2.6-flare: ratio list excludes
autoand the 2.5-only values (27:16/16:27/9:8/8:9), adding9:21.output_format(png/gif/svg) selects the delivery format (gif= animated);frame_count(2–16) andframe_duration_ms(≥20 ms) apply only whenoutput_format=gifand are ignored otherwise. These three parameters are 2.6-only.
curl -X POST "https://litvideo-api.litmedia.ai/v1/videos" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer lvsk-xxxxxxxxxxxxxxxx" \
-d '{
"model": "kling-3.0",
"prompt": "A cinematic drone shot over a neon-lit city",
"duration": 10,
"quality": "pro",
"ratio": "16:9"
}'
The catalog mirrors the LitMedia web app. New models are added as codes on a best-effort basis; the tables here are authoritative for the Open API.