Documentation Index
Fetch the complete documentation index at: https://docs.apigo.ai/llms.txt
Use this file to discover all available pages before exploring further.
推奨エンドポイント
最低限のお願い
{
"model": "o4-mini",
"input": "Compare three cache architectures and recommend one.",
"reasoning": {
"effort": "medium"
},
"max_output_tokens": 1200
}
cURLの例
curl https://maas.apigo.ai/v1/responses \
-H "Authorization: Bearer $YOUR API KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "o4-mini",
"input": "Compare three cache architectures and recommend one.",
"reasoning": {
"effort": "medium"
},
"max_output_tokens": 1200
}'
Python の例
from openai import OpenAI
client = OpenAI(
base_url="https://maas.apigo.ai/v1",
api_key="<YOUR API KEY>",
)
response = client.responses.create(
model="o4-mini",
input="Compare three cache architectures and recommend one.",
reasoning={"effort": "medium"},
max_output_tokens=1200,
)
print(response.output_text)
Node.js の例
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://maas.apigo.ai/v1",
apiKey: process.env.YOUR API KEY,
});
const response = await client.responses.create({
model: "o4-mini",
input: "Compare three cache architectures and recommend one.",
reasoning: { effort: "medium" },
max_output_tokens: 1200,
});
console.log(response.output_text);
ベストプラクティス
reasoning.effort のコストとレイテンシを明示的に制御する
- 生の思考連鎖ではなく、意思決定の準備が整った出力を求める
- 通常のチャット トラフィックとは別にレイテンシーとトークン コストを追跡します