One API key. Unlimited AI. Access GPT-4, Claude, Llama, Gemini and more through XaioAI's unified endpoint — faster, cheaper, and OpenAI-compatible.
// Works with any OpenAI-compatible SDK const client = new OpenAI({ baseURL: "https://XaioAI.com/api/v1", apiKey: "xaioai_your_key_here" }); const res = await client.chat.completions.create({ model: "gpt-4", messages: [{ role: "user", content: "Hello!" }] }); console.log(res.choices[0].message.content);
OpenAI, Anthropic, Meta, Google — all through one endpoint with a unified billing system.
Create your account, purchase a plan, grab your API key, and start making requests in under 60 seconds.
Every model is accessible via OpenAI-compatible API. Pricing is in credits per 1K tokens.
No hidden fees. Pay once, keep your credits. Start with our test plan for just $4.99.
All payments processed via USDT BEP20 (BSC)
XaioAI provides a unified, OpenAI-compatible API to access the world's best language models. With a single API key, you can route requests to GPT-4, Claude, Llama, Gemini, and more.
The API is fully compatible with the OpenAI SDK — simply point the baseURL to XaioAI's endpoint and you're ready to go.
All API requests require an API key sent in the Authorization header as a Bearer token.
Authorization: Bearer xaioai_your_api_key_here
You can find your API key in your Dashboard under the API Keys section. Keep it secret — never expose it in client-side code.
Get up and running in under a minute. Install the OpenAI SDK and point it at XaioAI's base URL.
Create a chat completion. This endpoint is fully compatible with OpenAI's Chat Completions API.
| Parameter | Type | Required | Description |
|---|---|---|---|
| model | string | required | Model ID (e.g. gpt-4) |
| messages | array | required | Array of message objects |
| max_tokens | integer | optional | Max tokens in response |
| temperature | float | optional | Sampling temperature (0-2) |
| stream | boolean | optional | Stream response chunks |
Returns a list of all active models available on XaioAI.
Returns your API usage statistics including total tokens consumed and credits remaining.
# pip install openai from openai import OpenAI client = OpenAI( base_url="https://XaioAI.com/api/v1", api_key="xaioai_your_key_here" ) response = client.chat.completions.create( model="gpt-4", messages=[{"role": "user", "content": "Hello!"}] ) print(response.choices[0].message.content)
// npm install openai import OpenAI from "openai"; const client = new OpenAI({ baseURL: "https://XaioAI.com/api/v1", apiKey: "xaioai_your_key_here" }); const res = await client.chat.completions.create({ model: "claude-3", messages: [{ role: "user", content: "Explain AI in 3 sentences" }] }); console.log(res.choices[0].message.content);
curl https://XaioAI.com/api/v1/chat/completions \ -H "Authorization: Bearer xaioai_your_key" \ -H "Content-Type: application/json" \ -d '{ "model": "llama-3", "messages": [{"role": "user", "content": "Hello!"}] }'