チャットOpenAI
GPT-6 Luna
OpenAI の GPT-6 Luna:GPT-6 ファミリーで最も低価格なモデルで、大量処理向けです。
- モデル ID
openai/gpt-6-luna- エンドポイント
POST /v1/chat/completions
料金
| 100 万トークンあたり | Minu |
|---|---|
| 入力トークン | $0.10 |
| キャッシュ済み入力トークン | $0.01 |
| 出力トークン | $0.50 |
チャットは、各レスポンスの後に、入力と出力のトークン数に応じて課金されます。
リクエスト例
公式の OpenAI SDK をそのまま使えます。baseURL を https://api.minu.ai/v1 に設定し、Minu のキーを使用してください。
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)入力パラメーター
標準の OpenAI Chat Completions のボディ(model、messages、各種オプション)を送信します。