Is Xenodia chat API OpenAI-compatible?
Yes. The traditional chat surface is intentionally OpenAI-compatible so most server integrations can adapt with minimal changes.
Use `POST /v1/chat/completions` when you need OpenAI-compatible text generation through Xenodia with one account and one API surface.
Xenodia's traditional API keeps the OpenAI-compatible chat surface. Use POST /v1/chat/completionswhen you want direct server-side or workflow integration without the CLI bootstrap.
POST https://api.xenodia.xyz/v1/chat/completionsAuthorization: Bearer YOUR_LONG_TERM_KEY{
"model": "gpt-5.4",
"messages": [
{ "role": "user", "content": "Reply with OK only." }
]
}curl -X POST "https://api.xenodia.xyz/v1/chat/completions" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $XENODIA_API_KEY" \
-d '{
"model": "gpt-5.4",
"messages": [
{ "role": "system", "content": "You are a precise test assistant." },
{ "role": "user", "content": "Reply with OK only." }
],
"temperature": 0
}'{
"id": "chatcmpl-xxx",
"object": "chat.completion",
"created": 1760000000,
"choices": [
{
"index": 0,
"message": { "role": "assistant", "content": "OK" },
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 18,
"completion_tokens": 1,
"total_tokens": 19
}
}Yes. The traditional chat surface is intentionally OpenAI-compatible so most server integrations can adapt with minimal changes.
Query `/v1/models` first, then select a model that matches your modality, price, and channel requirements.