# Veo 3.1 Fast API

URL: https://useflowapi.com/models/google/veo-3-1-fast

Veo 3.1 Fast costs $0.025 per second on FlowAPI (1080p·audio), so a 5-second clip costs $0.125; you call it with model id `google/veo-3.1-fast` through one REST endpoint or the MCP server, and failed jobs are refunded in full.

## Prices

| Spec | Price (USD) | Unit | $0.5 trial |
| --- | --- | --- | --- |
| 1080p·audio | $0.025 | per second | Yes |

## Parameters

| Parameter | Values | Default | Note |
| --- | --- | --- | --- |
| `resolution` | 1080p | 1080p | Selects the price row. |
| `generate_audio` | true | true | Selects the price row. |
| `duration` | 1–60 (integer seconds) | required | Price × seconds. |

Input modes (`input.type`): `text`, `image`, `reference`. See [video generation](/docs/video-generation) for references and roles.

## Code

**cURL**

```bash
curl https://useflowapi.com/v1/generations \
  -H "Authorization: Bearer $FLOWAPI_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: veo-3-1-fast-1" \
  -d '{"model":"google/veo-3.1-fast","input":{"type":"text","prompt":"A paper boat drifting down a stream"},"parameters":{"resolution":"1080p","generate_audio":true,"duration":5}}'
```

**TypeScript (fetch, Node 18+)**

```ts
const res = await fetch('https://useflowapi.com/v1/generations', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.FLOWAPI_KEY}`,
    'Content-Type': 'application/json',
    'Idempotency-Key': 'veo-3-1-fast-1',
  },
  body: JSON.stringify({
    "model": "google/veo-3.1-fast",
    "input": {
      "type": "text",
      "prompt": "A paper boat drifting down a stream"
    },
    "parameters": {
      "resolution": "1080p",
      "generate_audio": true,
      "duration": 5
    }
  }),
});
const job = await res.json();
console.log(job.id, job.status, job.price.amount);
```

**Python (requests)**

```python
import os, requests

res = requests.post(
    "https://useflowapi.com/v1/generations",
    headers={
        "Authorization": f"Bearer {os.environ['FLOWAPI_KEY']}",
        "Idempotency-Key": "veo-3-1-fast-1",
    },
    json={
      "model": "google/veo-3.1-fast",
      "input": {
        "type": "text",
        "prompt": "A paper boat drifting down a stream"
      },
      "parameters": {
        "resolution": "1080p",
        "generate_audio": True,
        "duration": 5
      }
    },
)
job = res.json()
print(job["id"], job["status"], job["price"]["amount"])
```

Check the price first with `POST /v1/quotes` (same body, never charges). Then poll `GET /v1/jobs/{id}` ([async jobs](/docs/jobs)).

## Use it from an AI agent

Add the [FlowAPI MCP server](/mcp) to Claude, Cursor or any MCP client and ask for a video with `google/veo-3.1-fast`.

## About this page

Veo 3.1 Fast is made by Google. FlowAPI is an independent API service and is not affiliated with or endorsed by Google. Prices on this page are read from FlowAPI's live price table.

## FAQ

**How much does the Veo 3.1 Fast API cost?**

Veo 3.1 Fast costs $0.025 per second at 1080p·audio on FlowAPI, so a 5-second clip costs $0.125.

**Is FlowAPI the official Veo 3.1 Fast API?**

No. FlowAPI is an independent API service, not affiliated with Google, that runs Veo 3.1 Fast for you at a flat price.

**Are failed Veo 3.1 Fast jobs refunded?**

Yes. A failed, timed-out or cancelled job is refunded in full automatically.

**How long can a Veo 3.1 Fast video be?**

A request sets parameters.duration from 1 to 60 seconds, the price is per second, and lengths the model rejects are refused before any charge.
