Sakuranbo AI · 视频
根据文本或图像生成 2 至 30 秒、1080p、2K 或 4K 的带音频视频。
- 文生视频
- 图生视频
- 参考图生视频
- 2-30 秒
- 1080p / 2K / 4K
- 6 种宽高比
- 含音频
支持 100 万 token 上下文、工具调用和推理的高速、低成本语言模型。
Sakuranbo AI ·
将在控制台中打开 Playground。
Sakuranbo AI 目前处于预览阶段。
CherryText 1.0 Flash 是面向对话、编程和智能体场景的高速、低成本语言模型,支持 100 万 token 上下文和最多 131,072 个输出 token。可通过兼容 OpenAI 的 Chat Completions 端点调用,支持流式输出、工具调用和 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 | 生成 token 数的上限,包含模型用于推理的 token。数值过小可能导致在写出回答之前响应就被截断。余额预留按此值计算。 |
temperature | number | 否 | 1 | 0 至 2 | 采样温度。 |
stream | boolean | 否 | false | 以 Server-Sent Events 流式返回 token。 |
价格以 USD 计价,已包含我们的加价。失败、已取消、已过期以及被内容政策拒绝的运行不会计费。对于对话,模型开始生成输出(包括推理输出)后,即使流中断或连接被关闭,也会对已生成的输出计费。
| 项目 | 单位 | 条件 | 价格 |
|---|---|---|---|
| 输入 token | 每 100 万 token | 默认 | $0.4125 |
| 缓存输入 token | 每 100 万 token | 默认 | $0.0104 |
| 输出 token | 每 100 万 token | 默认 | $1.65 |
示例按标价计算。最终费用由服务器根据实际用量计算。
| 示例 | 合计 |
|---|---|
| 1,000 输入和 1,000 输出 token | $0.002063 |
| 10,000 输入和 1,000 输出 token | $0.005775 |
| 100,000 输入和 4,096 输出 token | $0.048009 |
默认设置一次运行:$0.00676(无输入,输出最多 4,096 token)
输入字段的 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": "生成 token 数的上限,包含模型用于推理的 token。数值过小可能导致在写出回答之前响应就被截断。余额预留按此值计算。"
},
"temperature": {
"type": "number",
"minimum": 0,
"maximum": 2,
"default": 1,
"description": "采样温度。"
},
"stream": {
"type": "boolean",
"default": false,
"description": "以 Server-Sent Events 流式返回 token。"
}
},
"required": [
"messages"
]
}