Video generation
Create asynchronous video generation jobs and download completed clips.
Video generation is asynchronous. Create a job, poll it until it completes, then download the MP4. Use GET /v1/models to discover video models and their supported duration, resolution, aspect ratio, and per-second prices.
Create a video
curl https://api.outerlane.app/v1/videos \
-H "Authorization: Bearer $OUTERLANE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/veo-3.1",
"prompt": "A cinematic shot of a small robotic satellite unfolding solar panels above Earth",
"seconds": 4,
"resolution": "720p",
"aspect_ratio": "16:9"
}'Request body
google/veo-3.1 or kling/kling-3.0-turbo720p, 1080p, or 4k. Supported values vary by model.16:9, 9:16, or 1:1.WIDTHxHEIGHT alias. If resolution is omitted, outerlane infers resolution and aspect ratio from this value.-1 is also treated as random.Unsupported option values return 400 invalid_request (or 400 unsupported_feature when a model does not accept a field such as input_reference, last_frame, or negative_prompt) before a job is created. On Veo models, 1080p and 4k require "seconds": 8. Cancellation, streaming, and audio toggles are not currently exposed.
{
"id": "req_a1b2c3d4e5f6a1b2c3d4e5f6",
"object": "video",
"model": "google/veo-3.1",
"prompt": "A cinematic shot of a small robotic satellite unfolding solar panels above Earth",
"status": "queued",
"progress": 0,
"seconds": "4",
"size": "1280x720",
"resolution": "720p",
"aspect_ratio": "16:9",
"cost_usd": 0.8,
"created_at": 1795588800,
"completed_at": null,
"error": null
}List recent jobs
Returns up to 50 recent jobs owned by the authenticated account, newest first.
Poll the job
curl https://api.outerlane.app/v1/videos/req_a1b2c3d4e5f6a1b2c3d4e5f6 \
-H "Authorization: Bearer $OUTERLANE_API_KEY"status is queued, in_progress, completed, or failed. progress is a percentage from 0 to 100 when the upstream provider reports it. Failed jobs include error when available.
Hide a finished video
Hides a completed or failed job from future list responses without deleting its billing request. Active jobs return 409 video_not_ready because they cannot be cancelled through this API yet.
Download the video
curl -L https://api.outerlane.app/v1/videos/req_a1b2c3d4e5f6a1b2c3d4e5f6/content \
-H "Authorization: Bearer $OUTERLANE_API_KEY" \
-o video.mp4The content endpoint returns video/mp4 after completion. It returns 409 video_not_ready while the job is still running or if generation failed.
Discover model options
Video models in GET /v1/models have media_type: "video" and a media_options object. Select options include their default and allowed choices. Number options include min, max, and step; text options include max_length. Resolution choices can override the base per-second price with price_per_second_usd.
{
"seconds": {
"type": "select",
"label": "Duration",
"default": 4,
"choices": [
{ "value": 4, "label": "4s" },
{ "value": 8, "label": "8s" }
]
},
"resolution": {
"type": "select",
"label": "Resolution",
"default": "720p",
"choices": [
{ "value": "720p", "label": "720p", "price_per_second_usd": 0.2 }
]
}
}Billing
The estimated cost is seconds × resolution price per second. outerlane checks that the estimated cost is covered before creating the job and treats other active video jobs as reserved spend. Only completed videos are billed; failed jobs have zero cost.