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

# API & SDK Reference

> Complete API and SDK reference for the Tensormesh Serverless Inference and Control Plane APIs.

## Serverless Inference API

The Tensormesh Serverless Inference API provides an **OpenAI-compatible** chat completions endpoint for running inference on Tensormesh-hosted serverless models.

**Base URL:** `https://serverless.tensormesh.ai`

### Authentication

| Header          | Description                    |
| --------------- | ------------------------------ |
| `Authorization` | Bearer token with your API key |

`GET /v1/models`, `/health`, and `/version` also work on the public serverless host without auth.

### Quick Example

```bash theme={null}
curl https://serverless.tensormesh.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <your-api-key>" \
  -d '{
    "model": "<your-serverless-model-name>",
    "messages": [
      { "role": "system", "content": "You are a helpful assistant." },
      { "role": "user", "content": "Hello!" }
    ]
  }'
```

## Tensormesh Control Plane API

The Control Plane API lets you programmatically manage models, billing, observability, support tickets, and user accounts.

**Base URL:** `https://api.tensormesh.ai`

<Note>
  Authentication for Control Plane APIs uses a **JWT Bearer token** obtained through your login session.
</Note>

Browse the API groups in the sidebar to explore all available endpoints.
