Skip to main content
This guide gets you from zero to a working API call. By the end you’ll have:
  • A x6.ai account and API key
  • A successful chat completion against any supported model
  • A budget set on your key so you can’t overspend

1. Create an API key

1

Sign in

Visit x6.ai and sign in with email or Google.
2

Top up credits

Open Settings → Billing and add credits.
3

Generate a key

Go to API Keys → Create key. Copy the key (it starts with sk- and is shown only once).

2. Make your first request (OpenAI-compatible)

Replace <X6_API_KEY> with your x6.ai Key.
For available model options, please check the Model Gallery. Simply copy and paste the model name to use it.

3. Use the native Anthropic SDK

x6.ai exposes an Anthropic-compatible Messages endpoint, so any official Anthropic client SDK works by overriding base_url (and pointing api_key at your x6.ai key).
Base URL: https://api.x6.ai — the SDK appends /v1/messages automatically. Make sure to replace <X6_API_KEY> with your API key from x6.ai.
Other official SDKs (Java, Go, Ruby, C#, PHP) work the same way — set the SDK’s base URL to https://api.x6.ai and pass your x6.ai key.

4. Watch your spend

Open Settings → Logs and Settings → Usage to see request volume, latency, and cost broken down by model and key.

Initiate requests through a third-party client

Already using Claude Code, Codex, or another tool that speaks the Anthropic or OpenAI API? Point it at x6.ai and bring your own key — see the Integration Guides for end-to-end setup.