sypham98/claude-opus-4.8
Herhaalde prompts worden gecacht — lezen is veel goedkoper dan invoer en wordt automatisch via de API toegepast.
Eerder toegepaste prijsniveaus. De rij met "huidig" is de actuele prijs.
Schatting op basis van lijstprijzen. Caching maakt het meestal goedkoper.
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/sypham98/claude-opus-4.8: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": "sypham98/claude-opus-4.8",
"messages": [
{
"role": "user",
"content": "Hallo, wie ben jij?"
}
]
}'
// 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": "sypham98/claude-opus-4.8",
"messages": [
{
"role": "user",
"content": "Hallo, wie ben jij?"
}
]
})
});
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": "sypham98/claude-opus-4.8",
"messages": [
{
"role": "user",
"content": "Hallo, wie ben jij?"
}
]
}
res = requests.post(url, headers=headers, json=payload, timeout=120)
print(res.status_code, res.json())
{
"model": "sypham98/claude-opus-4.8",
"messages": [
{
"role": "user",
"content": "Hallo, wie ben jij?"
}
]
}
Stuur een prompt met je API-sleutel - gebruikt echte credits en streamt direct terug.
Gebruik je account-API-sleutel om een prompt naar dit model te sturen.
Inloggen