Tham chiếu
Tham chiếu mô hình
Mọi mô hình mà API cung cấp, kèm ID, endpoint, giá, tham số và một yêu cầu mẫu. Trang được sinh ra từ catalog.
Trang này được sinh ra từ catalog mô hình, tức là cùng dữ liệu mà GET /public/models trả về và cũng là dữ liệu dựng nên các trang mô hình và bảng giá. Mô hình nào có trong trang này thì API cung cấp mô hình đó; tham số nào có trong trang này thì API chấp nhận tham số đó.
Cách đọc mỗi mục:
- ID mô hình là giá trị bạn truyền vào
model. - Endpoint cho biết mô hình thuộc API nào: Task API cho ảnh, video và nhạc, hoặc API tương thích OpenAI cho chat và chuyển giọng nói thành văn bản.
- Giá là chi phí của một kết quả được trả về. Tác vụ thất bại không bị tính phí.
- Tham số là các trường của
inputvới mô hình dạng tác vụ. Tham số bạn không truyền sẽ nhận giá trị mặc định được ghi trong bảng.
Khi ra mắt, ảnh được tạo ở 1K và video ở 720p.
Mô tả mô hình và mô tả tham số được lấy trực tiếp từ catalog của API nên hiển thị bằng tiếng Anh.
Ảnh
Nano Banana 2 Lite
Tạo và chỉnh sửa ảnh nhanh, chi phí thấp, có dùng ảnh tham chiếu.
| ID mô hình | google/nano-banana-2-lite |
|---|---|
| Endpoint | POST /v1/tasks |
| Nhà phát triển |
Giá
| Áp dụng cho | Giá | Giá chính hãng | So với giá chính hãng |
|---|---|---|---|
| Mọi yêu cầu | $0.017 mỗi ảnh | $0.0336 | rẻ hơn 49% |
Tham số
Các trường của đối tượng input.
| Tham số | Kiểu | Mặc định | Giá trị cho phép | Mô tả |
|---|---|---|---|---|
promptbắt buộc | string | — | Tối đa 10.000 ký tự | What the image should show. |
image_urlskhông bắt buộc | string[] | — | Tối đa 10 phần tử; URL | Reference images: people, objects or styles the result should keep. PNG, JPEG or WebP. |
aspect_ratiokhông bắt buộc | string | 16:9 | Một trong: 16:9, 9:16 | Shape of the result: landscape or portrait. |
nkhông bắt buộc | integer | 1 | Từ 1 đến 4 | How many images to make. Each one is charged. |
seedkhông bắt buộc | integer | — | Từ 0 đến 2147483647 | Fix it to make a result repeatable. |
Yêu cầu mẫu
# 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
Tạo và chỉnh sửa ảnh, giữ nguyên người và vật thể từ ảnh tham chiếu.
| ID mô hình | google/nano-banana-2 |
|---|---|
| Endpoint | POST /v1/tasks |
| Nhà phát triển |
Giá
| Áp dụng cho | Giá | Giá chính hãng | So với giá chính hãng |
|---|---|---|---|
| Mọi yêu cầu | $0.033 mỗi ảnh | $0.067 | rẻ hơn 50% |
Tham số
Các trường của đối tượng input.
| Tham số | Kiểu | Mặc định | Giá trị cho phép | Mô tả |
|---|---|---|---|---|
promptbắt buộc | string | — | Tối đa 10.000 ký tự | What the image should show. |
image_urlskhông bắt buộc | string[] | — | Tối đa 10 phần tử; URL | Reference images: people, objects or styles the result should keep. PNG, JPEG or WebP. |
aspect_ratiokhông bắt buộc | string | 16:9 | Một trong: 16:9, 9:16 | Shape of the result: landscape or portrait. |
nkhông bắt buộc | integer | 1 | Từ 1 đến 4 | How many images to make. Each one is charged. |
seedkhông bắt buộc | integer | — | Từ 0 đến 2147483647 | Fix it to make a result repeatable. |
Yêu cầu mẫu
# 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
Phiên bản Nano Banana mạnh nhất: cảnh phức tạp, chữ trong ảnh, bám sát ảnh tham chiếu.
| ID mô hình | google/nano-banana-pro |
|---|---|
| Endpoint | POST /v1/tasks |
| Nhà phát triển |
Giá
| Áp dụng cho | Giá | Giá chính hãng | So với giá chính hãng |
|---|---|---|---|
| Mọi yêu cầu | $0.075 mỗi ảnh | $0.134 | rẻ hơn 44% |
Tham số
Các trường của đối tượng input.
| Tham số | Kiểu | Mặc định | Giá trị cho phép | Mô tả |
|---|---|---|---|---|
promptbắt buộc | string | — | Tối đa 10.000 ký tự | What the image should show. |
image_urlskhông bắt buộc | string[] | — | Tối đa 10 phần tử; URL | Reference images: people, objects or styles the result should keep. PNG, JPEG or WebP. |
aspect_ratiokhông bắt buộc | string | 16:9 | Một trong: 16:9, 9:16 | Shape of the result: landscape or portrait. |
nkhông bắt buộc | integer | 1 | Từ 1 đến 4 | How many images to make. Each one is charged. |
seedkhông bắt buộc | integer | — | Từ 0 đến 2147483647 | Fix it to make a result repeatable. |
Yêu cầu mẫu
# 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"])Video
Veo 3.1 Lite
Video 8 giây ở 720p có âm thanh, từ mô tả bằng văn bản và ảnh tham chiếu tùy chọn.
| ID mô hình | google/veo-3.1-lite |
|---|---|
| Endpoint | POST /v1/tasks |
| Nhà phát triển |
Giá
| Áp dụng cho | Giá | Giá chính hãng | So với giá chính hãng |
|---|---|---|---|
| 720p | $0.125 mỗi video | $0.40 | rẻ hơn 68% |
Tham số
Các trường của đối tượng input.
| Tham số | Kiểu | Mặc định | Giá trị cho phép | Mô tả |
|---|---|---|---|---|
promptbắt buộc | string | — | Tối đa 10.000 ký tự | What happens in the video, including anything that is said. |
image_urlskhông bắt buộc | string[] | — | Tối đa 3 phần tử; URL | Up to three reference images of people or objects the video should keep. |
aspect_ratiokhông bắt buộc | string | 16:9 | Một trong: 16:9, 9:16 | Shape of the result: landscape or portrait. |
resolutionkhông bắt buộc | string | 720p | Một trong: 720p | — |
durationkhông bắt buộc | integer | 8 | Một trong: 8 | Length in seconds. |
seedkhông bắt buộc | integer | — | Từ 0 đến 2147483647 | Fix it to make a result repeatable. |
Yêu cầu mẫu
# 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
Video 8 giây ở 720p có âm thanh với độ chi tiết cao hơn, từ mô tả bằng văn bản và ảnh tham chiếu tùy chọn.
| ID mô hình | google/veo-3.1-fast |
|---|---|
| Endpoint | POST /v1/tasks |
| Nhà phát triển |
Giá
| Áp dụng cho | Giá | Giá chính hãng | So với giá chính hãng |
|---|---|---|---|
| 720p | $0.25 mỗi video | $0.80 | rẻ hơn 68% |
Tham số
Các trường của đối tượng input.
| Tham số | Kiểu | Mặc định | Giá trị cho phép | Mô tả |
|---|---|---|---|---|
promptbắt buộc | string | — | Tối đa 10.000 ký tự | What happens in the video, including anything that is said. |
image_urlskhông bắt buộc | string[] | — | Tối đa 3 phần tử; URL | Up to three reference images of people or objects the video should keep. |
aspect_ratiokhông bắt buộc | string | 16:9 | Một trong: 16:9, 9:16 | Shape of the result: landscape or portrait. |
resolutionkhông bắt buộc | string | 720p | Một trong: 720p | — |
durationkhông bắt buộc | integer | 8 | Một trong: 8 | Length in seconds. |
seedkhông bắt buộc | integer | — | Từ 0 đến 2147483647 | Fix it to make a result repeatable. |
Yêu cầu mẫu
# 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
Video dài 3 đến 15 giây có âm thanh, ở 360p hoặc 720p, với tối đa bảy ảnh tham chiếu.
| ID mô hình | google/gemini-omni-flash-1.2 |
|---|---|
| Endpoint | POST /v1/tasks |
| Nhà phát triển |
Giá
| Áp dụng cho | Giá | Giá chính hãng | So với giá chính hãng |
|---|---|---|---|
| 360p | $0.017 mỗi giây | $0.023 | rẻ hơn 26% |
| 720p | $0.037 mỗi giây | $0.07 | rẻ hơn 47% |
Tham số
Các trường của đối tượng input.
| Tham số | Kiểu | Mặc định | Giá trị cho phép | Mô tả |
|---|---|---|---|---|
promptbắt buộc | string | — | Tối đa 10.000 ký tự | What happens in the video, including anything that is said. |
image_urlskhông bắt buộc | string[] | — | Tối đa 7 phần tử; URL | Up to seven reference images of people or objects the video should keep. |
aspect_ratiokhông bắt buộc | string | 16:9 | Một trong: 16:9, 9:16 | Shape of the result: landscape or portrait. |
resolutionkhông bắt buộc | string | 720p | Một trong: 360p, 720p | — |
durationkhông bắt buộc | integer | 8 | Từ 3 đến 15 | Length in seconds. The price is per second. |
Yêu cầu mẫu
# 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"])Nhạc
Lyria 3.5
Một bài hát hoàn chỉnh từ mô tả: tối đa hai bản thu, mỗi bản kèm lời và ảnh bìa.
| ID mô hình | google/lyria-3.5 |
|---|---|
| Endpoint | POST /v1/tasks |
| Nhà phát triển |
Giá
| Áp dụng cho | Giá | Giá chính hãng | So với giá chính hãng |
|---|---|---|---|
| Mọi yêu cầu | $0.05 mỗi yêu cầu | $0.08 | rẻ hơn 37% |
Tham số
Các trường của đối tượng input.
| Tham số | Kiểu | Mặc định | Giá trị cho phép | Mô tả |
|---|---|---|---|---|
promptbắt buộc | string | — | Tối đa 5.000 ký tự | What the song is about and how it should sound. |
lyricskhông bắt buộc | string | — | Tối đa 10.000 ký tự | Your own lyrics. Left out, the model writes them. |
instrumentalkhông bắt buộc | boolean | false | — | True for a song without vocals. |
titlekhông bắt buộc | string | — | Tối đa 120 ký tự | — |
Yêu cầu mẫu
# 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
Một bài hát hoàn chỉnh từ mô tả: tối đa hai bản thu, mỗi bản kèm lời và ảnh bìa.
| ID mô hình | google/lyria-3-pro |
|---|---|
| Endpoint | POST /v1/tasks |
| Nhà phát triển |
Giá
| Áp dụng cho | Giá | Giá chính hãng | So với giá chính hãng |
|---|---|---|---|
| Mọi yêu cầu | $0.05 mỗi yêu cầu | $0.08 | rẻ hơn 37% |
Tham số
Các trường của đối tượng input.
| Tham số | Kiểu | Mặc định | Giá trị cho phép | Mô tả |
|---|---|---|---|---|
promptbắt buộc | string | — | Tối đa 5.000 ký tự | What the song is about and how it should sound. |
lyricskhông bắt buộc | string | — | Tối đa 10.000 ký tự | Your own lyrics. Left out, the model writes them. |
instrumentalkhông bắt buộc | boolean | false | — | True for a song without vocals. |
titlekhông bắt buộc | string | — | Tối đa 120 ký tự | — |
Yêu cầu mẫu
# 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
Lời bài hát từ mô tả, trả về dưới dạng văn bản.
| ID mô hình | google/lyria-lyrics |
|---|---|
| Endpoint | POST /v1/tasks |
| Nhà phát triển |
Giá
| Áp dụng cho | Giá | Giá chính hãng | So với giá chính hãng |
|---|---|---|---|
| Mọi yêu cầu | $0.002 mỗi yêu cầu | — | — |
Tham số
Các trường của đối tượng input.
| Tham số | Kiểu | Mặc định | Giá trị cho phép | Mô tả |
|---|---|---|---|---|
promptbắt buộc | string | — | Tối đa 5.000 ký tự | What the song is about. |
Yêu cầu mẫu
# 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"])Chat
GPT-6.1 Sol
GPT-6.1 Sol của OpenAI: bậc giữa của dòng GPT-6, dùng cho viết, phân tích và lập trình hằng ngày.
| ID mô hình | openai/gpt-6.1-sol |
|---|---|
| Endpoint | POST /v1/chat/completions |
| Nhà phát triển | OpenAI |
Giá
| mỗi 1 triệu token | Giá |
|---|---|
| Đầu vào | $0.50 |
| Đầu vào đã cache | $0.025 |
| Đầu ra | $2.50 |
Tham số
Gửi phần thân chat completions chuẩn của OpenAI: model, messages và các tùy chọn quen thuộc.
Yêu cầu mẫu
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
GPT-6 Astra của OpenAI: bậc cao nhất của dòng GPT-6, dành cho các bài toán suy luận khó nhất.
| ID mô hình | openai/gpt-6-astra |
|---|---|
| Endpoint | POST /v1/chat/completions |
| Nhà phát triển | OpenAI |
Giá
| mỗi 1 triệu token | Giá |
|---|---|
| Đầu vào | $2.30 |
| Đầu vào đã cache | $0.23 |
| Đầu ra | $11.60 |
Tham số
Gửi phần thân chat completions chuẩn của OpenAI: model, messages và các tùy chọn quen thuộc.
Yêu cầu mẫu
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
GPT-6 Luna của OpenAI: bậc có giá thấp nhất của dòng GPT-6, phù hợp với khối lượng lớn.
| ID mô hình | openai/gpt-6-luna |
|---|---|
| Endpoint | POST /v1/chat/completions |
| Nhà phát triển | OpenAI |
Giá
| mỗi 1 triệu token | Giá |
|---|---|
| Đầu vào | $0.10 |
| Đầu vào đã cache | $0.01 |
| Đầu ra | $0.50 |
Tham số
Gửi phần thân chat completions chuẩn của OpenAI: model, messages và các tùy chọn quen thuộc.
Yêu cầu mẫu
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
GPT-5.6 Luna của OpenAI: bậc giá thấp của thế hệ trước.
| ID mô hình | openai/gpt-5.6-luna |
|---|---|
| Endpoint | POST /v1/chat/completions |
| Nhà phát triển | OpenAI |
Giá
| mỗi 1 triệu token | Giá |
|---|---|
| Đầu vào | $0.046 |
| Đầu vào đã cache | $0.0046 |
| Đầu ra | $0.28 |
Tham số
Gửi phần thân chat completions chuẩn của OpenAI: model, messages và các tùy chọn quen thuộc.
Yêu cầu mẫu
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
Mô hình chat, gọi qua endpoint chat completions tương thích OpenAI.
| ID mô hình | deepseek/deepseek-v3.2 |
|---|---|
| Endpoint | POST /v1/chat/completions |
| Nhà phát triển | DeepSeek |
Giá
| mỗi 1 triệu token | Giá |
|---|---|
| Đầu vào | $0.58 |
| Đầu vào đã cache | $0.58 |
| Đầu ra | $1.68 |
Tham số
Gửi phần thân chat completions chuẩn của OpenAI: model, messages và các tùy chọn quen thuộc.
Yêu cầu mẫu
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
Mô hình chat, gọi qua endpoint chat completions tương thích OpenAI.
| ID mô hình | deepseek/deepseek-v4.1-flash |
|---|---|
| Endpoint | POST /v1/chat/completions |
| Nhà phát triển | DeepSeek |
Giá
| mỗi 1 triệu token | Giá |
|---|---|
| Đầu vào | $0.10 |
| Đầu vào đã cache | $0.002 |
| Đầu ra | $0.39 |
Tham số
Gửi phần thân chat completions chuẩn của OpenAI: model, messages và các tùy chọn quen thuộc.
Yêu cầu mẫu
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
Mô hình chat, gọi qua endpoint chat completions tương thích OpenAI.
| ID mô hình | deepseek/deepseek-v4-pro |
|---|---|
| Endpoint | POST /v1/chat/completions |
| Nhà phát triển | DeepSeek |
Giá
| mỗi 1 triệu token | Giá |
|---|---|
| Đầu vào | $1.74 |
| Đầu vào đã cache | $0.145 |
| Đầu ra | $3.48 |
Tham số
Gửi phần thân chat completions chuẩn của OpenAI: model, messages và các tùy chọn quen thuộc.
Yêu cầu mẫu
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
Kimi K3.1 Pro của Moonshot AI: mô hình suy luận có hỗ trợ function tools.
| ID mô hình | moonshot/kimi-k3.1-pro |
|---|---|
| Endpoint | POST /v1/chat/completions |
| Nhà phát triển | Moonshot AI |
Giá
| mỗi 1 triệu token | Giá |
|---|---|
| Đầu vào | $1.30 |
| Đầu vào đã cache | $0.13 |
| Đầu ra | $6.60 |
Tham số
Gửi phần thân chat completions chuẩn của OpenAI: model, messages và các tùy chọn quen thuộc.
Yêu cầu mẫu
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)Chuyển giọng nói thành văn bản
Whisper
Chuyển giọng nói thành văn bản, gọi qua endpoint audio transcriptions tương thích OpenAI.
| ID mô hình | openai/whisper |
|---|---|
| Endpoint | POST /v1/audio/transcriptions |
| Nhà phát triển | OpenAI |
Giá
| Áp dụng cho | Giá | Giá chính hãng | So với giá chính hãng |
|---|---|---|---|
| Mọi yêu cầu | $0.006 mỗi phút | $0.006 | — |
Tham số
Gửi biểu mẫu multipart gồm file và model.
Yêu cầu mẫu
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)Giá chính hãng là giá niêm yết mà chính hãng phát triển mô hình công bố cho cùng mô hình và cùng thiết lập, theo số liệu ghi trong catalog của chúng tôi. Giá này có thể thay đổi; hãy xem trang giá của hãng để biết con số hiện tại.
Tên sản phẩm và tên mô hình là nhãn hiệu của các chủ sở hữu tương ứng. Minu là dịch vụ độc lập, không liên kết với, không được chứng thực hay tài trợ bởi Google, OpenAI, DeepSeek hoặc kie.ai.