Mage API · 视频模型

Blueberry API

锁定首帧和尾帧

获取 API 密钥在试玩区体验 Blueberry
POST https://api.mage.space/v1/blueberry/generate

一览

Blueberry API 通过 Mage 运行 Blueberry 及另外 1 个变体,端点为 POST https://api.mage.space/v1/blueberry/generate。使用默认设置的一次请求需要 360 Gems(约 0.36 美元),无需订阅。Blueberry 可在提示词中通过 @handle 调用已保存的音频参考。

概览

Blueberry API 能做什么

设定首帧和尾帧,看它自动补全中间的动态,还能生成音频。时长 2 到 15 秒,分辨率 720p 或 1080p。

一款能在首帧和尾帧之间补全动态并生成音频的视频模型;Blueberry 2 是当前版本。

支持的输入:first_image、last_image。

快速开始

调用 Blueberry API

设置 MAGE_API_KEY,向 /blueberry/generate 提交请求,然后轮询 status_url,直到请求完成。

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"])

模型

Blueberry 的 model_id 取值

传入 model_id 即可选择变体。未指定时将使用默认变体。

model_id名称默认
blueberryBlueberry
blueberry-v2Blueberry是

选项

Blueberry 参数

以下为所有变体允许的取值,个别变体可选项可能更少。文档中列出了各变体的选项。

字段取值
aspect_ratio16:9, 4:3, 1:1, 3:4, 9:16
resolution720p, 1080p
duration2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15

输入

Blueberry 支持的媒体输入

可通过 https 链接、data URL 或不超过 100 MB 的上传文件发送。

字段用途
first_image首帧图片。
last_image尾帧图片。

规则

Blueberry API 的限制规则

更多视频模型

Mage 上的其他视频生成 API

视频 · 618 Gems 起

Cherry API

我们的旗舰视频系列

视频 · 375 Gems 起

Grok Video API

动起来的 Grok Imagine

视频 · 270 Gems 起

Kiwi API

日常视频,无需任何设置

视频 · 245 Gems 起

Lemon API

视频功能一应俱全,价格更亲民

视频 · 20 Gems 起

LTX Video API

开放权重的快速视频模型,适合反复迭代

视频 · 147 Gems 起

Melon API

动起来的动漫,可选配音频

常见问题

常见问题解答

Blueberry API 的价格是多少?

使用默认设置(Blueberry)的一次 Blueberry 请求需要 360 Gems,约 0.36 美元。分辨率、时长和变体不同,价格也会变化,具体扣费以返回结果为准。生成失败会退还 Gems;因违反 Mage 内容政策而被拦截的请求不予退还。

Blueberry API 的端点是什么?

向 https://api.mage.space/v1/blueberry/generate 发送 POST 请求,并在 Authorization: Bearer 请求头中携带你的 Mage API 密钥。响应中包含 status_url,用于轮询获取结果。

可以调用哪些 Blueberry 模型?

blueberry、blueberry-v2。默认使用 Blueberry。

Blueberry 支持参考图片或角色吗?

Blueberry 支持 first_image、last_image。在提示词中通过 @handle 即可调用 Blueberry 已保存的音频参考。

可以在 Claude 或 ChatGPT 中使用 Blueberry 吗?

可以。将 Mage MCP 服务器连接到 Claude、ChatGPT、Claude Code、Grok 或 Cursor,直接说出 Blueberry 的名字即可。你的助手会用 get_model 读取它的选项,并在生成前告知价格。

Blueberry 的生成结果会保存多久?

结果和输入内容会保存 30 天。想长期保留的内容,请下载到你自己的存储空间。

用 Mage 开始开发

一个账号,一份 Gems 余额,畅用所有模型。按生成量付费,用多少付多少。

获取 API 密钥在试玩区体验 Blueberry

相关内容