> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developers.meshapi.ai/llms.txt.
> For full documentation content, see https://developers.meshapi.ai/llms-full.txt.

# API reference

The Mesh API provides a unified interface for accessing various AI models through a single API key. This interactive reference allows you to explore the available endpoints, test them directly in the browser, and see code snippets in your preferred language.

## Key Features

* **Standardized Completion**: A single OpenAI-compatible endpoint for all models.
* **Model Discovery**: Dynamic listing of available models and pricing.
* **Prompt Templating**: Server-side template management for consistent prompts.

## Base URL

All API requests should be made to:

```bash
https://api.meshapi.ai
```

## Authentication

The Mesh API uses Bearer token authentication. You can obtain your API key from the Mesh developer dashboard.

```bash
Authorization: Bearer <YOUR_API_KEY>
```

## Interactive Explorer

You can use the "Try It" button on any endpoint to send real requests to the Mesh API. Make sure to provide your API key in the authentication section.