API reference

Interactive documentation for the Mesh API
View as Markdown

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:

$https://api.meshapi.ai

Authentication

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

$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.