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

# API Hosts

> Choose the direct API host for inference, uploads, and long-running requests.

## Recommended host

Use `https://api.nano-gpt.com` for API-key requests. The direct API host has a higher request size limit and a longer request runtime than `https://nano-gpt.com`, so it is the better choice for large attachments, long conversations, and model calls that take time to finish. The website host rejects request bodies over about 4.5 MB with HTTP 413, compressed or not. Batch file uploads also use the direct API host.

| Client or request | Base URL or endpoint |
| - | - |
| OpenAI-compatible SDKs | `https://api.nano-gpt.com/api/v1` |
| Anthropic SDK | `https://api.nano-gpt.com/api` (the SDK appends `/v1/messages`) |
| Raw Chat Completions | `https://api.nano-gpt.com/api/v1/chat/completions` |
| Raw Responses | `https://api.nano-gpt.com/api/v1/responses` |
| Raw Messages | `https://api.nano-gpt.com/api/v1/messages` |
| Batch files and jobs | `https://api.nano-gpt.com/api/v1` |
| [Accountless Lightning L402 API Payments](https://docs.nano-gpt.com/api-reference/miscellaneous/x402.md) | `https://api.nano-gpt.com/api/v1` |

The endpoint path and request format stay the same when switching from the website host to the direct API host. For example, replace `https://nano-gpt.com/api/v1/chat/completions` with `https://api.nano-gpt.com/api/v1/chat/completions`. `https://nano-gpt.com/api/v1` keeps working, with the lower limits above.

The direct host's higher ingress limit does not override the application, model, file-type, or provider limits for a particular endpoint. For authenticated Chat Completions, Responses, and Messages JSON requests, the application body limit on `https://api.nano-gpt.com` is 32 MiB, enforced on both compressed and decompressed bodies; check endpoint documentation for multipart and file limits. A long-running call also needs a sufficiently long timeout in your HTTP client.

Check `GET https://api.nano-gpt.com/api/v1/models?detailed=true` for model availability on the direct host. The website and direct API host can have different model catalogs during deployment rollouts; a model listed on one host is not automatically available on the other.

## IPv6-only clients

`api.nano-gpt.com` has an IPv4 address only. A client with no IPv4 route can't reach it directly, so use `https://nano-gpt.com` with the same paths instead.

## Website flows

These routes stay on `https://nano-gpt.com`. The direct API host answers them with `404 route_not_available`, or `403` for browser sign-in:

* The dashboard, browser sign-in, OAuth and device login, including `/api/cli-login/*` and `/api/v1/auth/keys`
* The [Management API](https://docs.nano-gpt.com/api-reference/management-api.md) and Teams routes under `/api/teams`
* Account routes under `/api/user`, including saved provider keys
* Invitations, under `/api/invitations/create`
* USD deposits and Daimo deposits. For simplicity, the [crypto deposit guide](https://docs.nano-gpt.com/api-reference/endpoint/crypto-deposits.md) keeps every `/api/transaction` example here too
* Price helpers: `/api/get-nano-price` and `/api/get-fiat-prices`


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