参考
Model reference
Every model the API serves, with its ID, endpoint, price, parameters and a request sample. Generated from the catalog.
本页尚未翻译,当前显示英文版本。
This page is generated from the model catalog, the same data GET /public/models returns and the models and pricing pages are built from. If a model is listed here, the API serves it; if a parameter is listed here, the API accepts it.
How to read an entry:
- Model ID is what you pass as
model. - Endpoint tells you which API the model belongs to: the Task API for images, video and music, or the OpenAI-compatible API for chat and transcription.
- Price is what a delivered result costs. Tasks that fail are not charged.
- Parameters are the fields of
inputfor a task model. Parameters you leave out take the default shown.
At launch, images are generated at 1K and video at 720p.
模型说明和参数说明直接取自 API 目录,因此以英文显示。
图像
Nano Banana 2 Lite
快速、低成本的图像生成和编辑,支持参考图。
| 模型 ID | google/nano-banana-2-lite |
|---|---|
| Endpoint | POST /v1/tasks |
| 厂商 |
价格
| 适用于 | 价格 | 官方价格 | 相比官方价格 |
|---|---|---|---|
| 所有请求 | $0.017 每张图像 | $0.0336 | 便宜 49% |
参数
input 对象的字段。
| 参数 | 类型 | 默认值 | 允许的取值 | 说明 |
|---|---|---|---|---|
prompt必填 | string | — | 最多 10,000 个字符 | What the image should show. |
image_urls可选 | string[] | — | 最多 10 项; URL | Reference images: people, objects or styles the result should keep. PNG, JPEG or WebP. |
aspect_ratio可选 | string | 16:9 | 可选值: 16:9, 9:16 | Shape of the result: landscape or portrait. |
n可选 | integer | 1 | 1 至 4 | How many images to make. Each one is charged. |
seed可选 | integer | — | 0 至 2147483647 | Fix it to make a result repeatable. |
请求示例
# Create the task
curl https://api.minu.ai/v1/tasks \
-H "Authorization: Bearer $MINU_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/nano-banana-2-lite",
"input": {
"prompt": "A paper boat on a rain puddle, macro, soft morning light",
"aspect_ratio": "16:9"
}
}'
# Then poll it with the id from the response
curl https://api.minu.ai/v1/tasks/$TASK_ID \
-H "Authorization: Bearer $MINU_API_KEY"const headers = {
Authorization: `Bearer ${process.env.MINU_API_KEY}`,
'Content-Type': 'application/json',
};
// Create the task
let task = await fetch('https://api.minu.ai/v1/tasks', {
method: 'POST',
headers,
body: JSON.stringify({
model: 'google/nano-banana-2-lite',
input: {
prompt: 'A paper boat on a rain puddle, macro, soft morning light',
aspect_ratio: '16:9',
},
}),
}).then((response) => response.json());
// Poll until it reaches a final state
const done = ['succeeded', 'partially_succeeded', 'failed', 'canceled', 'expired'];
while (!done.includes(task.status)) {
await new Promise((resolve) => setTimeout(resolve, 2000));
task = await fetch(`https://api.minu.ai/v1/tasks/${task.id}`, { headers }).then((response) => response.json());
}
console.log(task.status, task.outputs);import os
import time
import requests
headers = {"Authorization": f"Bearer {os.environ['MINU_API_KEY']}"}
# Create the task
task = requests.post(
"https://api.minu.ai/v1/tasks",
headers=headers,
json={
"model": "google/nano-banana-2-lite",
"input": {
"prompt": "A paper boat on a rain puddle, macro, soft morning light",
"aspect_ratio": "16:9",
},
},
).json()
# Poll until it reaches a final state
done = {"succeeded", "partially_succeeded", "failed", "canceled", "expired"}
while task["status"] not in done:
time.sleep(2)
task = requests.get(f"https://api.minu.ai/v1/tasks/{task['id']}", headers=headers).json()
print(task["status"], task["outputs"])Nano Banana 2
图像生成和编辑,可保留参考图中的人物和物体。
| 模型 ID | google/nano-banana-2 |
|---|---|
| Endpoint | POST /v1/tasks |
| 厂商 |
价格
| 适用于 | 价格 | 官方价格 | 相比官方价格 |
|---|---|---|---|
| 所有请求 | $0.033 每张图像 | $0.067 | 便宜 50% |
参数
input 对象的字段。
| 参数 | 类型 | 默认值 | 允许的取值 | 说明 |
|---|---|---|---|---|
prompt必填 | string | — | 最多 10,000 个字符 | What the image should show. |
image_urls可选 | string[] | — | 最多 10 项; URL | Reference images: people, objects or styles the result should keep. PNG, JPEG or WebP. |
aspect_ratio可选 | string | 16:9 | 可选值: 16:9, 9:16 | Shape of the result: landscape or portrait. |
n可选 | integer | 1 | 1 至 4 | How many images to make. Each one is charged. |
seed可选 | integer | — | 0 至 2147483647 | Fix it to make a result repeatable. |
请求示例
# Create the task
curl https://api.minu.ai/v1/tasks \
-H "Authorization: Bearer $MINU_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/nano-banana-2",
"input": {
"prompt": "A paper boat on a rain puddle, macro, soft morning light",
"aspect_ratio": "16:9"
}
}'
# Then poll it with the id from the response
curl https://api.minu.ai/v1/tasks/$TASK_ID \
-H "Authorization: Bearer $MINU_API_KEY"const headers = {
Authorization: `Bearer ${process.env.MINU_API_KEY}`,
'Content-Type': 'application/json',
};
// Create the task
let task = await fetch('https://api.minu.ai/v1/tasks', {
method: 'POST',
headers,
body: JSON.stringify({
model: 'google/nano-banana-2',
input: {
prompt: 'A paper boat on a rain puddle, macro, soft morning light',
aspect_ratio: '16:9',
},
}),
}).then((response) => response.json());
// Poll until it reaches a final state
const done = ['succeeded', 'partially_succeeded', 'failed', 'canceled', 'expired'];
while (!done.includes(task.status)) {
await new Promise((resolve) => setTimeout(resolve, 2000));
task = await fetch(`https://api.minu.ai/v1/tasks/${task.id}`, { headers }).then((response) => response.json());
}
console.log(task.status, task.outputs);import os
import time
import requests
headers = {"Authorization": f"Bearer {os.environ['MINU_API_KEY']}"}
# Create the task
task = requests.post(
"https://api.minu.ai/v1/tasks",
headers=headers,
json={
"model": "google/nano-banana-2",
"input": {
"prompt": "A paper boat on a rain puddle, macro, soft morning light",
"aspect_ratio": "16:9",
},
},
).json()
# Poll until it reaches a final state
done = {"succeeded", "partially_succeeded", "failed", "canceled", "expired"}
while task["status"] not in done:
time.sleep(2)
task = requests.get(f"https://api.minu.ai/v1/tasks/{task['id']}", headers=headers).json()
print(task["status"], task["outputs"])Nano Banana Pro
能力最强的 Nano Banana:复杂场景、图中文字、高度还原参考图。
| 模型 ID | google/nano-banana-pro |
|---|---|
| Endpoint | POST /v1/tasks |
| 厂商 |
价格
| 适用于 | 价格 | 官方价格 | 相比官方价格 |
|---|---|---|---|
| 所有请求 | $0.075 每张图像 | $0.134 | 便宜 44% |
参数
input 对象的字段。
| 参数 | 类型 | 默认值 | 允许的取值 | 说明 |
|---|---|---|---|---|
prompt必填 | string | — | 最多 10,000 个字符 | What the image should show. |
image_urls可选 | string[] | — | 最多 10 项; URL | Reference images: people, objects or styles the result should keep. PNG, JPEG or WebP. |
aspect_ratio可选 | string | 16:9 | 可选值: 16:9, 9:16 | Shape of the result: landscape or portrait. |
n可选 | integer | 1 | 1 至 4 | How many images to make. Each one is charged. |
seed可选 | integer | — | 0 至 2147483647 | Fix it to make a result repeatable. |
请求示例
# Create the task
curl https://api.minu.ai/v1/tasks \
-H "Authorization: Bearer $MINU_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/nano-banana-pro",
"input": {
"prompt": "A paper boat on a rain puddle, macro, soft morning light",
"aspect_ratio": "16:9"
}
}'
# Then poll it with the id from the response
curl https://api.minu.ai/v1/tasks/$TASK_ID \
-H "Authorization: Bearer $MINU_API_KEY"const headers = {
Authorization: `Bearer ${process.env.MINU_API_KEY}`,
'Content-Type': 'application/json',
};
// Create the task
let task = await fetch('https://api.minu.ai/v1/tasks', {
method: 'POST',
headers,
body: JSON.stringify({
model: 'google/nano-banana-pro',
input: {
prompt: 'A paper boat on a rain puddle, macro, soft morning light',
aspect_ratio: '16:9',
},
}),
}).then((response) => response.json());
// Poll until it reaches a final state
const done = ['succeeded', 'partially_succeeded', 'failed', 'canceled', 'expired'];
while (!done.includes(task.status)) {
await new Promise((resolve) => setTimeout(resolve, 2000));
task = await fetch(`https://api.minu.ai/v1/tasks/${task.id}`, { headers }).then((response) => response.json());
}
console.log(task.status, task.outputs);import os
import time
import requests
headers = {"Authorization": f"Bearer {os.environ['MINU_API_KEY']}"}
# Create the task
task = requests.post(
"https://api.minu.ai/v1/tasks",
headers=headers,
json={
"model": "google/nano-banana-pro",
"input": {
"prompt": "A paper boat on a rain puddle, macro, soft morning light",
"aspect_ratio": "16:9",
},
},
).json()
# Poll until it reaches a final state
done = {"succeeded", "partially_succeeded", "failed", "canceled", "expired"}
while task["status"] not in done:
time.sleep(2)
task = requests.get(f"https://api.minu.ai/v1/tasks/{task['id']}", headers=headers).json()
print(task["status"], task["outputs"])视频
Veo 3.1 Lite
8 秒 720p 带声音视频,由提示词和可选的参考图生成。
| 模型 ID | google/veo-3.1-lite |
|---|---|
| Endpoint | POST /v1/tasks |
| 厂商 |
价格
| 适用于 | 价格 | 官方价格 | 相比官方价格 |
|---|---|---|---|
| 720p | $0.125 每个视频 | $0.40 | 便宜 68% |
参数
input 对象的字段。
| 参数 | 类型 | 默认值 | 允许的取值 | 说明 |
|---|---|---|---|---|
prompt必填 | string | — | 最多 10,000 个字符 | What happens in the video, including anything that is said. |
image_urls可选 | string[] | — | 最多 3 项; URL | Up to three reference images of people or objects the video should keep. |
aspect_ratio可选 | string | 16:9 | 可选值: 16:9, 9:16 | Shape of the result: landscape or portrait. |
resolution可选 | string | 720p | 可选值: 720p | — |
duration可选 | integer | 8 | 可选值: 8 | Length in seconds. |
seed可选 | integer | — | 0 至 2147483647 | Fix it to make a result repeatable. |
请求示例
# Create the task
curl https://api.minu.ai/v1/tasks \
-H "Authorization: Bearer $MINU_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/veo-3.1-lite",
"input": {
"prompt": "A slow dolly shot through a bamboo forest in morning fog",
"aspect_ratio": "16:9"
}
}'
# Then poll it with the id from the response
curl https://api.minu.ai/v1/tasks/$TASK_ID \
-H "Authorization: Bearer $MINU_API_KEY"const headers = {
Authorization: `Bearer ${process.env.MINU_API_KEY}`,
'Content-Type': 'application/json',
};
// Create the task
let task = await fetch('https://api.minu.ai/v1/tasks', {
method: 'POST',
headers,
body: JSON.stringify({
model: 'google/veo-3.1-lite',
input: {
prompt: 'A slow dolly shot through a bamboo forest in morning fog',
aspect_ratio: '16:9',
},
}),
}).then((response) => response.json());
// Poll until it reaches a final state
const done = ['succeeded', 'partially_succeeded', 'failed', 'canceled', 'expired'];
while (!done.includes(task.status)) {
await new Promise((resolve) => setTimeout(resolve, 2000));
task = await fetch(`https://api.minu.ai/v1/tasks/${task.id}`, { headers }).then((response) => response.json());
}
console.log(task.status, task.outputs);import os
import time
import requests
headers = {"Authorization": f"Bearer {os.environ['MINU_API_KEY']}"}
# Create the task
task = requests.post(
"https://api.minu.ai/v1/tasks",
headers=headers,
json={
"model": "google/veo-3.1-lite",
"input": {
"prompt": "A slow dolly shot through a bamboo forest in morning fog",
"aspect_ratio": "16:9",
},
},
).json()
# Poll until it reaches a final state
done = {"succeeded", "partially_succeeded", "failed", "canceled", "expired"}
while task["status"] not in done:
time.sleep(2)
task = requests.get(f"https://api.minu.ai/v1/tasks/{task['id']}", headers=headers).json()
print(task["status"], task["outputs"])Veo 3.1 Fast
8 秒 720p 带声音视频,保真度更高,由提示词和可选的参考图生成。
| 模型 ID | google/veo-3.1-fast |
|---|---|
| Endpoint | POST /v1/tasks |
| 厂商 |
价格
| 适用于 | 价格 | 官方价格 | 相比官方价格 |
|---|---|---|---|
| 720p | $0.25 每个视频 | $0.80 | 便宜 68% |
参数
input 对象的字段。
| 参数 | 类型 | 默认值 | 允许的取值 | 说明 |
|---|---|---|---|---|
prompt必填 | string | — | 最多 10,000 个字符 | What happens in the video, including anything that is said. |
image_urls可选 | string[] | — | 最多 3 项; URL | Up to three reference images of people or objects the video should keep. |
aspect_ratio可选 | string | 16:9 | 可选值: 16:9, 9:16 | Shape of the result: landscape or portrait. |
resolution可选 | string | 720p | 可选值: 720p | — |
duration可选 | integer | 8 | 可选值: 8 | Length in seconds. |
seed可选 | integer | — | 0 至 2147483647 | Fix it to make a result repeatable. |
请求示例
# Create the task
curl https://api.minu.ai/v1/tasks \
-H "Authorization: Bearer $MINU_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/veo-3.1-fast",
"input": {
"prompt": "A slow dolly shot through a bamboo forest in morning fog",
"aspect_ratio": "16:9"
}
}'
# Then poll it with the id from the response
curl https://api.minu.ai/v1/tasks/$TASK_ID \
-H "Authorization: Bearer $MINU_API_KEY"const headers = {
Authorization: `Bearer ${process.env.MINU_API_KEY}`,
'Content-Type': 'application/json',
};
// Create the task
let task = await fetch('https://api.minu.ai/v1/tasks', {
method: 'POST',
headers,
body: JSON.stringify({
model: 'google/veo-3.1-fast',
input: {
prompt: 'A slow dolly shot through a bamboo forest in morning fog',
aspect_ratio: '16:9',
},
}),
}).then((response) => response.json());
// Poll until it reaches a final state
const done = ['succeeded', 'partially_succeeded', 'failed', 'canceled', 'expired'];
while (!done.includes(task.status)) {
await new Promise((resolve) => setTimeout(resolve, 2000));
task = await fetch(`https://api.minu.ai/v1/tasks/${task.id}`, { headers }).then((response) => response.json());
}
console.log(task.status, task.outputs);import os
import time
import requests
headers = {"Authorization": f"Bearer {os.environ['MINU_API_KEY']}"}
# Create the task
task = requests.post(
"https://api.minu.ai/v1/tasks",
headers=headers,
json={
"model": "google/veo-3.1-fast",
"input": {
"prompt": "A slow dolly shot through a bamboo forest in morning fog",
"aspect_ratio": "16:9",
},
},
).json()
# Poll until it reaches a final state
done = {"succeeded", "partially_succeeded", "failed", "canceled", "expired"}
while task["status"] not in done:
time.sleep(2)
task = requests.get(f"https://api.minu.ai/v1/tasks/{task['id']}", headers=headers).json()
print(task["status"], task["outputs"])Gemini Omni Flash 1.2
3 至 15 秒带声音视频,360p 或 720p,最多支持七张参考图。
| 模型 ID | google/gemini-omni-flash-1.2 |
|---|---|
| Endpoint | POST /v1/tasks |
| 厂商 |
价格
| 适用于 | 价格 | 官方价格 | 相比官方价格 |
|---|---|---|---|
| 360p | $0.017 每秒 | $0.023 | 便宜 26% |
| 720p | $0.037 每秒 | $0.07 | 便宜 47% |
参数
input 对象的字段。
| 参数 | 类型 | 默认值 | 允许的取值 | 说明 |
|---|---|---|---|---|
prompt必填 | string | — | 最多 10,000 个字符 | What happens in the video, including anything that is said. |
image_urls可选 | string[] | — | 最多 7 项; URL | Up to seven reference images of people or objects the video should keep. |
aspect_ratio可选 | string | 16:9 | 可选值: 16:9, 9:16 | Shape of the result: landscape or portrait. |
resolution可选 | string | 720p | 可选值: 360p, 720p | — |
duration可选 | integer | 8 | 3 至 15 | Length in seconds. The price is per second. |
请求示例
# Create the task
curl https://api.minu.ai/v1/tasks \
-H "Authorization: Bearer $MINU_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/gemini-omni-flash-1.2",
"input": {
"prompt": "A slow dolly shot through a bamboo forest in morning fog",
"aspect_ratio": "16:9",
"resolution": "720p"
}
}'
# Then poll it with the id from the response
curl https://api.minu.ai/v1/tasks/$TASK_ID \
-H "Authorization: Bearer $MINU_API_KEY"const headers = {
Authorization: `Bearer ${process.env.MINU_API_KEY}`,
'Content-Type': 'application/json',
};
// Create the task
let task = await fetch('https://api.minu.ai/v1/tasks', {
method: 'POST',
headers,
body: JSON.stringify({
model: 'google/gemini-omni-flash-1.2',
input: {
prompt: 'A slow dolly shot through a bamboo forest in morning fog',
aspect_ratio: '16:9',
resolution: '720p',
},
}),
}).then((response) => response.json());
// Poll until it reaches a final state
const done = ['succeeded', 'partially_succeeded', 'failed', 'canceled', 'expired'];
while (!done.includes(task.status)) {
await new Promise((resolve) => setTimeout(resolve, 2000));
task = await fetch(`https://api.minu.ai/v1/tasks/${task.id}`, { headers }).then((response) => response.json());
}
console.log(task.status, task.outputs);import os
import time
import requests
headers = {"Authorization": f"Bearer {os.environ['MINU_API_KEY']}"}
# Create the task
task = requests.post(
"https://api.minu.ai/v1/tasks",
headers=headers,
json={
"model": "google/gemini-omni-flash-1.2",
"input": {
"prompt": "A slow dolly shot through a bamboo forest in morning fog",
"aspect_ratio": "16:9",
"resolution": "720p",
},
},
).json()
# Poll until it reaches a final state
done = {"succeeded", "partially_succeeded", "failed", "canceled", "expired"}
while task["status"] not in done:
time.sleep(2)
task = requests.get(f"https://api.minu.ai/v1/tasks/{task['id']}", headers=headers).json()
print(task["status"], task["outputs"])音乐
Lyria 3.5
根据描述生成完整歌曲:最多两个版本,每个都带歌词和封面。
| 模型 ID | google/lyria-3.5 |
|---|---|
| Endpoint | POST /v1/tasks |
| 厂商 |
价格
| 适用于 | 价格 | 官方价格 | 相比官方价格 |
|---|---|---|---|
| 所有请求 | $0.05 每次请求 | $0.08 | 便宜 37% |
参数
input 对象的字段。
| 参数 | 类型 | 默认值 | 允许的取值 | 说明 |
|---|---|---|---|---|
prompt必填 | string | — | 最多 5,000 个字符 | What the song is about and how it should sound. |
lyrics可选 | string | — | 最多 10,000 个字符 | Your own lyrics. Left out, the model writes them. |
instrumental可选 | boolean | false | — | True for a song without vocals. |
title可选 | string | — | 最多 120 个字符 | — |
请求示例
# Create the task
curl https://api.minu.ai/v1/tasks \
-H "Authorization: Bearer $MINU_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/lyria-3.5",
"input": {
"prompt": "Lo-fi hip hop for studying, mellow piano, vinyl crackle"
}
}'
# Then poll it with the id from the response
curl https://api.minu.ai/v1/tasks/$TASK_ID \
-H "Authorization: Bearer $MINU_API_KEY"const headers = {
Authorization: `Bearer ${process.env.MINU_API_KEY}`,
'Content-Type': 'application/json',
};
// Create the task
let task = await fetch('https://api.minu.ai/v1/tasks', {
method: 'POST',
headers,
body: JSON.stringify({
model: 'google/lyria-3.5',
input: {
prompt: 'Lo-fi hip hop for studying, mellow piano, vinyl crackle',
},
}),
}).then((response) => response.json());
// Poll until it reaches a final state
const done = ['succeeded', 'partially_succeeded', 'failed', 'canceled', 'expired'];
while (!done.includes(task.status)) {
await new Promise((resolve) => setTimeout(resolve, 2000));
task = await fetch(`https://api.minu.ai/v1/tasks/${task.id}`, { headers }).then((response) => response.json());
}
console.log(task.status, task.outputs);import os
import time
import requests
headers = {"Authorization": f"Bearer {os.environ['MINU_API_KEY']}"}
# Create the task
task = requests.post(
"https://api.minu.ai/v1/tasks",
headers=headers,
json={
"model": "google/lyria-3.5",
"input": {
"prompt": "Lo-fi hip hop for studying, mellow piano, vinyl crackle",
},
},
).json()
# Poll until it reaches a final state
done = {"succeeded", "partially_succeeded", "failed", "canceled", "expired"}
while task["status"] not in done:
time.sleep(2)
task = requests.get(f"https://api.minu.ai/v1/tasks/{task['id']}", headers=headers).json()
print(task["status"], task["outputs"])Lyria 3 Pro
根据描述生成完整歌曲:最多两个版本,每个都带歌词和封面。
| 模型 ID | google/lyria-3-pro |
|---|---|
| Endpoint | POST /v1/tasks |
| 厂商 |
价格
| 适用于 | 价格 | 官方价格 | 相比官方价格 |
|---|---|---|---|
| 所有请求 | $0.05 每次请求 | $0.08 | 便宜 37% |
参数
input 对象的字段。
| 参数 | 类型 | 默认值 | 允许的取值 | 说明 |
|---|---|---|---|---|
prompt必填 | string | — | 最多 5,000 个字符 | What the song is about and how it should sound. |
lyrics可选 | string | — | 最多 10,000 个字符 | Your own lyrics. Left out, the model writes them. |
instrumental可选 | boolean | false | — | True for a song without vocals. |
title可选 | string | — | 最多 120 个字符 | — |
请求示例
# Create the task
curl https://api.minu.ai/v1/tasks \
-H "Authorization: Bearer $MINU_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/lyria-3-pro",
"input": {
"prompt": "Lo-fi hip hop for studying, mellow piano, vinyl crackle"
}
}'
# Then poll it with the id from the response
curl https://api.minu.ai/v1/tasks/$TASK_ID \
-H "Authorization: Bearer $MINU_API_KEY"const headers = {
Authorization: `Bearer ${process.env.MINU_API_KEY}`,
'Content-Type': 'application/json',
};
// Create the task
let task = await fetch('https://api.minu.ai/v1/tasks', {
method: 'POST',
headers,
body: JSON.stringify({
model: 'google/lyria-3-pro',
input: {
prompt: 'Lo-fi hip hop for studying, mellow piano, vinyl crackle',
},
}),
}).then((response) => response.json());
// Poll until it reaches a final state
const done = ['succeeded', 'partially_succeeded', 'failed', 'canceled', 'expired'];
while (!done.includes(task.status)) {
await new Promise((resolve) => setTimeout(resolve, 2000));
task = await fetch(`https://api.minu.ai/v1/tasks/${task.id}`, { headers }).then((response) => response.json());
}
console.log(task.status, task.outputs);import os
import time
import requests
headers = {"Authorization": f"Bearer {os.environ['MINU_API_KEY']}"}
# Create the task
task = requests.post(
"https://api.minu.ai/v1/tasks",
headers=headers,
json={
"model": "google/lyria-3-pro",
"input": {
"prompt": "Lo-fi hip hop for studying, mellow piano, vinyl crackle",
},
},
).json()
# Poll until it reaches a final state
done = {"succeeded", "partially_succeeded", "failed", "canceled", "expired"}
while task["status"] not in done:
time.sleep(2)
task = requests.get(f"https://api.minu.ai/v1/tasks/{task['id']}", headers=headers).json()
print(task["status"], task["outputs"])Lyria Lyrics
根据描述生成歌词,以文本形式返回。
| 模型 ID | google/lyria-lyrics |
|---|---|
| Endpoint | POST /v1/tasks |
| 厂商 |
价格
| 适用于 | 价格 | 官方价格 | 相比官方价格 |
|---|---|---|---|
| 所有请求 | $0.002 每次请求 | — | — |
参数
input 对象的字段。
| 参数 | 类型 | 默认值 | 允许的取值 | 说明 |
|---|---|---|---|---|
prompt必填 | string | — | 最多 5,000 个字符 | What the song is about. |
请求示例
# Create the task
curl https://api.minu.ai/v1/tasks \
-H "Authorization: Bearer $MINU_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/lyria-lyrics",
"input": {
"prompt": "Lo-fi hip hop for studying, mellow piano, vinyl crackle"
}
}'
# Then poll it with the id from the response
curl https://api.minu.ai/v1/tasks/$TASK_ID \
-H "Authorization: Bearer $MINU_API_KEY"const headers = {
Authorization: `Bearer ${process.env.MINU_API_KEY}`,
'Content-Type': 'application/json',
};
// Create the task
let task = await fetch('https://api.minu.ai/v1/tasks', {
method: 'POST',
headers,
body: JSON.stringify({
model: 'google/lyria-lyrics',
input: {
prompt: 'Lo-fi hip hop for studying, mellow piano, vinyl crackle',
},
}),
}).then((response) => response.json());
// Poll until it reaches a final state
const done = ['succeeded', 'partially_succeeded', 'failed', 'canceled', 'expired'];
while (!done.includes(task.status)) {
await new Promise((resolve) => setTimeout(resolve, 2000));
task = await fetch(`https://api.minu.ai/v1/tasks/${task.id}`, { headers }).then((response) => response.json());
}
console.log(task.status, task.outputs);import os
import time
import requests
headers = {"Authorization": f"Bearer {os.environ['MINU_API_KEY']}"}
# Create the task
task = requests.post(
"https://api.minu.ai/v1/tasks",
headers=headers,
json={
"model": "google/lyria-lyrics",
"input": {
"prompt": "Lo-fi hip hop for studying, mellow piano, vinyl crackle",
},
},
).json()
# Poll until it reaches a final state
done = {"succeeded", "partially_succeeded", "failed", "canceled", "expired"}
while task["status"] not in done:
time.sleep(2)
task = requests.get(f"https://api.minu.ai/v1/tasks/{task['id']}", headers=headers).json()
print(task["status"], task["outputs"])对话
GPT-6.1 Sol
OpenAI 的 GPT-6.1 Sol:GPT-6 系列的中间档,适合日常写作、分析和代码。
| 模型 ID | openai/gpt-6.1-sol |
|---|---|
| Endpoint | POST /v1/chat/completions |
| 厂商 | OpenAI |
价格
| 每 1M token | 价格 |
|---|---|
| 输入 | $0.50 |
| 缓存输入 | $0.025 |
| 输出 | $2.50 |
参数
发送标准的 OpenAI chat completions 请求体:model、messages 以及常用选项。
请求示例
curl https://api.minu.ai/v1/chat/completions \
-H "Authorization: Bearer $MINU_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-6.1-sol",
"messages": [
{
"role": "user",
"content": "Write a haiku about queues."
}
]
}'import OpenAI from 'openai';
const client = new OpenAI({
apiKey: process.env.MINU_API_KEY,
baseURL: 'https://api.minu.ai/v1',
});
const completion = await client.chat.completions.create({
model: 'openai/gpt-6.1-sol',
messages: [
{
role: 'user',
content: 'Write a haiku about queues.',
},
],
});
console.log(completion.choices[0].message.content);import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["MINU_API_KEY"],
base_url="https://api.minu.ai/v1",
)
completion = client.chat.completions.create(
model="openai/gpt-6.1-sol",
messages=[
{
"role": "user",
"content": "Write a haiku about queues.",
},
],
)
print(completion.choices[0].message.content)GPT-6 Astra
OpenAI 的 GPT-6 Astra:GPT-6 系列的最高档,适合最难的推理任务。
| 模型 ID | openai/gpt-6-astra |
|---|---|
| Endpoint | POST /v1/chat/completions |
| 厂商 | OpenAI |
价格
| 每 1M token | 价格 |
|---|---|
| 输入 | $2.30 |
| 缓存输入 | $0.23 |
| 输出 | $11.60 |
参数
发送标准的 OpenAI chat completions 请求体:model、messages 以及常用选项。
请求示例
curl https://api.minu.ai/v1/chat/completions \
-H "Authorization: Bearer $MINU_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-6-astra",
"messages": [
{
"role": "user",
"content": "Write a haiku about queues."
}
]
}'import OpenAI from 'openai';
const client = new OpenAI({
apiKey: process.env.MINU_API_KEY,
baseURL: 'https://api.minu.ai/v1',
});
const completion = await client.chat.completions.create({
model: 'openai/gpt-6-astra',
messages: [
{
role: 'user',
content: 'Write a haiku about queues.',
},
],
});
console.log(completion.choices[0].message.content);import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["MINU_API_KEY"],
base_url="https://api.minu.ai/v1",
)
completion = client.chat.completions.create(
model="openai/gpt-6-astra",
messages=[
{
"role": "user",
"content": "Write a haiku about queues.",
},
],
)
print(completion.choices[0].message.content)GPT-6 Luna
OpenAI 的 GPT-6 Luna:GPT-6 系列中价格最低的档位,适合高吞吐量场景。
| 模型 ID | openai/gpt-6-luna |
|---|---|
| Endpoint | POST /v1/chat/completions |
| 厂商 | OpenAI |
价格
| 每 1M token | 价格 |
|---|---|
| 输入 | $0.10 |
| 缓存输入 | $0.01 |
| 输出 | $0.50 |
参数
发送标准的 OpenAI chat completions 请求体:model、messages 以及常用选项。
请求示例
curl https://api.minu.ai/v1/chat/completions \
-H "Authorization: Bearer $MINU_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-6-luna",
"messages": [
{
"role": "user",
"content": "Write a haiku about queues."
}
]
}'import OpenAI from 'openai';
const client = new OpenAI({
apiKey: process.env.MINU_API_KEY,
baseURL: 'https://api.minu.ai/v1',
});
const completion = await client.chat.completions.create({
model: 'openai/gpt-6-luna',
messages: [
{
role: 'user',
content: 'Write a haiku about queues.',
},
],
});
console.log(completion.choices[0].message.content);import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["MINU_API_KEY"],
base_url="https://api.minu.ai/v1",
)
completion = client.chat.completions.create(
model="openai/gpt-6-luna",
messages=[
{
"role": "user",
"content": "Write a haiku about queues.",
},
],
)
print(completion.choices[0].message.content)GPT-5.6 Luna
OpenAI 的 GPT-5.6 Luna:上一代的低价档位。
| 模型 ID | openai/gpt-5.6-luna |
|---|---|
| Endpoint | POST /v1/chat/completions |
| 厂商 | OpenAI |
价格
| 每 1M token | 价格 |
|---|---|
| 输入 | $0.046 |
| 缓存输入 | $0.0046 |
| 输出 | $0.28 |
参数
发送标准的 OpenAI chat completions 请求体:model、messages 以及常用选项。
请求示例
curl https://api.minu.ai/v1/chat/completions \
-H "Authorization: Bearer $MINU_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-5.6-luna",
"messages": [
{
"role": "user",
"content": "Write a haiku about queues."
}
]
}'import OpenAI from 'openai';
const client = new OpenAI({
apiKey: process.env.MINU_API_KEY,
baseURL: 'https://api.minu.ai/v1',
});
const completion = await client.chat.completions.create({
model: 'openai/gpt-5.6-luna',
messages: [
{
role: 'user',
content: 'Write a haiku about queues.',
},
],
});
console.log(completion.choices[0].message.content);import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["MINU_API_KEY"],
base_url="https://api.minu.ai/v1",
)
completion = client.chat.completions.create(
model="openai/gpt-5.6-luna",
messages=[
{
"role": "user",
"content": "Write a haiku about queues.",
},
],
)
print(completion.choices[0].message.content)DeepSeek V3.2
对话模型,通过兼容 OpenAI 的 chat completions endpoint 调用。
| 模型 ID | deepseek/deepseek-v3.2 |
|---|---|
| Endpoint | POST /v1/chat/completions |
| 厂商 | DeepSeek |
价格
| 每 1M token | 价格 |
|---|---|
| 输入 | $0.58 |
| 缓存输入 | $0.58 |
| 输出 | $1.68 |
参数
发送标准的 OpenAI chat completions 请求体:model、messages 以及常用选项。
请求示例
curl https://api.minu.ai/v1/chat/completions \
-H "Authorization: Bearer $MINU_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek/deepseek-v3.2",
"messages": [
{
"role": "user",
"content": "Write a haiku about queues."
}
]
}'import OpenAI from 'openai';
const client = new OpenAI({
apiKey: process.env.MINU_API_KEY,
baseURL: 'https://api.minu.ai/v1',
});
const completion = await client.chat.completions.create({
model: 'deepseek/deepseek-v3.2',
messages: [
{
role: 'user',
content: 'Write a haiku about queues.',
},
],
});
console.log(completion.choices[0].message.content);import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["MINU_API_KEY"],
base_url="https://api.minu.ai/v1",
)
completion = client.chat.completions.create(
model="deepseek/deepseek-v3.2",
messages=[
{
"role": "user",
"content": "Write a haiku about queues.",
},
],
)
print(completion.choices[0].message.content)DeepSeek V4.1 Flash
对话模型,通过兼容 OpenAI 的 chat completions endpoint 调用。
| 模型 ID | deepseek/deepseek-v4.1-flash |
|---|---|
| Endpoint | POST /v1/chat/completions |
| 厂商 | DeepSeek |
价格
| 每 1M token | 价格 |
|---|---|
| 输入 | $0.10 |
| 缓存输入 | $0.002 |
| 输出 | $0.39 |
参数
发送标准的 OpenAI chat completions 请求体:model、messages 以及常用选项。
请求示例
curl https://api.minu.ai/v1/chat/completions \
-H "Authorization: Bearer $MINU_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek/deepseek-v4.1-flash",
"messages": [
{
"role": "user",
"content": "Write a haiku about queues."
}
]
}'import OpenAI from 'openai';
const client = new OpenAI({
apiKey: process.env.MINU_API_KEY,
baseURL: 'https://api.minu.ai/v1',
});
const completion = await client.chat.completions.create({
model: 'deepseek/deepseek-v4.1-flash',
messages: [
{
role: 'user',
content: 'Write a haiku about queues.',
},
],
});
console.log(completion.choices[0].message.content);import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["MINU_API_KEY"],
base_url="https://api.minu.ai/v1",
)
completion = client.chat.completions.create(
model="deepseek/deepseek-v4.1-flash",
messages=[
{
"role": "user",
"content": "Write a haiku about queues.",
},
],
)
print(completion.choices[0].message.content)DeepSeek V4 Pro
对话模型,通过兼容 OpenAI 的 chat completions endpoint 调用。
| 模型 ID | deepseek/deepseek-v4-pro |
|---|---|
| Endpoint | POST /v1/chat/completions |
| 厂商 | DeepSeek |
价格
| 每 1M token | 价格 |
|---|---|
| 输入 | $1.74 |
| 缓存输入 | $0.145 |
| 输出 | $3.48 |
参数
发送标准的 OpenAI chat completions 请求体:model、messages 以及常用选项。
请求示例
curl https://api.minu.ai/v1/chat/completions \
-H "Authorization: Bearer $MINU_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek/deepseek-v4-pro",
"messages": [
{
"role": "user",
"content": "Write a haiku about queues."
}
]
}'import OpenAI from 'openai';
const client = new OpenAI({
apiKey: process.env.MINU_API_KEY,
baseURL: 'https://api.minu.ai/v1',
});
const completion = await client.chat.completions.create({
model: 'deepseek/deepseek-v4-pro',
messages: [
{
role: 'user',
content: 'Write a haiku about queues.',
},
],
});
console.log(completion.choices[0].message.content);import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["MINU_API_KEY"],
base_url="https://api.minu.ai/v1",
)
completion = client.chat.completions.create(
model="deepseek/deepseek-v4-pro",
messages=[
{
"role": "user",
"content": "Write a haiku about queues.",
},
],
)
print(completion.choices[0].message.content)Kimi K3.1 Pro
Moonshot AI 的 Kimi K3.1 Pro:支持函数工具的推理模型。
| 模型 ID | moonshot/kimi-k3.1-pro |
|---|---|
| Endpoint | POST /v1/chat/completions |
| 厂商 | Moonshot AI |
价格
| 每 1M token | 价格 |
|---|---|
| 输入 | $1.30 |
| 缓存输入 | $0.13 |
| 输出 | $6.60 |
参数
发送标准的 OpenAI chat completions 请求体:model、messages 以及常用选项。
请求示例
curl https://api.minu.ai/v1/chat/completions \
-H "Authorization: Bearer $MINU_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "moonshot/kimi-k3.1-pro",
"messages": [
{
"role": "user",
"content": "Write a haiku about queues."
}
]
}'import OpenAI from 'openai';
const client = new OpenAI({
apiKey: process.env.MINU_API_KEY,
baseURL: 'https://api.minu.ai/v1',
});
const completion = await client.chat.completions.create({
model: 'moonshot/kimi-k3.1-pro',
messages: [
{
role: 'user',
content: 'Write a haiku about queues.',
},
],
});
console.log(completion.choices[0].message.content);import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["MINU_API_KEY"],
base_url="https://api.minu.ai/v1",
)
completion = client.chat.completions.create(
model="moonshot/kimi-k3.1-pro",
messages=[
{
"role": "user",
"content": "Write a haiku about queues.",
},
],
)
print(completion.choices[0].message.content)语音转写
Whisper
语音转文字,通过兼容 OpenAI 的 audio transcriptions endpoint 调用。
| 模型 ID | openai/whisper |
|---|---|
| Endpoint | POST /v1/audio/transcriptions |
| 厂商 | OpenAI |
价格
| 适用于 | 价格 | 官方价格 | 相比官方价格 |
|---|---|---|---|
| 所有请求 | $0.006 每分钟 | $0.006 | — |
参数
发送包含 file 和 model 的 multipart 表单。
请求示例
curl https://api.minu.ai/v1/audio/transcriptions \
-H "Authorization: Bearer $MINU_API_KEY" \
-F file=@meeting.mp3 \
-F model=openai/whisperimport fs from 'node:fs';
import OpenAI from 'openai';
const client = new OpenAI({
apiKey: process.env.MINU_API_KEY,
baseURL: 'https://api.minu.ai/v1',
});
const transcript = await client.audio.transcriptions.create({
file: fs.createReadStream('meeting.mp3'),
model: 'openai/whisper',
});
console.log(transcript.text);import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["MINU_API_KEY"],
base_url="https://api.minu.ai/v1",
)
with open("meeting.mp3", "rb") as audio:
transcript = client.audio.transcriptions.create(model="openai/whisper", file=audio)
print(transcript.text)官方价格是模型厂商针对相同模型和相同设置公布的标价,按我们目录中的记录列出。价格可能变动,当前价格请以厂商自己的价格页面为准。
产品和模型名称均为其各自所有者的商标。Minu 是独立服务,与 Google、OpenAI、DeepSeek 或 kie.ai 无关联,也未获得其认可或赞助。