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

# Agent Platforms

> Wire XMAI into model-agnostic agent platforms with custom providers.

Most model-agnostic agent platforms do not need a dedicated XMAI plugin. If
the platform supports an **OpenAI-compatible** or **custom provider** option, add
XMAI with the same fields you would use for an OpenAI-compatible gateway.

| Field    | Value                            |
| -------- | -------------------------------- |
| Base URL | `https://xmapi.site/v1`          |
| API key  | your XMAI key                    |
| Model    | any id from [Models](/en/models) |

If the platform speaks Anthropic Messages natively, use the bare host
`https://xmapi.site` with a Claude model id instead.

## Choosing a protocol

| Platform setting                       | Use                         |
| -------------------------------------- | --------------------------- |
| OpenAI-compatible / custom OpenAI      | `https://xmapi.site/v1`     |
| Anthropic-compatible / Claude Messages | `https://xmapi.site`        |
| Gemini-compatible                      | `https://xmapi.site/v1beta` |

## Model ids

Copy exact model ids from [Models](/en/models). XMAI does not silently
substitute, quantize, or distill models, so the id you request is the model that
runs.
