thanhnhan9023/claude-fable-5-aws
Powtarzane prompty są cache'owane — odczyty są znacznie tańsze niż input, stosowane automatycznie przy wywołaniach przez API.
Poziomy cen stosowane wcześniej. Wiersz oznaczony jako „bieżący” to cena obowiązująca.
Szacunek na podstawie cen cennikowych. Cache zwykle obniża koszty.
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/thanhnhan9023/claude-fable-5-aws: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": "thanhnhan9023/claude-fable-5-aws",
"messages": [
{
"role": "user",
"content": "Cześć, kim jesteś?"
}
]
}'
// 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": "thanhnhan9023/claude-fable-5-aws",
"messages": [
{
"role": "user",
"content": "Cześć, kim jesteś?"
}
]
})
});
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": "thanhnhan9023/claude-fable-5-aws",
"messages": [
{
"role": "user",
"content": "Cześć, kim jesteś?"
}
]
}
res = requests.post(url, headers=headers, json=payload, timeout=120)
print(res.status_code, res.json())
{
"model": "thanhnhan9023/claude-fable-5-aws",
"messages": [
{
"role": "user",
"content": "Cześć, kim jesteś?"
}
]
}
Wyślij prompt za pomocą swojego klucza API — zużywa realne środki, wynik jest streamowany natychmiast.
Użyj klucza API swojego konta, aby wysłać prompt do tego modelu.
Zaloguj się