Sakuranbo AI · 動画
2〜30 秒、1080p・2K・4K の音声付き動画をテキストや画像から生成。
- テキストから動画
- 画像から動画
- 参照画像から動画
- 2〜30 秒
- 1080p / 2K / 4K
- アスペクト比 6 種
- 音声付き
100 万トークンの文脈長、tool calls、推論に対応した、高速・低価格の言語モデル。
Sakuranbo AI ·
ダッシュボードの Playground が開きます。
Sakuranbo AI はプレビュー中です。
CherryText 1.0 Flash は、チャット・コーディング・エージェント用途向けの高速・低価格な言語モデルです。100 万トークンの文脈長と最大 131,072 トークンの出力に対応します。OpenAI 互換の Chat Completions エンドポイントから、ストリーミング、tool calls、JSON 出力を使って呼び出せます。回答の前に推論を行い、推論の内容は reasoning_content に返ります。
sakuranbo/cherrytext-1.0-flashモデル ID sakuranbo/cherrytext-1.0-flash を指定して呼び出します。
POST /v1/estimate は、JSON ボディ({ model, input })を受け取り、実行前にその入力の料金を返します。このエンドポイントは API キーなしで使えます。
curl -X POST "https://api.sakuranbo.ai/v1/estimate" \
-H "Content-Type: application/json" \
-d '{
"model": "sakuranbo/cherrytext-1.0-flash",
"input": {
"messages": [
{
"role": "system",
"content": "You are a concise assistant."
},
{
"role": "user",
"content": "Summarize the benefits of prepaid API credits in two lines."
}
],
"max_tokens": 2048
}
}'const response = await fetch("https://api.sakuranbo.ai/v1/estimate", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
"model": "sakuranbo/cherrytext-1.0-flash",
"input": {
"messages": [
{
"role": "system",
"content": "You are a concise assistant."
},
{
"role": "user",
"content": "Summarize the benefits of prepaid API credits in two lines."
}
],
"max_tokens": 2048
}
}),
});
const data = await response.json();
console.log(data);import requests
response = requests.post(
"https://api.sakuranbo.ai/v1/estimate",
json={
"model": "sakuranbo/cherrytext-1.0-flash",
"input": {
"messages": [
{
"role": "system",
"content": "You are a concise assistant.",
},
{
"role": "user",
"content": "Summarize the benefits of prepaid API credits in two lines.",
},
],
"max_tokens": 2048,
},
},
)
print(response.json())生成のリクエストは /v1/chat/completions に送ります。下のリクエストは、このモデルのカタログにある入力例を使っています。
モデルの一覧・取得と見積は API キーが不要です。生成のリクエストには API キーが必要です: Authorization: Bearer YOUR_API_KEY
curl -X POST "https://api.sakuranbo.ai/v1/chat/completions" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $SAKURANBO_API_KEY" \
-d '{
"model": "sakuranbo/cherrytext-1.0-flash",
"messages": [
{
"role": "system",
"content": "You are a concise assistant."
},
{
"role": "user",
"content": "Summarize the benefits of prepaid API credits in two lines."
}
],
"max_tokens": 2048
}'const response = await fetch("https://api.sakuranbo.ai/v1/chat/completions", {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${process.env.SAKURANBO_API_KEY}`,
},
body: JSON.stringify({
"model": "sakuranbo/cherrytext-1.0-flash",
"messages": [
{
"role": "system",
"content": "You are a concise assistant."
},
{
"role": "user",
"content": "Summarize the benefits of prepaid API credits in two lines."
}
],
"max_tokens": 2048
}),
});
const data = await response.json();
console.log(data);import os
import requests
response = requests.post(
"https://api.sakuranbo.ai/v1/chat/completions",
headers={
"Authorization": f"Bearer {os.environ['SAKURANBO_API_KEY']}",
},
json={
"model": "sakuranbo/cherrytext-1.0-flash",
"messages": [
{
"role": "system",
"content": "You are a concise assistant.",
},
{
"role": "user",
"content": "Summarize the benefits of prepaid API credits in two lines.",
},
],
"max_tokens": 2048,
},
)
print(response.json())このモデルのリクエストフィールドです。
| 名前 | 型 | 必須 | 既定値 | 制約 | 説明 |
|---|---|---|---|---|---|
messages | object[] | はい | OpenAI Chat Completions 形式の会話メッセージ。 | ||
max_tokens | integer | いいえ | 4096 | 1〜131,072 | 推論に使うトークンを含む、生成するトークン数の上限。小さすぎると、回答を書く前に応答が打ち切られることがあります。残高の仮押さえはこの値で計算します。 |
temperature | number | いいえ | 1 | 0〜2 | サンプリング温度。 |
stream | boolean | いいえ | false | トークンを Server-Sent Events で逐次返します。 |
価格は USD 表示で、当社のマージンを含みます。失敗・キャンセル・時間切れ・コンテンツポリシーによる拒否の実行は課金されません。チャットでは、モデルが出力(推論の出力を含みます)を生成し始めたあとは、ストリームが途切れても、接続を閉じても、生成した出力が課金されます。
| 項目 | 単位 | 条件 | 価格 |
|---|---|---|---|
| 入力トークン | 100 万トークンあたり | 既定 | $0.4125 |
| キャッシュ済み入力トークン | 100 万トークンあたり | 既定 | $0.0104 |
| 出力トークン | 100 万トークンあたり | 既定 | $1.65 |
計算例は表示価格を使っています。最終的な請求額は、実際の使用量からサーバーが計算します。
| 例 | 合計 |
|---|---|
| 入力 1,000、出力 1,000 トークン | $0.002063 |
| 入力 10,000、出力 1,000 トークン | $0.005775 |
| 入力 100,000、出力 4,096 トークン | $0.048009 |
既定設定の 1 回: $0.00676(入力なし、出力は最大 4,096 トークン)
入力フィールドの JSON Schema です。カタログから生成しています。
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"messages": {
"type": "array",
"items": {
"type": "object"
},
"description": "OpenAI Chat Completions 形式の会話メッセージ。"
},
"max_tokens": {
"type": "integer",
"minimum": 1,
"maximum": 131072,
"default": 4096,
"description": "推論に使うトークンを含む、生成するトークン数の上限。小さすぎると、回答を書く前に応答が打ち切られることがあります。残高の仮押さえはこの値で計算します。"
},
"temperature": {
"type": "number",
"minimum": 0,
"maximum": 2,
"default": 1,
"description": "サンプリング温度。"
},
"stream": {
"type": "boolean",
"default": false,
"description": "トークンを Server-Sent Events で逐次返します。"
}
},
"required": [
"messages"
]
}