Sakuranbo AI · 图像
最高 2K 分辨率的高保真文生图,以及基于参考图的图像编辑。
- 文生图
- 图像编辑
- 1K / 1.5K / 2K
- 9 种宽高比
每张起 $0.045
默认设置一次运行:$0.09(1 张,2K)
根据文本或图像生成 2 至 30 秒、1080p、2K 或 4K 的带音频视频。
Sakuranbo AI ·
将在控制台中打开 Playground。
Sakuranbo AI 目前处于预览阶段。
Cherry 1.0 Pro 可根据文本提示词、首尾关键帧或最多 10 张参考图生成视频。可设置时长(2–30 秒)、分辨率和宽高比,默认生成音频。按分辨率以输出视频每秒计价。
sakuranbo/cherry-1.0-pro使用模型 ID sakuranbo/cherry-1.0-pro 调用该模型。
POST /v1/estimate 接收 JSON 请求体({ model, input }),在运行前返回该输入的价格。该端点无需 API 密钥。
curl -X POST "https://api.sakuranbo.ai/v1/estimate" \
-H "Content-Type: application/json" \
-d '{
"model": "sakuranbo/cherry-1.0-pro",
"input": {
"prompt": "Aerial shot gliding over a misty mountain lake at sunrise, gentle wind and birdsong",
"duration": 5,
"resolution": "1080p",
"aspect_ratio": "16:9"
}
}'const response = await fetch("https://api.sakuranbo.ai/v1/estimate", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
"model": "sakuranbo/cherry-1.0-pro",
"input": {
"prompt": "Aerial shot gliding over a misty mountain lake at sunrise, gentle wind and birdsong",
"duration": 5,
"resolution": "1080p",
"aspect_ratio": "16:9"
}
}),
});
const data = await response.json();
console.log(data);import requests
response = requests.post(
"https://api.sakuranbo.ai/v1/estimate",
json={
"model": "sakuranbo/cherry-1.0-pro",
"input": {
"prompt": "Aerial shot gliding over a misty mountain lake at sunrise, gentle wind and birdsong",
"duration": 5,
"resolution": "1080p",
"aspect_ratio": "16:9",
},
},
)
print(response.json())向 /v1/videos 发送生成请求。下方请求使用了该模型在目录中的示例输入。
列出和获取模型以及费用预估无需 API 密钥。生成请求需要 API 密钥:Authorization: Bearer YOUR_API_KEY
curl -X POST "https://api.sakuranbo.ai/v1/videos" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $SAKURANBO_API_KEY" \
-d '{
"model": "sakuranbo/cherry-1.0-pro",
"prompt": "Aerial shot gliding over a misty mountain lake at sunrise, gentle wind and birdsong",
"duration": 5,
"resolution": "1080p",
"aspect_ratio": "16:9"
}'const response = await fetch("https://api.sakuranbo.ai/v1/videos", {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${process.env.SAKURANBO_API_KEY}`,
},
body: JSON.stringify({
"model": "sakuranbo/cherry-1.0-pro",
"prompt": "Aerial shot gliding over a misty mountain lake at sunrise, gentle wind and birdsong",
"duration": 5,
"resolution": "1080p",
"aspect_ratio": "16:9"
}),
});
const data = await response.json();
console.log(data);import os
import requests
response = requests.post(
"https://api.sakuranbo.ai/v1/videos",
headers={
"Authorization": f"Bearer {os.environ['SAKURANBO_API_KEY']}",
},
json={
"model": "sakuranbo/cherry-1.0-pro",
"prompt": "Aerial shot gliding over a misty mountain lake at sunrise, gentle wind and birdsong",
"duration": 5,
"resolution": "1080p",
"aspect_ratio": "16:9",
},
)
print(response.json())该模型的请求字段。
| 名称 | 类型 | 必填 | 默认值 | 约束 | 说明 |
|---|---|---|---|---|---|
prompt | string | 是 | 最多 20,000 个字符 | 场景、动作和音频的描述。 | |
first_frame | url | 否 | 用作首帧的图像(图生视频)。 | ||
last_frame | url | 否 | 用作尾帧的图像,需与 first_frame 一起使用。 | ||
reference_images | url[] | 否 | 最多 10 项 | 最多 10 张参考图,不能与关键帧同时使用。 | |
duration | integer | 否 | 5 | 2 至 30 | 视频时长(秒),按秒计费。 |
resolution | enum | 否 | 1080p | 可选值:1080p, 2k, 4k | 输出分辨率,决定每秒价格。 |
aspect_ratio | enum | 否 | adaptive | 可选值:adaptive, 16:9, 9:16, 1:1, 4:3, 3:4 | 输出视频的宽高比。 |
audio | boolean | 否 | true | 生成音轨。有无音频价格相同。 |
价格以 USD 计价,已包含我们的加价。失败、已取消、已过期以及被内容政策拒绝的运行不会计费。对于对话,模型开始生成输出(包括推理输出)后,即使流中断或连接被关闭,也会对已生成的输出计费。
| 项目 | 单位 | 条件 | 价格 |
|---|---|---|---|
| 输出视频 | 每秒 | resolution: 1080p | $0.225 |
| 输出视频 | 每秒 | resolution: 2k | $0.25 |
| 输出视频 | 每秒 | resolution: 4k | $0.2875 |
示例按标价计算。最终费用由服务器根据实际用量计算。
| 示例 | 合计 |
|---|---|
| 5 秒 1080p 视频 | $1.125 |
| 5 秒 2K 视频 | $1.25 |
| 5 秒 4K 视频 | $1.4375 |
| 10 秒 1080p 视频 | $2.25 |
| 30 秒 1080p 视频 | $6.75 |
默认设置一次运行:$1.125(5 秒,1080p)
输入字段的 JSON Schema,由目录生成。
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"prompt": {
"type": "string",
"maxLength": 20000,
"description": "场景、动作和音频的描述。"
},
"first_frame": {
"type": "string",
"format": "uri",
"description": "用作首帧的图像(图生视频)。"
},
"last_frame": {
"type": "string",
"format": "uri",
"description": "用作尾帧的图像,需与 first_frame 一起使用。"
},
"reference_images": {
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"maxItems": 10,
"description": "最多 10 张参考图,不能与关键帧同时使用。"
},
"duration": {
"type": "integer",
"minimum": 2,
"maximum": 30,
"default": 5,
"description": "视频时长(秒),按秒计费。"
},
"resolution": {
"type": "string",
"enum": [
"1080p",
"2k",
"4k"
],
"default": "1080p",
"description": "输出分辨率,决定每秒价格。"
},
"aspect_ratio": {
"type": "string",
"enum": [
"adaptive",
"16:9",
"9:16",
"1:1",
"4:3",
"3:4"
],
"default": "adaptive",
"description": "输出视频的宽高比。"
},
"audio": {
"type": "boolean",
"default": true,
"description": "生成音轨。有无音频价格相同。"
}
},
"required": [
"prompt"
]
}