Mage API · Video model
Kiwi API
Everyday video, zero setup
POST https://api.mage.space/v1/kiwi/generateAt a glance
The Kiwi API runs Kiwi through Mage at POST https://api.mage.space/v1/kiwi/generate. A request at the default settings costs 270 Gems (about $0.27), with no subscription. Kiwi takes no @handle mentions.
- VideoOutput
- 1Variant
- 270Gems per clip, default
- $0.27About, in USD
Overview
What the Kiwi API does
Simple, dependable video from text or a start frame, with nothing else to configure. 5 or 10 seconds at up to 1080p.
Everyday video from text or a single start frame, with nothing else to set up.
It accepts first_image as inputs.
Quick start
Call the Kiwi API
Set MAGE_API_KEY, submit to /kiwi/generate, and poll status_url until the request completes.
cURL
STATUS_URL=$(curl --request POST 'https://api.mage.space/v1/kiwi/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": "5",
"model_id": "kiwi"
}' | 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('kiwi', {
prompt: 'A slow push-in on a lighthouse at dusk, waves breaking below',
aspect_ratio: '16:9',
duration: '5',
model_id: 'kiwi',
});
console.log(request.result.url);Python
# pip install mage-space
from mage_space import Mage
mage = Mage() # reads MAGE_API_KEY
request = mage.run("kiwi", {
"prompt": "A slow push-in on a lighthouse at dusk, waves breaking below",
"aspect_ratio": "16:9",
"duration": "5",
"model_id": "kiwi",
})
print(request["result"]["url"])Models
Kiwi model_id values
Send model_id to pick a variant. A request without one runs the default.
| model_id | Name | Default |
|---|---|---|
| kiwi | Kiwi | Yes |
Options
Kiwi 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 | 480p, 720p, 1080p |
| duration | 5, 10 |
Inputs
Media inputs Kiwi 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. |
More video models
Other video generation APIs on Mage
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
Melon API
Anime in motion, with optional audio
MiniMax-H3 API
Fast open video with stereo sound
Plum API
Sound on every clip, up to 2K
FAQ
Frequently asked questions
How much does the Kiwi API cost?
What is the Kiwi API endpoint?
Which Kiwi models can I call?
Does Kiwi support reference images or characters?
Can I use Kiwi from Claude or ChatGPT?
How long are Kiwi results kept?
Start building with Mage
One account, one Gems balance, every model. Pay only for what you generate.