# Overview

Endpoints, authentication, model IDs, and routing syntax for the Amux AI API.

Amux AI (amux.ai) provides inference and generation endpoints compatible with OpenAI, Anthropic, and Google Gemini, along with a unified asynchronous media task API. Existing clients and official SDKs can integrate directly by updating the base URL and API key.

## Addresses and endpoints

- API host: `https://gateway.amux.ai`
- OpenAI SDK `base_url`: `https://gateway.amux.ai/v1`

Endpoints are grouped by protocol and calling pattern:

### Text generation (convertible protocols)

| Protocol | Method | Path |
|---|---|---|
| OpenAI Chat Completions | POST | `/v1/chat/completions` |
| OpenAI Responses | POST | `/v1/responses` |
| Anthropic Messages | POST | `/v1/messages` |
| Google Gemini | POST | `/v1beta/models/{model}:generateContent`<br>`/v1/models/{model}:generateContent` |

### Image generation and editing

| Protocol | Method | Path |
|---|---|---|
| Google Gemini | POST | `/v1beta/models/{model}:generateContent`<br>`/v1/models/{model}:generateContent` |
| OpenAI Images | POST | `/v1/images/generations` |
| OpenAI Images (edit) | POST | `/v1/images/edits` |
| Alibaba Model Studio Image | POST | `/api/v1/services/aigc/multimodal-generation/generation` |
| Alibaba Model Studio Image (async) | POST | `/api/v1/services/aigc/image-generation/generation` |
| Volcengine Ark Image | POST | `/api/v3/images/generations` |

### Audio (Text to Speech & Speech to Text)

| Protocol | Method | Path |
|---|---|---|
| Text to Speech | POST | `/v1/tools/tts` |
| Speech to Text | POST | `/v1/tools/asr` |

### Video generation

| Protocol | Method | Path |
|---|---|---|
| Alibaba Model Studio Video | POST | `/api/v1/services/aigc/video-generation/video-synthesis` |
| Alibaba Model Studio Video (get) | GET | `/api/v1/tasks/{id}` |
| MiniMax Video | POST | `/v2/video_generation` |
| MiniMax Video (get) | GET | `/v2/query/video_generation/{id}` |
| Volcengine Ark Video | POST | `/api/v3/contents/generations/tasks` |
| Volcengine Ark Video (get) | GET | `/api/v3/contents/generations/tasks/{id}` |
| xAI Video | POST | `/v1/videos/generations` |
| xAI Video (edit) | POST | `/v1/videos/edits` |
| xAI Video (extend) | POST | `/v1/videos/extensions` |
| xAI Video (get) | GET | `/v1/videos/{id}` |
| Sand.ai Video | POST | `/v2/generations` |
| Sand.ai Video (get) | GET | `/v2/generations/{id}` |

### Decisions

| Protocol | Method | Path |
|---|---|---|
| TypeSafeAI System One | POST | `/v1/systemone` |

### Embeddings

| Protocol | Method | Path |
|---|---|---|
| OpenAI Embeddings | POST | `/v1/embeddings` |

### Rerank

| Protocol | Method | Path |
|---|---|---|
| Jina Rerank | POST | `/v1/rerank` |

### Web Search, Fetch & Document OCR

| Protocol | Method | Path |
|---|---|---|
| Web Search | POST | `/v1/tools/search` |
| Web Fetch | POST | `/v1/tools/fetch` |
| Document OCR | POST | `/v1/tools/ocr` |

### Unified asynchronous generation

| Protocol | Method | Path |
|---|---|---|
| Amux Tasks | POST | `/v1/tasks` |
| Amux Tasks (get) | GET | `/v1/tasks/{id}` |
| Amux Tasks (cancel) | POST | `/v1/tasks/{id}/cancel` |

