繰り返しのプロンプトはキャッシュされ、再読み込みは入力より大幅に安くなります。API経由で呼び出すと自動的に適用されます。
過去に適用されたすべての価格レベルです。「現在」の行が使用中の価格です。
公開価格に基づく見積もりです。キャッシュを利用すると通常より安くなります。
https://api.xah.io/v1/chat/completions
https://api.xah.io/v1/messages
https://api.xah.io/v1/responses
https://api.xah.io/v1beta/models/vutienanh291/gpt-5.6-terra:generateContent
https://api.xah.io/api/chat
https://api.xah.io/api/generate
curl 'https://api.xah.io/v1/chat/completions' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"model": "vutienanh291/gpt-5.6-terra",
"messages": [
{
"role": "user",
"content": "こんにちは、あなたは誰ですか?"
}
]
}'
// Node.js / Browser
const res = await fetch('https://api.xah.io/v1/chat/completions', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"model": "vutienanh291/gpt-5.6-terra",
"messages": [
{
"role": "user",
"content": "こんにちは、あなたは誰ですか?"
}
]
})
});
const data = await res.json();
console.log(data);
import requests
url = 'https://api.xah.io/v1/chat/completions'
headers = {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
}
payload = {
"model": "vutienanh291/gpt-5.6-terra",
"messages": [
{
"role": "user",
"content": "こんにちは、あなたは誰ですか?"
}
]
}
res = requests.post(url, headers=headers, json=payload, timeout=120)
print(res.status_code, res.json())
{
"model": "vutienanh291/gpt-5.6-terra",
"messages": [
{
"role": "user",
"content": "こんにちは、あなたは誰ですか?"
}
]
}
あなたのAPIキーでプロンプトを送信 — 実際にクレジットを消費し、結果がすぐにストリーミングされます。