For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
DocsAPI ReferenceSDKs
DocsAPI ReferenceSDKs
  • Overview
    • API reference
  • Mesh API
LogoLogo
On this page
  • Key Features
  • Base URL
  • Authentication
  • Interactive Explorer
Overview

API reference

Interactive documentation for the Mesh API
||View as Markdown|
Was this page helpful?
Edit this page
Next

Chat Completions

Built with

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

  • Chat Completions: OpenAI-compatible text, multimodal, and streaming inference.
  • Responses API: Reasoning-style response generation for supported models.
  • Embeddings: Dense vector creation for search and retrieval workflows.
  • Compare: Run the same prompt across multiple models in one request.
  • Files and Batches: Upload request bundles, create asynchronous jobs, and download results.
  • Model Discovery and Templates: Browse available models and reuse prompt templates.

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.