Sakuranbo AI · 動画
2〜30 秒、1080p・2K・4K の音声付き動画をテキストや画像から生成。
- テキストから動画
- 画像から動画
- 参照画像から動画
- 2〜30 秒
- 1080p / 2K / 4K
- アスペクト比 6 種
- 音声付き
最大 2K 解像度の高品質な画像生成と、参照画像にもとづく画像編集。
Sakuranbo AI ·
ダッシュボードの Playground が開きます。
Sakuranbo AI はプレビュー中です。
CherryImage 1.0 Pro は、最大 5,000 文字のプロンプトから画像を生成し、1〜10 枚の参照画像を使って画像を編集します。出力は 1K・1.5K・2K とアスペクト比を選べ、価格は解像度ごとの 1 枚単価です。
sakuranbo/cherryimage-1.0-proモデル ID sakuranbo/cherryimage-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/cherryimage-1.0-pro",
"input": {
"prompt": "A matte ceramic coffee mug on a walnut desk, soft morning light, shallow depth of field",
"resolution": "2k",
"aspect_ratio": "4:3"
}
}'const response = await fetch("https://api.sakuranbo.ai/v1/estimate", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
"model": "sakuranbo/cherryimage-1.0-pro",
"input": {
"prompt": "A matte ceramic coffee mug on a walnut desk, soft morning light, shallow depth of field",
"resolution": "2k",
"aspect_ratio": "4:3"
}
}),
});
const data = await response.json();
console.log(data);import requests
response = requests.post(
"https://api.sakuranbo.ai/v1/estimate",
json={
"model": "sakuranbo/cherryimage-1.0-pro",
"input": {
"prompt": "A matte ceramic coffee mug on a walnut desk, soft morning light, shallow depth of field",
"resolution": "2k",
"aspect_ratio": "4:3",
},
},
)
print(response.json())生成のリクエストは /v1/images/generations に送ります。下のリクエストは、このモデルのカタログにある入力例を使っています。
モデルの一覧・取得と見積は API キーが不要です。生成のリクエストには API キーが必要です: Authorization: Bearer YOUR_API_KEY
curl -X POST "https://api.sakuranbo.ai/v1/images/generations" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $SAKURANBO_API_KEY" \
-d '{
"model": "sakuranbo/cherryimage-1.0-pro",
"prompt": "A matte ceramic coffee mug on a walnut desk, soft morning light, shallow depth of field",
"resolution": "2k",
"aspect_ratio": "4:3"
}'const response = await fetch("https://api.sakuranbo.ai/v1/images/generations", {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${process.env.SAKURANBO_API_KEY}`,
},
body: JSON.stringify({
"model": "sakuranbo/cherryimage-1.0-pro",
"prompt": "A matte ceramic coffee mug on a walnut desk, soft morning light, shallow depth of field",
"resolution": "2k",
"aspect_ratio": "4:3"
}),
});
const data = await response.json();
console.log(data);import os
import requests
response = requests.post(
"https://api.sakuranbo.ai/v1/images/generations",
headers={
"Authorization": f"Bearer {os.environ['SAKURANBO_API_KEY']}",
},
json={
"model": "sakuranbo/cherryimage-1.0-pro",
"prompt": "A matte ceramic coffee mug on a walnut desk, soft morning light, shallow depth of field",
"resolution": "2k",
"aspect_ratio": "4:3",
},
)
print(response.json())このモデルのリクエストフィールドです。
| 名前 | 型 | 必須 | 既定値 | 制約 | 説明 |
|---|---|---|---|---|---|
prompt | string | はい | 最大 5,000 文字 | 生成する画像、または適用する編集の説明。 | |
images | url[] | いいえ | 最大 10 件 | 編集に使う参照画像(1〜10 枚)。/v1/images/edits では必須です。 | |
resolution | enum | いいえ | 2k | 次のいずれか: 1k, 1.5k, 2k | 出力解像度。1 枚あたりの価格が決まります。 |
n | integer | いいえ | 1 | 1〜100 | 生成する画像の枚数(1〜100)。価格は 1 枚あたりの価格にこの値を掛けたものです。 |
aspect_ratio | enum | いいえ | auto | 次のいずれか: auto, 1:1, 4:3, 3:4, 16:9, 9:16, 3:2, 2:3, 21:9 | 出力画像のアスペクト比。 |
output_format | enum | いいえ | jpeg | 次のいずれか: jpeg, png | 画像のファイル形式。 |
価格は USD 表示で、当社のマージンを含みます。失敗・キャンセル・時間切れ・コンテンツポリシーによる拒否の実行は課金されません。チャットでは、モデルが出力(推論の出力を含みます)を生成し始めたあとは、ストリームが途切れても、接続を閉じても、生成した出力が課金されます。
| 項目 | 単位 | 条件 | 価格 |
|---|---|---|---|
| 出力画像 | 1 枚あたり | resolution: 1k | $0.045 |
| 出力画像 | 1 枚あたり | resolution: 1.5k | $0.05 |
| 出力画像 | 1 枚あたり | resolution: 2k | $0.09 |
計算例は表示価格を使っています。最終的な請求額は、実際の使用量からサーバーが計算します。
| 例 | 合計 |
|---|---|
| 1K の画像 1 枚 | $0.045 |
| 1.5K の画像 1 枚 | $0.05 |
| 2K の画像 1 枚 | $0.09 |
| 2K の画像 100 枚 | $9.00 |
既定設定の 1 回: $0.09(1 枚、2K)
入力フィールドの JSON Schema です。カタログから生成しています。
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"prompt": {
"type": "string",
"maxLength": 5000,
"description": "生成する画像、または適用する編集の説明。"
},
"images": {
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"maxItems": 10,
"description": "編集に使う参照画像(1〜10 枚)。/v1/images/edits では必須です。"
},
"resolution": {
"type": "string",
"enum": [
"1k",
"1.5k",
"2k"
],
"default": "2k",
"description": "出力解像度。1 枚あたりの価格が決まります。"
},
"n": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 1,
"description": "生成する画像の枚数(1〜100)。価格は 1 枚あたりの価格にこの値を掛けたものです。"
},
"aspect_ratio": {
"type": "string",
"enum": [
"auto",
"1:1",
"4:3",
"3:4",
"16:9",
"9:16",
"3:2",
"2:3",
"21:9"
],
"default": "auto",
"description": "出力画像のアスペクト比。"
},
"output_format": {
"type": "string",
"enum": [
"jpeg",
"png"
],
"default": "jpeg",
"description": "画像のファイル形式。"
}
},
"required": [
"prompt"
]
}