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

# API overview

> Choose the Gateway API for model requests or the Console API for organization management.

Edgee exposes two APIs with different credentials and responsibilities.

| API                             | Use it for                                                    | Credential         |
| ------------------------------- | ------------------------------------------------------------- | ------------------ |
| Gateway API, `https://edgee.io` | Model requests, streaming, and token operations               | Gateway API key    |
| Console API                     | Organizations, Gateway keys, provider keys, and usage exports | Personal API token |

Start with [your first Gateway request](/docs/llm-router/quickstart/api-key) or [Console API setup](/docs/api-reference/console-api-setup). A provider credential registered through BYOK does not replace either Edgee credential.

## Choose a request format

| Endpoint                                                                 | Client or task                  |
| ------------------------------------------------------------------------ | ------------------------------- |
| [`POST /v1/chat/completions`](/docs/llm-router/api-reference/chat-completion) | OpenAI Chat Completions clients |
| [`POST /v1/responses`](/docs/llm-router/api-reference/responses)              | OpenAI Responses clients        |
| [`POST /v1/messages`](/docs/llm-router/api-reference/messages)                | Anthropic Messages clients      |
| [Models](/docs/llm-router/api-reference/models)                               | Discover available models       |
| [Count tokens](/docs/llm-router/api-reference/count-tokens)                   | Count input tokens              |
| [Compress](/docs/llm-router/api-reference/compress)                           | Use the compression endpoint    |

Choose the format expected by your existing client. Model capabilities and supported request fields vary; API compatibility does not mean every provider implements every feature. Use a canonical `author/model` identifier from the model catalog where required.

For OpenAI clients, the usual base URL includes `/v1`: `https://edgee.io/v1`. Anthropic clients append their own endpoint paths; follow the [Anthropic SDK guide](/docs/llm-router/integrations/anthropic).

## Verify and diagnose

After sending a request, find it in **Logs** for the same organization and API key. Inspect the served model/provider and cost. Routing settings can select a different model from the one requested.

For a failed request, inspect both the HTTP status and error body. A 429 caused by a spending limit needs a different response from a transient rate limit. See [Authentication](/docs/llm-router/api-reference/authentication), [Errors](/docs/llm-router/api-reference/errors), and [Usage limits](/docs/features/usage-limits).
