Referência
Model reference
Every model the API serves, with its ID, endpoint, price, parameters and a request sample. Generated from the catalog.
Esta página ainda não foi traduzida. A versão em inglês está sendo exibida.
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.
As descrições de parâmetros vêm diretamente do catálogo da API e por isso aparecem em inglês.
Imagem
Nano Banana 2 Lite
Geração e edição de imagens rápida e de baixo custo, com imagens de referência.
| ID do modelo | google/nano-banana-2-lite |
|---|---|
| Endpoint | POST /v1/tasks |
| Fornecedor |
Preço
| Aplica-se a | Preço | Preço oficial | vs. preço oficial |
|---|---|---|---|
| Toda requisição | $0.017 por imagem | $0.0336 | 49% menos |
Parâmetros
Campos do objeto input.
| Parâmetro | Tipo | Padrão | Valores permitidos | Descrição |
|---|---|---|---|---|
promptobrigatório | string | — | Até 10.000 caracteres | What the image should show. |
image_urlsopcional | string[] | — | Até 10 itens; URL | Reference images: people, objects or styles the result should keep. PNG, JPEG or WebP. |
aspect_ratioopcional | string | 16:9 | Um de: 16:9, 9:16 | Shape of the result: landscape or portrait. |
nopcional | integer | 1 | 1 a 4 | How many images to make. Each one is charged. |
seedopcional | integer | — | 0 a 2147483647 | Fix it to make a result repeatable. |
Exemplo de requisição
# 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
Geração e edição de imagens que preserva pessoas e objetos das imagens de referência.
| ID do modelo | google/nano-banana-2 |
|---|---|
| Endpoint | POST /v1/tasks |
| Fornecedor |
Preço
| Aplica-se a | Preço | Preço oficial | vs. preço oficial |
|---|---|---|---|
| Toda requisição | $0.033 por imagem | $0.067 | 50% menos |
Parâmetros
Campos do objeto input.
| Parâmetro | Tipo | Padrão | Valores permitidos | Descrição |
|---|---|---|---|---|
promptobrigatório | string | — | Até 10.000 caracteres | What the image should show. |
image_urlsopcional | string[] | — | Até 10 itens; URL | Reference images: people, objects or styles the result should keep. PNG, JPEG or WebP. |
aspect_ratioopcional | string | 16:9 | Um de: 16:9, 9:16 | Shape of the result: landscape or portrait. |
nopcional | integer | 1 | 1 a 4 | How many images to make. Each one is charged. |
seedopcional | integer | — | 0 a 2147483647 | Fix it to make a result repeatable. |
Exemplo de requisição
# 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
O Nano Banana mais capaz: cenas complexas, texto em imagens e grande fidelidade às referências.
| ID do modelo | google/nano-banana-pro |
|---|---|
| Endpoint | POST /v1/tasks |
| Fornecedor |
Preço
| Aplica-se a | Preço | Preço oficial | vs. preço oficial |
|---|---|---|---|
| Toda requisição | $0.075 por imagem | $0.134 | 44% menos |
Parâmetros
Campos do objeto input.
| Parâmetro | Tipo | Padrão | Valores permitidos | Descrição |
|---|---|---|---|---|
promptobrigatório | string | — | Até 10.000 caracteres | What the image should show. |
image_urlsopcional | string[] | — | Até 10 itens; URL | Reference images: people, objects or styles the result should keep. PNG, JPEG or WebP. |
aspect_ratioopcional | string | 16:9 | Um de: 16:9, 9:16 | Shape of the result: landscape or portrait. |
nopcional | integer | 1 | 1 a 4 | How many images to make. Each one is charged. |
seedopcional | integer | — | 0 a 2147483647 | Fix it to make a result repeatable. |
Exemplo de requisição
# 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"])Vídeo
Veo 3.1 Lite
Vídeo de oito segundos em 720p com som, a partir de um prompt e imagens de referência opcionais.
| ID do modelo | google/veo-3.1-lite |
|---|---|
| Endpoint | POST /v1/tasks |
| Fornecedor |
Preço
| Aplica-se a | Preço | Preço oficial | vs. preço oficial |
|---|---|---|---|
| 720p | $0.125 por vídeo | $0.40 | 68% menos |
Parâmetros
Campos do objeto input.
| Parâmetro | Tipo | Padrão | Valores permitidos | Descrição |
|---|---|---|---|---|
promptobrigatório | string | — | Até 10.000 caracteres | What happens in the video, including anything that is said. |
image_urlsopcional | string[] | — | Até 3 itens; URL | Up to three reference images of people or objects the video should keep. |
aspect_ratioopcional | string | 16:9 | Um de: 16:9, 9:16 | Shape of the result: landscape or portrait. |
resolutionopcional | string | 720p | Um de: 720p | — |
durationopcional | integer | 8 | Um de: 8 | Length in seconds. |
seedopcional | integer | — | 0 a 2147483647 | Fix it to make a result repeatable. |
Exemplo de requisição
# 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
Vídeo de oito segundos em 720p com som e maior fidelidade, a partir de um prompt e imagens de referência opcionais.
| ID do modelo | google/veo-3.1-fast |
|---|---|
| Endpoint | POST /v1/tasks |
| Fornecedor |
Preço
| Aplica-se a | Preço | Preço oficial | vs. preço oficial |
|---|---|---|---|
| 720p | $0.25 por vídeo | $0.80 | 68% menos |
Parâmetros
Campos do objeto input.
| Parâmetro | Tipo | Padrão | Valores permitidos | Descrição |
|---|---|---|---|---|
promptobrigatório | string | — | Até 10.000 caracteres | What happens in the video, including anything that is said. |
image_urlsopcional | string[] | — | Até 3 itens; URL | Up to three reference images of people or objects the video should keep. |
aspect_ratioopcional | string | 16:9 | Um de: 16:9, 9:16 | Shape of the result: landscape or portrait. |
resolutionopcional | string | 720p | Um de: 720p | — |
durationopcional | integer | 8 | Um de: 8 | Length in seconds. |
seedopcional | integer | — | 0 a 2147483647 | Fix it to make a result repeatable. |
Exemplo de requisição
# 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
Vídeo de 3 a 15 segundos com som, em 360p ou 720p, com até sete imagens de referência.
| ID do modelo | google/gemini-omni-flash-1.2 |
|---|---|
| Endpoint | POST /v1/tasks |
| Fornecedor |
Preço
| Aplica-se a | Preço | Preço oficial | vs. preço oficial |
|---|---|---|---|
| 360p | $0.017 por segundo | $0.023 | 26% menos |
| 720p | $0.037 por segundo | $0.07 | 47% menos |
Parâmetros
Campos do objeto input.
| Parâmetro | Tipo | Padrão | Valores permitidos | Descrição |
|---|---|---|---|---|
promptobrigatório | string | — | Até 10.000 caracteres | What happens in the video, including anything that is said. |
image_urlsopcional | string[] | — | Até 7 itens; URL | Up to seven reference images of people or objects the video should keep. |
aspect_ratioopcional | string | 16:9 | Um de: 16:9, 9:16 | Shape of the result: landscape or portrait. |
resolutionopcional | string | 720p | Um de: 360p, 720p | — |
durationopcional | integer | 8 | 3 a 15 | Length in seconds. The price is per second. |
Exemplo de requisição
# 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"])Música
Lyria 3.5
Uma música completa a partir de uma descrição: até duas versões, cada uma com letra e capa.
| ID do modelo | google/lyria-3.5 |
|---|---|
| Endpoint | POST /v1/tasks |
| Fornecedor |
Preço
| Aplica-se a | Preço | Preço oficial | vs. preço oficial |
|---|---|---|---|
| Toda requisição | $0.05 por requisição | $0.08 | 37% menos |
Parâmetros
Campos do objeto input.
| Parâmetro | Tipo | Padrão | Valores permitidos | Descrição |
|---|---|---|---|---|
promptobrigatório | string | — | Até 5.000 caracteres | What the song is about and how it should sound. |
lyricsopcional | string | — | Até 10.000 caracteres | Your own lyrics. Left out, the model writes them. |
instrumentalopcional | boolean | false | — | True for a song without vocals. |
titleopcional | string | — | Até 120 caracteres | — |
Exemplo de requisição
# 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
Uma música completa a partir de uma descrição: até duas versões, cada uma com letra e capa.
| ID do modelo | google/lyria-3-pro |
|---|---|
| Endpoint | POST /v1/tasks |
| Fornecedor |
Preço
| Aplica-se a | Preço | Preço oficial | vs. preço oficial |
|---|---|---|---|
| Toda requisição | $0.05 por requisição | $0.08 | 37% menos |
Parâmetros
Campos do objeto input.
| Parâmetro | Tipo | Padrão | Valores permitidos | Descrição |
|---|---|---|---|---|
promptobrigatório | string | — | Até 5.000 caracteres | What the song is about and how it should sound. |
lyricsopcional | string | — | Até 10.000 caracteres | Your own lyrics. Left out, the model writes them. |
instrumentalopcional | boolean | false | — | True for a song without vocals. |
titleopcional | string | — | Até 120 caracteres | — |
Exemplo de requisição
# 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
Letra de música a partir de uma descrição, em texto.
| ID do modelo | google/lyria-lyrics |
|---|---|
| Endpoint | POST /v1/tasks |
| Fornecedor |
Preço
| Aplica-se a | Preço | Preço oficial | vs. preço oficial |
|---|---|---|---|
| Toda requisição | $0.002 por requisição | — | — |
Parâmetros
Campos do objeto input.
| Parâmetro | Tipo | Padrão | Valores permitidos | Descrição |
|---|---|---|---|---|
promptobrigatório | string | — | Até 5.000 caracteres | What the song is about. |
Exemplo de requisição
# 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, da OpenAI: o nível intermediário da família GPT-6, para escrita, análise e código do dia a dia.
| ID do modelo | openai/gpt-6.1-sol |
|---|---|
| Endpoint | POST /v1/chat/completions |
| Fornecedor | OpenAI |
Preço
| por 1M de tokens | Preço |
|---|---|
| Entrada | $0.50 |
| Entrada em cache | $0.025 |
| Saída | $2.50 |
Parâmetros
Envie o corpo padrão de chat completions da OpenAI: model, messages e as opções habituais.
Exemplo de requisição
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, da OpenAI: o nível mais alto da família GPT-6, para os raciocínios mais difíceis.
| ID do modelo | openai/gpt-6-astra |
|---|---|
| Endpoint | POST /v1/chat/completions |
| Fornecedor | OpenAI |
Preço
| por 1M de tokens | Preço |
|---|---|
| Entrada | $2.30 |
| Entrada em cache | $0.23 |
| Saída | $11.60 |
Parâmetros
Envie o corpo padrão de chat completions da OpenAI: model, messages e as opções habituais.
Exemplo de requisição
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, da OpenAI: o nível de menor preço do GPT-6, para trabalho de alto volume.
| ID do modelo | openai/gpt-6-luna |
|---|---|
| Endpoint | POST /v1/chat/completions |
| Fornecedor | OpenAI |
Preço
| por 1M de tokens | Preço |
|---|---|
| Entrada | $0.10 |
| Entrada em cache | $0.01 |
| Saída | $0.50 |
Parâmetros
Envie o corpo padrão de chat completions da OpenAI: model, messages e as opções habituais.
Exemplo de requisição
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, da OpenAI: o nível de baixo preço da geração anterior.
| ID do modelo | openai/gpt-5.6-luna |
|---|---|
| Endpoint | POST /v1/chat/completions |
| Fornecedor | OpenAI |
Preço
| por 1M de tokens | Preço |
|---|---|
| Entrada | $0.046 |
| Entrada em cache | $0.0046 |
| Saída | $0.28 |
Parâmetros
Envie o corpo padrão de chat completions da OpenAI: model, messages e as opções habituais.
Exemplo de requisição
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
Modelo de chat, chamado pelo endpoint de chat completions compatível com OpenAI.
| ID do modelo | deepseek/deepseek-v3.2 |
|---|---|
| Endpoint | POST /v1/chat/completions |
| Fornecedor | DeepSeek |
Preço
| por 1M de tokens | Preço |
|---|---|
| Entrada | $0.58 |
| Entrada em cache | $0.58 |
| Saída | $1.68 |
Parâmetros
Envie o corpo padrão de chat completions da OpenAI: model, messages e as opções habituais.
Exemplo de requisição
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
Modelo de chat, chamado pelo endpoint de chat completions compatível com OpenAI.
| ID do modelo | deepseek/deepseek-v4.1-flash |
|---|---|
| Endpoint | POST /v1/chat/completions |
| Fornecedor | DeepSeek |
Preço
| por 1M de tokens | Preço |
|---|---|
| Entrada | $0.10 |
| Entrada em cache | $0.002 |
| Saída | $0.39 |
Parâmetros
Envie o corpo padrão de chat completions da OpenAI: model, messages e as opções habituais.
Exemplo de requisição
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
Modelo de chat, chamado pelo endpoint de chat completions compatível com OpenAI.
| ID do modelo | deepseek/deepseek-v4-pro |
|---|---|
| Endpoint | POST /v1/chat/completions |
| Fornecedor | DeepSeek |
Preço
| por 1M de tokens | Preço |
|---|---|
| Entrada | $1.74 |
| Entrada em cache | $0.145 |
| Saída | $3.48 |
Parâmetros
Envie o corpo padrão de chat completions da OpenAI: model, messages e as opções habituais.
Exemplo de requisição
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, da Moonshot AI: um modelo de raciocínio com ferramentas de função.
| ID do modelo | moonshot/kimi-k3.1-pro |
|---|---|
| Endpoint | POST /v1/chat/completions |
| Fornecedor | Moonshot AI |
Preço
| por 1M de tokens | Preço |
|---|---|
| Entrada | $1.30 |
| Entrada em cache | $0.13 |
| Saída | $6.60 |
Parâmetros
Envie o corpo padrão de chat completions da OpenAI: model, messages e as opções habituais.
Exemplo de requisição
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)Transcrição
Whisper
Conversão de fala em texto, chamada pelo endpoint de audio transcriptions compatível com OpenAI.
| ID do modelo | openai/whisper |
|---|---|
| Endpoint | POST /v1/audio/transcriptions |
| Fornecedor | OpenAI |
Preço
| Aplica-se a | Preço | Preço oficial | vs. preço oficial |
|---|---|---|---|
| Toda requisição | $0.006 por minuto | $0.006 | — |
Parâmetros
Envie um formulário multipart com file e model.
Exemplo de requisição
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)O preço oficial é o preço de tabela que o fornecedor do modelo publica para o mesmo modelo e as mesmas configurações, conforme registrado em nosso catálogo. Ele pode mudar; consulte a página de preços do próprio fornecedor para ver o valor atual.
Os nomes de produtos e modelos são marcas registradas de seus respectivos proprietários. A Minu é um serviço independente e não é afiliada, endossada nem patrocinada por Google, OpenAI, DeepSeek ou kie.ai.