Estimate the credit cost of a video generation
Same DTO as POST /v1/videos. Cost = base_per_second × resolution_factor × duration_s. Same validation + access checks as the create path; same isolated rate-limit bucket.
Authorizations
Your team API key (starts with al_live_).
Headers
Optional API version pin (YYYY-MM-DD). Defaults to your team's pinned version, or the system default 2026-05-15 for unauthenticated requests.
^\d{4}-\d{2}-\d{2}$"2026-05-15"
Body
Opaque video LoRA identifier (lora_*) or slug. UUIDs accepted for legacy back-compat.
"lora_01HXMQ7Z3K8Y2ABCDEFGHJKM"
Text prompt describing the video. Optional — enhances the generation when provided.
"A golden sunset over the ocean with gentle waves"
First frame for image-to-video / first+last frame interpolation. Either an opaque file_<ulid> ID returned by POST /v1/files, or an https:// URL pointing at a public host (max 2048 chars). URLs are server-side fetched through an SSRF-pinned client (rejects private IPs / cloud metadata).
2048"file_01HXMQ7Z3K8Y2NABCDEFGHJKMN"
Last frame for first+last frame interpolation. Same rules as first_frame_url.
2048"https://example.com/last.jpg"
Output video resolution
480p, 720p, 1080p Output video aspect ratio
16:9, 4:3, 1:1, 3:4, 9:16, 21:9 Video duration in seconds (2-12)
2 <= x <= 125
Random seed (-1 for random)
Whether to fix the camera position
Whether to add watermark
Whether to enhance the prompt with AI
Webhook URL to receive POST callback when generation completes or fails
Response
Cost estimate