- **Text protocols**: OpenAI Chat Completions, OpenAI Responses, Anthropic Messages, and Google Gemini support cross-protocol conversion. Refer to each model detail page for supported entry points.
- **Image protocols**: OpenAI Images endpoints are dedicated to image generation and editing and do not participate in text protocol conversion. Google Gemini `generateContent` supports both text and image generation, controlled via `generationConfig.responseModalities` in the request body.
- **Asynchronous media tasks**: Amux Tasks provides a unified asynchronous API where the `model` parameter determines the modality. Image, video, and audio tasks share the same submission and retrieval endpoints.
- **Decision models**: TypeSafeAI System One serves structured decision models that return typed evaluations for each question rather than free-form text, and does not participate in text protocol conversion. See [Jev](/api-reference/decisions/jev).
- **Embeddings and reranking**: `POST /v1/embeddings` (compatible with OpenAI SDKs and Jina extensions) generates dense text and multimodal vectors; `POST /v1/rerank` scores and reorders candidate documents against a query. Both are synchronous direct-pass endpoints and do not participate in text protocol conversion. See [Create Embeddings](/api-reference/models/embeddings) and [Rerank Documents](/api-reference/models/rerank).
- **Web search and fetch tools**: `POST /v1/tools/search` and `POST /v1/tools/fetch` expose unified JSON schemas for live web search and webpage extraction, routing by `model` (such as [Jina Search](/api-reference/tools/jina-search), [Jina Fetch](/api-reference/tools/jina-fetch), [DeepSeek Search](/api-reference/tools/deepseek-search), and [DeepSeek Fetch](/api-reference/tools/deepseek-fetch)). See [Web Search](/api-reference/models/tools-search) and [Web Fetch](/api-reference/models/tools-fetch).

## Authentication

Pass your Amux AI API key using the authentication method expected by your target protocol:

| Protocol | Authentication |
|---|---|
| OpenAI-compatible endpoints, Amux Tasks, TypeSafeAI System One, Jina Rerank | `Authorization: Bearer <key>` |
| Anthropic Messages | `x-api-key: <key>` |
| Google Gemini | `x-goog-api-key: <key>` or query parameter `?key=<key>` |

Create and manage API keys on the API Keys page in the console.

The same API key can be used to query account balances and spend limits, verify key configuration, and retrieve active base URLs. Relay services such as new-api, one-api, and sub2api can synchronize balances directly. See [Get Balance and Spend Limits](/api-reference/platform/credits).

## Model identifiers

Use the canonical model ID shown on the model detail page, formatted as `vendor/model`:

```
anthropic/claude-opus-5
openai/gpt-5.6
deepseek/deepseek-v3.2
```

Most models also accept a short name without the vendor prefix (such as `claude-opus-5`), which is returned as `id` by `GET /v1/models`. Model aliases are globally unique across the platform, and both forms resolve to the same model.

### Selecting a provider

By default, Amux AI routes requests across available providers. To pin a request to a specific provider, append `:<provider>` to the model ID:

```
anthropic/claude-opus-5:anthropic
```

Pinned requests do not fail over to other providers. Omit the provider suffix when automatic failover is required.

### Selecting a routing strategy

Append `:@<strategy>` to the model ID to specify provider ordering for a single request:

```
anthropic/claude-opus-5:@price
```

| Suffix | Description |
|---|---|
| `@balanced` | Balances availability and routing weight (default) |
| `@price` | Prioritizes lower unit prices |
| `@latency` | Prioritizes lower time to first token |
| `@throughput` | Prioritizes higher output throughput |
| `@reliability` | Prioritizes higher success rates |

A routing strategy only reorders providers accessible to the current API key; it does not expand the available provider pool. Provider and strategy suffixes cannot be combined. If an API key is configured with a fixed routing strategy, the request cannot override it.

## Protocol and model compatibility

Calling protocol and model support are independent dimensions. Refer to each model detail page for its supported protocols. Unsupported protocol-model combinations return an explicit error and are never silently downgraded.

When calling a model across protocols, certain protocol-specific parameters may be converted or filtered. See [Text protocol conversion](/api-reference/protocol-conversion) for detailed rules.

## Next steps

- Request parameters, response schemas, and examples: select an endpoint from the sidebar
- Cross-protocol parameter mapping: [Text protocol conversion](/api-reference/protocol-conversion)
- Error codes, failover, and retry guidelines: [Errors and retries](/api-reference/errors)
