Mage API · Video model
Blueberry API
Pin the first and last frame
POST https://api.mage.space/v1/blueberry/generateAt a glance
The Blueberry API runs Blueberry and 1 other variant through Mage at POST https://api.mage.space/v1/blueberry/generate. A request at the default settings costs 360 Gems (about $0.36), with no subscription. Blueberry takes saved audio references by @handle in the prompt.
- VideoOutput
- 2Variants
- 360Gems per clip, default
- $0.36About, in USD
Overview
What the Blueberry API does
Set the first and last frame and watch it fill in the motion between, with audio. 2 to 15 seconds at 720p or 1080p.
A video model that fills the motion between a first and a last frame, with audio; Blueberry 2 is the current version.
It accepts first_image, last_image as inputs.
Quick start
Call the Blueberry API
Set MAGE_API_KEY, submit to /blueberry/generate, and poll status_url until the request completes.
cURL
STATUS_URL=$(curl --request POST 'https://api.mage.space/v1/blueberry/generate' \
--header "Authorization: Bearer $MAGE_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"prompt": "A slow push-in on a lighthouse at dusk, waves breaking below",
"aspect_ratio": "16:9",
"duration": "4",
"model_id": "blueberry-v2"
}' | jq -r '.status_url')
# Repeat until status is "completed"; result.url is the file
curl "$STATUS_URL" --header "Authorization: Bearer $MAGE_API_KEY"TypeScript
// npm install @mage-space/sdk
import Mage from '@mage-space/sdk';
const mage = new Mage(); // reads MAGE_API_KEY
const request = await mage.run('blueberry', {
prompt: 'A slow push-in on a lighthouse at dusk, waves breaking below',
aspect_ratio: '16:9',
duration: '4',
model_id: 'blueberry-v2',
});
console.log(request.result.url);Python
# pip install mage-space
from mage_space import Mage
mage = Mage() # reads MAGE_API_KEY
request = mage.run("blueberry", {
"prompt": "A slow push-in on a lighthouse at dusk, waves breaking below",
"aspect_ratio": "16:9",
"duration": "4",
"model_id": "blueberry-v2",
})
print(request["result"]["url"])Models
Blueberry model_id values
Send model_id to pick a variant. A request without one runs the default.
| model_id | Name | Default |
|---|---|---|
| blueberry | Blueberry | |
| blueberry-v2 | Blueberry | Yes |
Options
Blueberry parameters
Allowed values across all variants; a variant may offer fewer. The docs list the options per variant.
| Field | Values |
|---|---|
| aspect_ratio | 16:9, 4:3, 1:1, 3:4, 9:16 |
| resolution | 720p, 1080p |
| duration | 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 |
Inputs
Media inputs Blueberry accepts
Send each as an https URL, a data URL, or an upload of up to 100 MB.
| Field | Role |
|---|---|
| first_image | The first frame image. |
| last_image | The last frame image. |
Rules
What the Blueberry API enforces
- A last frame is supported on `blueberry-v2` only.
More video models
Other video generation APIs on Mage
Cherry API
Our flagship video family
Grok Video API
Grok Imagine, in motion
Kiwi API
Everyday video, zero setup
Lemon API
Every video feature, at a friendlier price
LTX Video API
Fast open-weights video for iteration
Magejutsu API
Recast any video, keeping its motion
FAQ
Frequently asked questions
How much does the Blueberry API cost?
What is the Blueberry API endpoint?
Which Blueberry models can I call?
Does Blueberry support reference images or characters?
Can I use Blueberry from Claude or ChatGPT?
How long are Blueberry results kept?
Start building with Mage
One account, one Gems balance, every model. Pay only for what you generate.