Mage API · Video model
Raspberry API
Characters brought to life from a first frame
POST https://api.mage.space/v1/raspberry/generateAt a glance
The Raspberry API runs Raspberry through Mage at POST https://api.mage.space/v1/raspberry/generate. A request at the default settings costs 360 Gems (about $0.36), with no subscription. Raspberry takes saved characters, references by @handle in the prompt.
- VideoOutput
- 1Variant
- 360Gems per clip, default
- $0.36About, in USD
Overview
What the Raspberry API does
Character video from a start frame plus up to 5 references or Characters, with Voices and audio. 2 to 15 seconds at 720p or 1080p.
A character video model from a first frame and reference images, with Voices and audio.
It accepts first_image, image, additional_images as inputs.
Quick start
Call the Raspberry API
Set MAGE_API_KEY, submit to /raspberry/generate, and poll status_url until the request completes.
cURL
STATUS_URL=$(curl --request POST 'https://api.mage.space/v1/raspberry/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": "raspberry"
}' | 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('raspberry', {
prompt: 'A slow push-in on a lighthouse at dusk, waves breaking below',
aspect_ratio: '16:9',
duration: '4',
model_id: 'raspberry',
});
console.log(request.result.url);Python
# pip install mage-space
from mage_space import Mage
mage = Mage() # reads MAGE_API_KEY
request = mage.run("raspberry", {
"prompt": "A slow push-in on a lighthouse at dusk, waves breaking below",
"aspect_ratio": "16:9",
"duration": "4",
"model_id": "raspberry",
})
print(request["result"]["url"])Models
Raspberry model_id values
Send model_id to pick a variant. A request without one runs the default.
| model_id | Name | Default |
|---|---|---|
| raspberry | Raspberry | Yes |
Options
Raspberry 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 Raspberry 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. |
| image | The reference image. |
| additional_images | Additional reference images. |
More video models
Other video generation APIs on Mage
Seedance API
Seedance, with a strict filter
Wan 3.0 API
Wan 3.0, with a strict filter
Wan Video v2.2 API
Open-weights video with a Lightning variant
Berry API
Video that stays true to your references
Blueberry API
Pin the first and last frame
Cherry API
Our flagship video family
FAQ
Frequently asked questions
How much does the Raspberry API cost?
What is the Raspberry API endpoint?
Which Raspberry models can I call?
Does Raspberry support reference images or characters?
Can I use Raspberry from Claude or ChatGPT?
How long are Raspberry results kept?
Start building with Mage
One account, one Gems balance, every model. Pay only for what you generate.