Sakuranbo AI · 画像
最大 2K 解像度の高品質な画像生成と、参照画像にもとづく画像編集。
- テキストから画像
- 画像編集
- 1K / 1.5K / 2K
- アスペクト比 9 種
2〜30 秒、1080p・2K・4K の音声付き動画をテキストや画像から生成。
Sakuranbo AI ·
ダッシュボードの Playground が開きます。
Sakuranbo AI はプレビュー中です。
Cherry 1.0 Pro は、テキストのプロンプト、最初と最後のキーフレーム、または最大 10 枚の参照画像から動画を生成します。尺(2〜30 秒)、解像度、アスペクト比を指定でき、音声は既定で生成されます。価格は解像度ごとの出力動画 1 秒あたりです。
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 | いいえ | 最初のフレームに使う画像(image-to-video)。 | ||
last_frame | url | いいえ | 最後のフレームに使う画像。first_frame と組み合わせて使います。 | ||
reference_images | url[] | いいえ | 最大 10 件 | 最大 10 枚の参照画像。キーフレームとは併用できません。 | |
duration | integer | いいえ | 5 | 2〜30 | 動画の長さ(秒)。秒単位で課金されます。 |
resolution | enum | いいえ | 1080p | 次のいずれか: 1080p, 2k, 4k | 出力解像度。1 秒あたりの価格が決まります。 |
aspect_ratio | enum | いいえ | adaptive | 次のいずれか: adaptive, 16:9, 9:16, 1:1, 4:3, 3:4 | 出力動画のアスペクト比。 |
audio | boolean | いいえ | true | 音声トラックを生成します。音声の有無で価格は変わりません。 |
価格は USD 表示で、当社のマージンを含みます。失敗・キャンセル・時間切れ・コンテンツポリシーによる拒否の実行は課金されません。チャットでは、モデルが出力(推論の出力を含みます)を生成し始めたあとは、ストリームが途切れても、接続を閉じても、生成した出力が課金されます。
| 項目 | 単位 | 条件 | 価格 |
|---|---|---|---|
| 出力動画 | 1 秒あたり | resolution: 1080p | $0.225 |
| 出力動画 | 1 秒あたり | resolution: 2k | $0.25 |
| 出力動画 | 1 秒あたり | resolution: 4k | $0.2875 |
計算例は表示価格を使っています。最終的な請求額は、実際の使用量からサーバーが計算します。
| 例 | 合計 |
|---|---|
| 1080p の動画 5 秒 | $1.125 |
| 2K の動画 5 秒 | $1.25 |
| 4K の動画 5 秒 | $1.4375 |
| 1080p の動画 10 秒 | $2.25 |
| 1080p の動画 30 秒 | $6.75 |
既定設定の 1 回: $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": "最初のフレームに使う画像(image-to-video)。"
},
"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": "出力解像度。1 秒あたりの価格が決まります。"
},
"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"
]
}