# Frameport Motion 1 API

> Frameport Motion 1 is our own video engine: cinematic clips with native sound, on or off at the same price, from a prompt, a first frame, or a first and a last frame.

Frameport Motion 1, a Frameport engine, called with one API key: from $0.02 per second of video, charged only when the clip succeeds.

- Model id: `fp-motion-1`
- Type: video
- Maker: Frameport
- Tasks: Text to video, Image to video, First + last frame
- Endpoint: `POST https://frameport.ai/v1/videos/generations`
- Page: https://frameport.ai/models/fp-motion-1
- Every model, as JSON: https://frameport.ai/models.json

## Pricing

| Resolution | Per second |
| --- | --- |
| 480p | $0.02 |
| 768p (default) | $0.06 |
| 1080p | $0.08 |
| 2K | $0.095 |

- Charged once, and only when the clip succeeds. A failed job costs $0.00: its hold is released in full.
- The exact price is known before the run: the API returns it as `reserved_usd` when it accepts the job.
- Billed on the seconds you ask for. Sound on or off, the same price.

## Options

| Option | Value |
| --- | --- |
| Tasks | Text to video, Image to video, First + last frame |
| Resolutions | 480p, 768p, 1080p, 2K |
| Durations | 5 s, 6 s, 7 s, 8 s, 9 s, 10 s, 11 s, 12 s, 13 s, 14 s, 15 s |
| Aspect ratios | 16:9, 9:16, 1:1, 4:3, 3:4 |
| Audio | On or off, same price |
| Input pictures | First frame, or first + last frame |
| Seed | Not supported |
| Negative prompt | Not supported |
| Private mode | Supported at 480p and 768p: nothing kept |
| Prompt | Up to 2,400 characters |
| Output | A video file, signed link valid about an hour |
| Billing unit | Per second of video |
| Model id | `fp-motion-1` |

## Frameport Motion 1 API parameters

`POST https://frameport.ai/v1/videos/generations` with a JSON body and your key as a Bearer token:

| Field | Values | Notes |
| --- | --- | --- |
| `model` (required) | "fp-motion-1" | Required. |
| `prompt` (required) | text, up to 2,400 characters | Required: the subject, the action, the camera and the sound. |
| `duration` | 5 to 15 seconds | 5 when left out. A value off the grid is refused before anything is held. |
| `resolution` | 480p, 768p, 1080p and 2K | 768p when left out. A second costs 480p $0.02, 768p $0.06, 1080p $0.08, 2K $0.095. |
| `aspect_ratio` | 16:9, 9:16, 1:1, 4:3, 3:4 | 16:9 when left out. |
| `audio` | true or false | true when left out. Sound costs nothing extra. |
| `reference_images` | 1 picture | The first frame: an https URL or a base64 data URI. |
| `end_image` | 1 picture | The last frame; needs a first frame in reference_images. |
| `private` | true or false | false when left out. true keeps nothing, not even the prompt; the clip is served for about 30 minutes. At 480p and 768p only. |

## Frameport Motion 1 request bodies, one per mode

### Text to video · $0.30

```json
{
  "model": "fp-motion-1",
  "prompt": "Two astronauts drift along the hull of a ship near a glowing nebula, slow orbit, muffled radio chatter",
  "duration": 5,
  "resolution": "768p",
  "aspect_ratio": "16:9",
  "audio": true
}
```

### Image to video · $0.30

```json
{
  "model": "fp-motion-1",
  "prompt": "The scene in the picture comes to life: slow push-in, leaves moving in the wind",
  "duration": 5,
  "resolution": "768p",
  "aspect_ratio": "16:9",
  "audio": true,
  "reference_images": [
    "https://example.com/first-frame.jpg"
  ]
}
```

### First + last frame · $0.30

```json
{
  "model": "fp-motion-1",
  "prompt": "The sketch fills with colour until it becomes the finished painting",
  "duration": 5,
  "resolution": "768p",
  "aspect_ratio": "16:9",
  "audio": true,
  "reference_images": [
    "https://example.com/sketch.jpg"
  ],
  "end_image": "https://example.com/painting.jpg"
}
```

## Submit, poll, download

### cURL

```bash
# 1. Submit: the price is held on your balance (reserved_usd)
curl https://frameport.ai/v1/videos/generations \
  -H "Authorization: Bearer $FRAMEPORT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "fp-motion-1",
    "prompt": "Two astronauts drift along the hull of a ship near a glowing nebula, slow orbit, muffled radio chatter",
    "duration": 5,
    "resolution": "768p",
    "aspect_ratio": "16:9",
    "audio": true
  }'

# 2. Poll with the id it returns, until "succeeded" or "failed"
curl https://frameport.ai/v1/videos/generations/$GENERATION_ID \
  -H "Authorization: Bearer $FRAMEPORT_API_KEY"

# 3. Download outputs[0].url once it has succeeded (a signed link, no key needed)
curl -L "$OUTPUT_URL" -o out.mp4
```

### Python

