> ## Documentation Index
> Fetch the complete documentation index at: https://docs.geekai.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Anthropic API Compatibility

In addition to its OpenAI-compatible API, GeekAI provides an Anthropic-compatible endpoint for tools such as Claude Code. It supports the following models:

* All Claude models
* GLM: the GLM-4.5, GLM-4.6, and GLM-4.7 series, and GLM-5 and later
* MiniMax: MiniMax-M2, MiniMax-M2.1, MiniMax-M2.5, MiniMax-M2.7, and MiniMax-M3 and later
* Qwen: the Qwen3 and Qwen3.5 series, Qwen3.6, Qwen3.7, Qwen3.8, and Qwen4 and later
* Doubao: the Doubao-Seed-2.x series and Doubao-Seed-Evolving
* Kimi: Kimi-K2, Kimi-K2.5, Kimi-K2.6, and Kimi-K3 and later
* Xiaomi: Mimo-V2.6 and later
* DeepSeek: DeepSeek-Flash and Pro versions

To call these models with the Anthropic SDK, set the base URL and API key to GeekAI's values, just as you would for an OpenAI-compatible model. All other parameters and calls follow the official Anthropic API:

<table>
  <thead>
    <tr>
      <th>Parameter</th>
      <th>Value</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>Base URL</td>

      <td>
        China endpoint: `https://geekai.co/api` \

        International endpoint: `https://geekai.dev/api`
      </td>
    </tr>

    <tr>
      <td>API KEY</td>

      <td>
        China API key: [[https://geekai.co/user/api\_keys](https://geekai.co/user/api_keys)](https://geekai.co/user/api_keys) \

        International API key: [[https://geekai.dev/user/api\_keys](https://geekai.dev/user/api_keys)](https://geekai.dev/user/api_keys) \

        Each API key is associated with a proxy channel. Discounts vary by channel; edit the key to switch channels.
      </td>
    </tr>
  </tbody>
</table>

Example requests:

```bash curl theme={null}
curl https://geekai.co/api/v1/messages \
-H "content-type: application/json" \
-H "x-api-key: $GEEKAI_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-d '{
    "model": "claude-sonnet-5-5",
    "max_tokens": 1024,
    "messages": [{
      "role": "user",
      "content": "Hello, Claude"
    }]
}'
```

```bash python theme={null}
import anthropic

client = anthropic.Anthropic(
    api_key="$GEEKAI_API_KEY",
    base_url="https://geekai.co/api"
)

message = client.messages.create(
    model="claude-sonnet-5-5",
    max_tokens=1024,
    "messages": [{
      "role": "user",
      "content": "Hello, Claude"
    }]
)

print(message.content[0].text)
```

```bash javascript theme={null}
import Anthropic from "@anthropic-ai/sdk";

const client = new Anthropic(
  apiKey: process.env.GEEKAI_API_KEY,
  baseURL: "https://geekai.co/api",
);

const msg = await client.messages.create({
  model: "claude-sonnet-5-5",
  max_tokens: 1024,
  messages: [{
    role: "user",
    content: "Hello, Claude"
  }],
});
console.log(msg.content[0].text);
```

```bash go theme={null}
import anthropic "github.com/anthropics/anthropic-sdk-go"

client := anthropic.NewClient(
  option.WithAPIKey("$GEEKAI_API_KEY"),
  option.WithBaseURL("https://geekai.co/api"),
)

msg, _ := client.Messages.New(
  context.TODO(),
  anthropic.MessageNewParams{
    Model:     anthropic.ModelClaudeSonnet5_5,
    MaxTokens: 1024,
    Messages: []anthropic.MessageParam{
      anthropic.NewUserMessage(
        anthropic.NewTextBlock("Hello, Claude"),
      ),
    },
  },
)
fmt.Println(msg.Content[0].Text)
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.