Dashboard
Model Gateway

Anthropic

Anthropic Messages API through HALO.

Anthropic-compatible requests use the HALO/claude/v1/messages endpoint and the familiarx-api-key header.

#Make a request

curl https://api.agihalo.com/claude/v1/messages \
  -H "x-api-key: $HALO_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": "Hello from HALO"}]
  }'

#Anthropic SDK

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

const client = new Anthropic({
  apiKey: process.env.HALO_API_KEY,
  baseURL: "https://api.agihalo.com/claude/v1",
});

const message = await client.messages.create({
  model: "claude-sonnet-4-6",
  max_tokens: 256,
  messages: [{ role: "user", content: "Hello from HALO" }],
});

#Headers

Send the HALO key in x-api-key. Keep the requiredanthropic-version header expected by your Anthropic client version. Provider credentials are selected inside HALO and are never returned.