---
title: "Generate AI video"
method: POST
path: "/tools/generate_ai_video"
---

# Generate AI video

`POST /tools/generate_ai_video`

## Request

- Base URL: `https://api.bannerbear.com/v5`
- URL: `https://api.bannerbear.com/v5/tools/generate_ai_video`
- Auth: HTTP bearer

Generate a video from a prompt or image with AI. Async — returns 202 with a pending job; poll GET /tool_jobs/{uid} until `status` is `completed` or `failed`.

## Request body

- object
  - `prompt` string, required: What happens in the clip — describe the subject, motion, camera and style
  - `model` 'seedance_1_lite' | 'seedance_2' | 'kling_2_5_turbo_pro' | 'veo_3_1_fast', required: AI credit cost varies by model, length and resolution
  - `duration` string: Each model offers some of these lengths — Kling 5 or 10, Veo 4, 6 or 8, Seedance any
  - `resolution` '480p' | '720p' | '1080p': Higher resolutions cost more per second — Kling's is fixed
  - `aspect_ratio` '16:9' | '9:16' | '1:1' | '4:3' | '3:4': Ignored when a starting image is given — the clip takes the image's shape
  - `image_url` string, uri: Optional — the clip begins from this frame and animates it
  - `audio` 'on' | 'off': Generated sound, on the models that can — Veo charges less without it
  - `metadata` string: Arbitrary metadata string stored with the tool run

## Response `202`

Tool run accepted

- object
  - `uid` string
  - `tool` 'generate_ai_video'
  - `status` 'pending' | 'running' | 'completed' | 'failed': pending → running → completed / failed
  - `progress` integer: 0-100 job progress, 100 once completed
  - `inputs` object: Inputs the job was created with
  - `outputs` object
    - `video_url` string, uri
  - `metadata` string, nullable: Arbitrary metadata string round-tripped from the create request
  - `self` string, uri
  - `created_at` string, date-time
  - `completed_at` string, date-time, nullable
  - `error_message` string, nullable: Human-readable failure reason (only present on failed jobs)

## Other responses

- `402`: API quota exhausted — upgrade required
- `404`: Unknown tool
- `422`: Input validation failure

## Changes

- **2026-09-21** `708a5945d283`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/bannerbear/apis/bannerbear-v5-api/changes/tools/generate_ai_video/post.md)

---

[API](https://skmtc.dev/bannerbear/apis/bannerbear-v5-api.md) - [All operations](https://skmtc.dev/bannerbear/apis/bannerbear-v5-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bannerbear/apis/bannerbear-v5-api/revisions/357256cbd1e5?raw)
