# Veo 3.1 Video Generator with Audio (`superlewis/veo-3-1-video-generator-with-audio`) Actor

Generate 8-second videos with sound using Google Veo 3.1: Fast in 720p or 1080p, or the standard tier in 1080p. Text to video, or start from a first frame (and optional last frame). Pay per video on Apify, or use your own apimodels.app API key.

- **URL**: https://apify.com/superlewis/veo-3-1-video-generator-with-audio.md
- **Developed by:** [Lucas Lewis](https://apify.com/superlewis) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $110.00 / 1,000 fast 1080p videos

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## Veo 3.1 video generator with audio

Generate **8-second videos with sound** using Google's **Veo 3.1** from a list of prompts. Choose **Fast** in 720p or 1080p for quick clips at a lower price, or the **standard tier** in 1080p for the best detail and motion. Work from text alone, or give a first frame (and optionally a last frame) to animate an image. Each video comes back as a URL in a dataset.

The Actor runs on the [apimodels.app Veo 3.1 API](https://apimodels.app/docs/google-veo?utm_source=apify\&utm_medium=referral), which routes each request across several upstream channels and falls back automatically when one is slow or down.

### What it does

| | |
|---|---|
| Length | 8 seconds per video, with audio generated together with the picture |
| Tiers | Fast 720p, Fast 1080p, Standard 1080p |
| Aspect ratio | 16:9 or 9:16 |
| Inputs | Text, text plus a first frame, or text plus first and last frames |
| Videos per prompt | One. Add more prompts for more videos (up to 20 per run) |

### Pricing

Billed per delivered video. **Failed generations and moderation rejections are never charged.** First and last frames are included at no extra cost.

**Pay per video on Apify** (paid Apify plans, no API key needed):

| Tier | Per 8-second video | 10 videos |
|---|---|---|
| Fast, 720p | $0.10 | $1.00 |
| Fast, 1080p | $0.11 | $1.10 |
| Standard, 1080p | $1.25 | $12.50 |

**Or use your own apimodels.app API key.** Create a key at [apimodels.app](https://apimodels.app/console/api-keys?utm_source=apify\&utm_medium=referral) and paste it into the input. Videos are then billed to your apimodels.app balance at [apimodels.app prices](https://apimodels.app/models/veo-3.1?utm_source=apify\&utm_medium=referral), and nothing is charged on Apify. **On the Apify free plan an API key is required.**

### How to use

1. Enter one or more prompts. Each prompt makes one 8-second video.
2. Pick the tier and aspect ratio.
3. Optional: add a first frame URL to animate an image, and a last frame URL to control where the shot ends.
4. Optional: paste your apimodels.app API key.
5. Start the run. Videos appear in the **Output** tab as they finish.

### Input example

```json
{
  "prompts": ["The woman in the photo turns toward the camera and smiles, gentle wind in her hair, soft cafe chatter in the background"],
  "tier": "fast-1080p",
  "aspectRatio": "9:16",
  "firstFrameUrl": "https://example.com/portrait.jpg"
}
```

### Output

One dataset item per video:

```json
{
  "ok": true,
  "videoUrl": "https://r2.apimodels.app/videos/....mp4",
  "prompt": "The woman in the photo turns toward the camera and smiles, gentle wind in her hair, soft cafe chatter in the background",
  "model": "veo-3.1-fast-fhd",
  "tier": "fast-1080p",
  "aspectRatio": "9:16",
  "mode": "first-frame",
  "billing": "apify",
  "taskId": "..."
}
```

Failed jobs produce an item with `"ok": false` and an `error` message, and are not charged.

### Limits to know

- **Result links are kept for 30 days.** Download the files you want to keep.
- Every video is 8 seconds; the length cannot be changed.
- First and last frames must be public image URLs that load without login.
- The model applies content moderation, including on uploaded images of real people; rejected jobs fail without a charge.
- Success is not guaranteed on every request. A failed job is reported per prompt and the rest of the run continues.
- A video usually takes a few minutes. The standard tier takes longer than Fast.

### FAQ

**Is this the official Google API?** No. It is an independent service by apimodels.app that provides access to the Veo 3.1 model.

**Fast or standard?** Fast is the everyday choice for drafts, social clips and volume. The standard tier gives better detail, motion and prompt adherence for final shots.

**Does it make sound?** Yes. Audio, including ambient sound and short dialogue described in the prompt, is generated together with the picture.

**Something failed. Was I charged?** No. Only delivered videos are charged, on Apify or on your apimodels.app balance.

# Actor input Schema

## `prompts` (type: `array`):

One 8-second video per prompt (up to 20 per run). Describe the scene, the camera move and any sound or dialogue you want.

## `tier` (type: `string`):

Fast is quicker and costs less; the standard tier gives the best detail, motion and prompt adherence.

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

Landscape or vertical.

## `firstFrameUrl` (type: `string`):

A public image URL to start the video from. Leave empty for text to video.

## `lastFrameUrl` (type: `string`):

A public image URL to end on. Needs a first frame.

## `apiKey` (type: `string`):

Leave empty on a paid Apify plan to pay per video on Apify. Required on the Apify free plan: create a key at https://apimodels.app/console/api-keys and videos are billed to your apimodels.app balance instead (nothing is charged on Apify).

## Actor input object example

```json
{
  "prompts": [
    "Slow dolly-in on a street food stall at night, steam rising from a wok, the cook flips noodles, sizzling sounds and distant traffic"
  ],
  "tier": "fast-1080p",
  "aspectRatio": "16:9"
}
```

# Actor output Schema

## `results` (type: `string`):

One item per generated video with its URL (kept for 30 days) and settings, plus an error message for jobs that failed.

# 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 = {
    "prompts": [
        "Slow dolly-in on a street food stall at night, steam rising from a wok, the cook flips noodles, sizzling sounds and distant traffic"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("superlewis/veo-3-1-video-generator-with-audio").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 = { "prompts": ["Slow dolly-in on a street food stall at night, steam rising from a wok, the cook flips noodles, sizzling sounds and distant traffic"] }

# Run the Actor and wait for it to finish
run = client.actor("superlewis/veo-3-1-video-generator-with-audio").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 '{
  "prompts": [
    "Slow dolly-in on a street food stall at night, steam rising from a wok, the cook flips noodles, sizzling sounds and distant traffic"
  ]
}' |
apify call superlewis/veo-3-1-video-generator-with-audio --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,superlewis/veo-3-1-video-generator-with-audio"
        }
    }
}
```

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/6FJmyJnMF07cQZCCt/builds/7BARClKbjv5cTupdd/openapi.json
