# AI Video Generator: Veo 3, Kling, Hailuo H3, Seedance, Wan (`pnda/ai-video-generator`) Actor

AI video generator: text to video and image to video with Veo 3, Kling 2.6, MiniMax Hailuo H3, Seedance and Wan in one Actor. No API key, no subscription. From $0.075 per second. Works with a free Apify account too (1 video/month, Seedance 480p 2 s). For images, use pnda/ai-image-generator.

- **URL**: https://apify.com/pnda/ai-video-generator.md
- **Developed by:** [PNDA](https://apify.com/pnda) (community)
- **Categories:** AI, Videos, Agents
- **Stats:** 10 total users, 4 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $75.00 / 1,000 video second (lite)s

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## AI Video Generator: Veo 3, Kling, Hailuo H3, Seedance, Wan

**AI video generator**: text to video and image to video with **Veo 3 / 3.1**, **Kling 2.5–3.0**, **Seedance** and **Wan 2.2 / 2.5**, billed **per second of delivered video**.

- 🎬 **Text to video** and 🖼️ **image to video** (first frame) with the same input.
- 🔊 **Native audio** on Veo 3, Kling 2.6 and Seedance 2.0.
- 💸 From $0.075 per second (Seedance 1 Pro Fast 480p, Wan 2.2 480p).
- 🔑 **No API key**: no OpenAI, Google or ByteDance account needed.
- 🆓 **Works with a free Apify account too**: 1 generation per month (one 2 s video) with Seedance 1 Pro Fast, 480p, 2 s, billed at the normal price ($0.15). Every model and option on paid Apify plans.
- 🚫 **Sexually explicit content is not allowed.** Such prompts stop at once, at no cost.
- 💸 **Pay only for delivered seconds of video.** Failures are never charged.

Works from the Apify Console, the API, the JavaScript / Python clients, **n8n, Make, Zapier** and **AI agents / MCP**.

### 💡 Who is it for?

- Social media: TikTok, Reels, Shorts
- Ads and e-commerce: product videos from a packshot
- Developers and AI agents: one video API for every model

### ⚙️ How it works

1. You send a **prompt**, optionally a start image for image-to-video, and pick a model.
2. The Actor checks your maximum cost per run covers the full video, then generates it (from ~30 s to a few minutes).
3. Each video is **copied to your Apify key-value store**, so the link does not expire after an hour.
4. One dataset row per video: URL, model, options, duration.

### 💰 Pricing

Pay per event, **per second of delivered video**, no start fee. Paid Apify plans: every model below. **Works with a free Apify account too**: 1 generation per month (one 2 s video) with Seedance 1 Pro Fast, 480p, 2 s, billed at the normal price ($0.15).

| Model | Option | Event | Price per second | Example |
|---|---|---|---|---|
| Wan 2.2 Fast (text-to-video or image-to-video, 5 s) | 480p | `video-lite-second` | $0.075 | $0.38 for 5 s |
| Wan 2.2 Fast (text-to-video or image-to-video, 5 s) | 720p | `video-standard-second` | $0.20 | $1.00 for 5 s |
| Seedance 1 Pro Fast | 480p | `video-lite-second` | $0.075 | $0.38 for 5 s |
| Seedance 1 Pro Fast | 720p | `video-standard-second` | $0.20 | $1.00 for 5 s |
| Seedance 1 Pro Fast | 1080p | `video-pro-second` | $0.40 | $2.00 for 5 s |
| Seedance 1 Lite | 480p | `video-lite-second` | $0.075 | $0.38 for 5 s |
| Seedance 1 Lite | 720p | `video-standard-second` | $0.20 | $1.00 for 5 s |
| Seedance 1 Lite | 1080p | `video-pro-second` | $0.40 | $2.00 for 5 s |
| Seedance 1 Pro | 480p | `video-standard-second` | $0.20 | $1.00 for 5 s |
| Seedance 1 Pro | 720p | `video-pro-second` | $0.40 | $2.00 for 5 s |
| Seedance 1 Pro | 1080p | `video-premium-second` | $0.60 | $3.00 for 5 s |
| Wan 2.5 (text-to-video or image-to-video) | 480p | `video-standard-second` | $0.20 | $1.00 for 5 s |
| Wan 2.5 (text-to-video or image-to-video) | 720p | `video-pro-second` | $0.40 | $2.00 for 5 s |
| Wan 2.5 (text-to-video or image-to-video) | 1080p | `video-premium-second` | $0.60 | $3.00 for 5 s |
| Kling 2.5 Turbo Pro (1080p) | — | `video-pro-second` | $0.40 | $2.00 for 5 s |
| Kling 2.6 (with native audio) | — | `video-premium-second` | $0.60 | $3.00 for 5 s |
| Hailuo H3 (MiniMax, 768p or 2K) | 768p | `video-pro-second` | $0.40 | $2.00 for 5 s |
| Hailuo H3 (MiniMax, 768p or 2K) | 2k | `video-premium-second` | $0.60 | $3.00 for 5 s |
| Veo 3 Fast (Google, with audio) | — | `video-premium-second` | $0.60 | $2.40 for 4 s |
| Veo 3.1 Fast (Google, with audio) | — | `video-premium-second` | $0.60 | $2.40 for 4 s |
| Seedance 2.0 (with audio) | 480p | `video-pro-second` | $0.40 | $2.00 for 5 s |
| Seedance 2.0 (with audio) | 720p | `video-ultra-second` | $1.60 | $8.00 for 5 s |
| Kling 3.0 Pro (1080p) | — | `video-ultra-second` | $1.60 | $8.00 for 5 s |
| Veo 3 (Google, with audio) | — | `video-ultra-second` | $1.60 | $6.40 for 4 s |
| Veo 3.1 (Google, with audio) | — | `video-ultra-second` | $1.60 | $6.40 for 4 s |

- A failed video is **not charged**. If nothing could be produced, nothing is charged.
- The billed duration is the delivered one (never more than requested). Before each video the Actor checks your remaining budget covers the whole requested duration, otherwise it stops **without** generating.
- **Store discounts:** on Apify Silver, Gold, Platinum and Diamond plans, some options cost up to 5 % less. The Pricing tab of the Store page shows the exact price for each plan.

### 📥 Input

| Field | Type | Description |
|---|---|---|
| `prompt` | string | Describe the video: subject, action, camera movement, style, and sounds if audio is enabled. |
| `model` | string | Which AI model to use. Each option is billed at its own price, see the Pricing section of the README. Free Apify plan: 1 generation per month (one 2 s video) with Seedance 1 Pro Fast, 480p, 2 s, billed at the normal price ($0.15); other models and options are replaced by it. |
| `imageUrl` | string | Public URL of an image used as the first frame (image-to-video). Leave empty for text-to-video. |
| `aspectRatio` | string | Output aspect ratio. "auto" keeps the model default (for edits: the source image ratio). Not every model supports every ratio; an unsupported ratio stops the run before anything is charged. |
| `resolution` | string | Video resolution. Leave empty for the model default (the cheapest one). Higher resolutions cost more per second. |
| `duration` | integer | Length of the video. Supported values depend on the model (Wan 2.2 Fast: 5; Seedance 1 Pro Fast: 2 to 12; Seedance 1 Lite: 4 to 12; Seedance 1 Pro: 2 to 12; Wan 2.5: 5, 10; Kling 2.5 Turbo Pro: 5, 10; Kling 2.6: 5, 10; Hailuo H3: 4 to 15; Veo 3 Fast: 4, 6, 8; Veo 3.1 Fast: 4, 6, 8; Seedance 2.0: 4 to 15; Kling 3.0 Pro: 3 to 15; Veo 3: 4, 6, 8; Veo 3.1: 4, 6, 8). You pay per delivered second. |
| `numberOfVariants` | integer | How many separate videos to generate (1 to 4). Each successful one is billed; failures are free. |
| `includeFailedVariants` | boolean | Also write failed outputs (with the reason) to the dataset. Failed outputs are never billed. |

#### Example: Cheapest text-to-video (Seedance 1 Pro Fast, 480p, 5 s)

```json
{
  "prompt": "A paper boat drifting on a rainy street, cinematic",
  "model": "bytedance/seedance-1-pro-fast",
  "resolution": "480p",
  "duration": 5
}
```

#### Example: Image-to-video (Kling 2.5 Turbo Pro)

```json
{
  "prompt": "The camera slowly orbits the product",
  "imageUrl": "https://example.com/product.jpg",
  "model": "kwaivgi/kling-v2.5-turbo-pro",
  "duration": 5
}
```

#### Example: Veo 3 Fast with audio

```json
{
  "prompt": "A street musician plays violin at dusk, ambient city sound",
  "model": "google/veo-3-fast",
  "duration": 4,
  "resolution": "720p"
}
```

### 📤 Output

One dataset row per video:

```json
{
  "model": "bytedance/seedance-1-pro-fast",
  "mode": "text-to-video",
  "prompt": "A paper boat drifting on a rainy street, cinematic",
  "resolution": "480p",
  "index": 1,
  "videoUrl": "https://api.apify.com/v2/key-value-stores/<STORE_ID>/records/video-1",
  "durationSeconds": 5,
  "contentType": "video/mp4",
  "chargedEvent": "video-lite-second",
  "chargedUnits": 5,
  "success": true
}
```

Export the dataset as **JSON, CSV, Excel or HTML**, or read it from the API.

### 🧠 Models

- **Wan 2.2 Fast (text-to-video or image-to-video, 5 s)** (`wan-video/wan-2.2-fast`): optional start frame image, resolutions 480p / 720p, 5 s, 2 aspect ratios.
- **Seedance 1 Pro Fast** (`bytedance/seedance-1-pro-fast`): optional start frame image, resolutions 480p / 720p / 1080p, 2 to 12 s, 7 aspect ratios.
- **Seedance 1 Lite** (`bytedance/seedance-1-lite`): optional start frame image, resolutions 480p / 720p / 1080p, 4 to 12 s, 7 aspect ratios.
- **Seedance 1 Pro** (`bytedance/seedance-1-pro`): optional start frame image, resolutions 480p / 720p / 1080p, 2 to 12 s, 7 aspect ratios.
- **Wan 2.5 (text-to-video or image-to-video)** (`wan-video/wan-2.5`): optional start frame image, resolutions 480p / 720p / 1080p, 5, 10 s, 2 aspect ratios.
- **Kling 2.5 Turbo Pro (1080p)** (`kwaivgi/kling-v2.5-turbo-pro`): optional start frame image, 5, 10 s, 3 aspect ratios.
- **Kling 2.6 (with native audio)** (`kwaivgi/kling-v2.6`): optional start frame image, 5, 10 s, 3 aspect ratios.
- **Hailuo H3 (MiniMax, 768p or 2K)** (`minimax/h3`): optional start frame image, resolutions 768p / 2k, 4 to 15 s, 6 aspect ratios.
- **Veo 3 Fast (Google, with audio)** (`google/veo-3-fast`): optional start frame image, resolutions 720p / 1080p, 4, 6, 8 s, 2 aspect ratios.
- **Veo 3.1 Fast (Google, with audio)** (`google/veo-3.1-fast`): optional start frame image, resolutions 720p / 1080p, 4, 6, 8 s, 2 aspect ratios.
- **Seedance 2.0 (with audio)** (`bytedance/seedance-2.0`): optional start frame image, resolutions 480p / 720p, 4 to 15 s, 7 aspect ratios.
- **Kling 3.0 Pro (1080p)** (`kwaivgi/kling-v3-video`): optional start frame image, 3 to 15 s, 3 aspect ratios.
- **Veo 3 (Google, with audio)** (`google/veo-3`): optional start frame image, resolutions 720p / 1080p, 4, 6, 8 s, 2 aspect ratios.
- **Veo 3.1 (Google, with audio)** (`google/veo-3.1`): optional start frame image, resolutions 720p / 1080p, 4, 6, 8 s, 2 aspect ratios.

### 🛟 Errors and reliability

- Invalid options (unsupported ratio, duration or resolution for the chosen model) stop the run **before** anything is generated or charged, with a message listing the supported values.
- If the AI provider is temporarily unavailable, the run stops right away (no time burned on the remaining outputs), **nothing is charged**, and the dataset contains one row with `success: false`, `status: "service-unavailable"` and a clear message. Retry a bit later.
- Runs whose maximum cost per run is too low for one output stop at once with an explanatory row (`status: "budget-too-low"`), at no cost.
- Free Apify plan: once the 1 generation of the month is used, or when the daily free-plan capacity is reached, runs stop at once with `status: "free-plan-limit"`, at no cost. If free-plan runs are temporarily unavailable, the row says `status: "paid-plan-required"`, also at no cost.
- If one output is refused (safety filter, unreadable source image), the others still run.

### ❓ FAQ

**How long does a video take?**

From ~30 s (Wan 2.2, Seedance Pro Fast) to several minutes (Kling 2.6, Kling 3.0, Veo 3). Set the run timeout to at least 30 minutes for long videos.

**Do I need an API key (OpenAI, Google...)?**

No. Your Apify account is enough: no key, no subscription, no quota to manage.

**Can I use it on the free Apify plan?**

Yes. Works with a free Apify account too: 1 generation per month (one 2 s video) with Seedance 1 Pro Fast, 480p, 2 s, billed at the normal price ($0.15), from your free monthly Apify credit. On a free plan only Seedance 1 Pro Fast, 480p, 2 s is used, one output per run: if you pick another model or option, the run uses it instead and says so in the output row (`notice`). Once the monthly generation is used (or when the daily free-plan capacity is reached), runs stop at once with `status: "free-plan-limit"`, at no cost. Paid Apify plans get every model and option, without this limit.

**Am I charged when a generation fails?**

No. You pay only for videos that are delivered, per second of video. Invalid inputs are rejected before any generation starts.

**How do I cap my spending?**

Set **Maximum cost per run** in the run options. Before each video the Actor checks the remaining budget covers the **full requested duration**; if not, it stops without generating.

**How long are files kept?**

Outputs are copied to the run key-value store and follow your Apify data retention. Download them or copy them to your own storage for long-term use.

**Can I call it from code, n8n, Make, Zapier or an AI agent?**

Yes. Use the "Run Actor synchronously and get dataset items" API endpoint, the Apify clients, the integrations, or the Apify MCP server.

**Who owns the generated content?**

Use of generated content is subject to the terms of each model provider. Do not submit images you do not have the right to use.

### Related actors

- [Kling AI Video Generator](https://apify.com/pnda/kling-video-generator): Only need Kling? Kling 2.5 Turbo, 2.6 with audio and 3.0.
- [Seedance Video Generator](https://apify.com/pnda/seedance-video-generator): Only need Seedance? Cheap 480p to 1080p ByteDance Seedance videos.
- [Nano Banana Image Editor](https://apify.com/pnda/nano-banana-generator): Create the first frame for image to video by editing a photo.
- [AI Image Generator](https://apify.com/pnda/ai-image-generator): Generate the starting image with Flux, GPT Image 2 or Seedream.

### ▶️ Start now

Pick a model, type a prompt, click **Start**.

# Actor input Schema

## `prompt` (type: `string`):

Describe the video: subject, action, camera movement, style, and sounds if audio is enabled.

## `model` (type: `string`):

Which AI model to use. Each option is billed at its own price, see the Pricing section of the README. Free Apify plan: 1 generation per month (one 2 s video) with Seedance 1 Pro Fast, 480p, 2 s, billed at the normal price ($0.15); other models and options are replaced by it.

## `imageUrl` (type: `string`):

Public URL of an image used as the first frame (image-to-video). Leave empty for text-to-video.

## `aspectRatio` (type: `string`):

Output aspect ratio. "auto" keeps the model default (for edits: the source image ratio). Not every model supports every ratio; an unsupported ratio stops the run before anything is charged.

## `resolution` (type: `string`):

Video resolution. Leave empty for the model default (the cheapest one). Higher resolutions cost more per second.

## `duration` (type: `integer`):

Length of the video. Supported values depend on the model (Wan 2.2 Fast: 5; Seedance 1 Pro Fast: 2 to 12; Seedance 1 Lite: 4 to 12; Seedance 1 Pro: 2 to 12; Wan 2.5: 5, 10; Kling 2.5 Turbo Pro: 5, 10; Kling 2.6: 5, 10; Hailuo H3: 4 to 15; Veo 3 Fast: 4, 6, 8; Veo 3.1 Fast: 4, 6, 8; Seedance 2.0: 4 to 15; Kling 3.0 Pro: 3 to 15; Veo 3: 4, 6, 8; Veo 3.1: 4, 6, 8). You pay per delivered second.

## `numberOfVariants` (type: `integer`):

How many separate videos to generate (1 to 4). Each successful one is billed; failures are free.

## `includeFailedVariants` (type: `boolean`):

Also write failed outputs (with the reason) to the dataset. Failed outputs are never billed.

## Actor input object example

```json
{
  "prompt": "A paper boat drifting on a rainy street, cinematic",
  "model": "bytedance/seedance-1-pro-fast",
  "aspectRatio": "auto",
  "duration": 5,
  "numberOfVariants": 1,
  "includeFailedVariants": false
}
```

# Actor output Schema

## `dataset` (type: `string`):

All generated records (JSON, CSV, Excel).

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "prompt": "A paper boat drifting on a rainy street, cinematic",
    "model": "bytedance/seedance-1-pro-fast",
    "duration": 5,
    "numberOfVariants": 1
};

// Run the Actor and wait for it to finish
const run = await client.actor("pnda/ai-video-generator").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "prompt": "A paper boat drifting on a rainy street, cinematic",
    "model": "bytedance/seedance-1-pro-fast",
    "duration": 5,
    "numberOfVariants": 1,
}

# Run the Actor and wait for it to finish
run = client.actor("pnda/ai-video-generator").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "prompt": "A paper boat drifting on a rainy street, cinematic",
  "model": "bytedance/seedance-1-pro-fast",
  "duration": 5,
  "numberOfVariants": 1
}' |
apify call pnda/ai-video-generator --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pnda/ai-video-generator"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/5C5PN25S10b1Em3fd/builds/4g2ORKlCoy1HEAv1W/openapi.json
