Skip to main content
APIXO provides the official Anthropic Claude endpoint. Keep your Anthropic request shape and switch the base URL to https://llm.apixo.ai.

Quick Start

Non-streaming

curl -X POST "https://llm.apixo.ai/v1/messages" \
  -H "x-api-key: YOUR_APIXO_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-sonnet-4-6",
    "max_tokens": 256,
    "messages": [
      {"role": "user", "content": "Explain RAG in 3 bullets."}
    ]
  }'

Streaming

curl -N -X POST "https://llm.apixo.ai/v1/messages" \
  -H "x-api-key: YOUR_APIXO_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-sonnet-4-6",
    "stream": true,
    "max_tokens": 256,
    "messages": [
      {"role": "user", "content": "Write a short release note."}
    ]
  }'

Endpoints

  • POST /v1/messages (non-stream and stream)
  • Base URL: https://llm.apixo.ai

Authentication

x-api-key
string
required
Your APIXO API key.
anthropic-version
string
default:"2023-06-01"
required
Required Anthropic protocol version header.

Supported Claude Models

  • claude-haiku-4-5-20251001
  • claude-opus-4-6
  • claude-sonnet-4-6

SDK Integration (JavaScript)

import Anthropic from "@anthropic-ai/sdk";

const client = new Anthropic({
  apiKey: process.env.APIXO_API_KEY,
  baseURL: "https://llm.apixo.ai"
});

const resp = await client.messages.create({
  model: "claude-sonnet-4-6",
  max_tokens: 256,
  messages: [{ role: "user", content: "Give me a short project plan." }]
});

console.log(resp.content);

Error Handling and Retry

  • 401: missing or invalid API key
  • 400: invalid request body or missing required fields
  • 429: rate limit or daily quota exceeded
  • 502: upstream request failed
  • 504: upstream timeout
Recommended retry policy:
  • Retry 429/502/504 with exponential backoff
  • Do not retry 400/401 before fixing request/auth issues

Quick Reference

ItemValue
Base URLhttps://llm.apixo.ai
PathPOST /v1/messages
Stream switchrequest body stream: true
Model locationrequest body model
Auth headerx-api-key
Required extra headeranthropic-version