```python
import os, time
import requests

API = "https://frameport.ai/v1"
headers = {"Authorization": f"Bearer {os.environ['FRAMEPORT_API_KEY']}"}

# 1. Submit: the price is held on your balance (reserved_usd)
gen = requests.post(f"{API}/videos/generations", headers=headers, json={
    "model": "fp-motion-1",
    "prompt": "Two astronauts drift along the hull of a ship near a glowing nebula, slow orbit, muffled radio chatter",
    "duration": 5,
    "resolution": "768p",
    "aspect_ratio": "16:9",
    "audio": True,
}).json()
if gen.get("error"):
    raise SystemExit(gen["error"]["message"])

# 2. Poll until it succeeds or fails
while gen["status"] in ("queued", "running"):
    time.sleep(3)
    gen = requests.get(f"{API}/videos/generations/{gen['id']}", headers=headers).json()

# A failed generation costs nothing: the hold is released
if gen["status"] == "failed":
    raise SystemExit(gen["error"]["message"])

# 3. Download the file (a signed link, no key needed)
file = requests.get(gen["outputs"][0]["url"])
open("out.mp4", "wb").write(file.content)
print("saved out.mp4", gen["cost_usd"])
```

### JavaScript

```js
import { writeFile } from 'node:fs/promises'

const API = 'https://frameport.ai/v1'
const headers = {
  'Authorization': `Bearer ${process.env.FRAMEPORT_API_KEY}`,
  'Content-Type': 'application/json',
}

// 1. Submit: the price is held on your balance (reserved_usd)
let gen = await fetch(`${API}/videos/generations`, {
  method: 'POST',
  headers,
  body: JSON.stringify({
    model: 'fp-motion-1',
    prompt: 'Two astronauts drift along the hull of a ship near a glowing nebula, slow orbit, muffled radio chatter',
    duration: 5,
    resolution: '768p',
    aspect_ratio: '16:9',
    audio: true,
  }),
}).then(res => res.json())
if (gen.error) throw new Error(gen.error.message)

// 2. Poll until it succeeds or fails
while (gen.status === 'queued' || gen.status === 'running') {
  await new Promise(resolve => setTimeout(resolve, 3000))
  gen = await fetch(`${API}/videos/generations/${gen.id}`, { headers }).then(res => res.json())
}
// A failed generation costs nothing: the hold is released
if (gen.status === 'failed') throw new Error(gen.error.message)

// 3. Download the file (a signed link, no key needed)
const file = await fetch(gen.outputs[0].url)
await writeFile('out.mp4', Buffer.from(await file.arrayBuffer()))
console.log('saved out.mp4', gen.cost_usd)
```

## What Frameport Motion 1 is good at

- Cinematic clips with sound made with the picture, on or off at the same price.
- A first frame to animate a still, or a first and a last frame to pin the shot.
- Billed per second at every resolution it renders: 480p, 768p, 1080p and 2K.

### When another model fits better

- [Wan 3.0](https://frameport.ai/models/wan-3.md) (`wan-3`): Longer clips: up to 30 seconds, from $0.06 / s.
- [Seedance 2.0](https://frameport.ai/models/seedance-2-0.md) (`seedance-2-0`): Sharper output: up to 4K, from $0.08 / s.

## How to prompt Frameport Motion 1

1. Write one flowing paragraph: who is in frame, what moves, where the camera goes, the light and the mood.
2. One action per clip: two beats in five seconds read as a glitch.
3. With sound on, describe what the scene sounds like.

Sample prompt: “Two astronauts drift along the hull of a ship near a glowing nebula, slow orbit, muffled radio chatter”

## About the Frameport Motion 1 API

### How much does the Frameport Motion 1 API cost?

Frameport Motion 1 is billed per second of video: $0.02 at 480p, $0.06 at 768p, $0.08 at 1080p and $0.095 at 2K. A 5-second clip at 768p costs $0.30. You are charged once, only when the clip succeeds.

### How do I call Frameport Motion 1 from code?

Send POST /v1/videos/generations with "model": "fp-motion-1" and a prompt, your API key as a Bearer token. The answer is a generation with an id: poll GET /v1/videos/generations/{id} until its status is succeeded, then download outputs[0].url.

### What happens if a Frameport Motion 1 generation fails?

Nothing is charged. The price is held on your balance when the job starts and released in full if it fails: cost_usd stays at 0.

### How long can a Frameport Motion 1 clip be?

5 to 15 seconds. Set duration in seconds: a length off the grid is refused before anything is held.

### Can Frameport Motion 1 start from an image?

Yes: send the picture as the first item of reference_images and it becomes the first frame. Add end_image and the clip lands on that last frame.

### Do I need a subscription?

No. You top up a prepaid balance in dollars, from $10, and it never expires. Every model runs on the same balance and the same API key.

## Compare with similar models

- [Veo 3.1 Lite](https://frameport.ai/models/veo-3-1-lite.md) (`veo-3-1-lite`): Google, from $0.036 per second of video
- [Seedance 2.0 Mini](https://frameport.ai/models/seedance-2-0-mini.md) (`seedance-2-0-mini`): ByteDance, from $0.041 per second of video
- [Hailuo 3 Max](https://frameport.ai/models/hailuo-3-max.md) (`hailuo-3-max`): MiniMax, from $0.06 per second of video
- [Wan 3.0](https://frameport.ai/models/wan-3.md) (`wan-3`): Alibaba, from $0.06 per second of video
- [Seedance 2.0 Fast](https://frameport.ai/models/seedance-2-0-fast.md) (`seedance-2-0-fast`): ByteDance, from $0.063 per second of video
- [Seedance 2.0](https://frameport.ai/models/seedance-2-0.md) (`seedance-2-0`): ByteDance, from $0.08 per second of video
