Skip to main content
Mesh API is an intelligent AI model gateway that provides a unified, OpenAI-compatible interface for accessing LLMs from dozens of providers. One Router Service Key (rsk_...) gives you access to the world’s best models — with built-in billing, logging, rate limits, and performance optimizations. You don’t need to manage multiple API keys, learn different SDKs, or rebuild your integration every time a new model drops. Drop Mesh in as a base-URL replacement and get everything else for free.

What you can do

Chat & reasoning

OpenAI-compatible chat completions across 900+ models, plus the Responses API for controllable reasoning effort and provider-hosted tools.

Multi-modal

Vision, image and video generation, text-to-speech, speech-to-text, and bidirectional realtime voice.

Retrieval & memory

Upload and search your own documents, generate embeddings, and attach durable per-user memory to any request.

Cost control

Per-key spend caps, rate limits, a free response cache, batch pricing, and usage analytics down to the request.

Why Mesh?

  • One universal API — code once. A single chat-completions request works across every model in the catalog.
  • Unified billing — deposit funds into one account instead of managing dozens of provider subscriptions.
  • Zero-downtime fallbacks — automatically retry and reroute around provider outages. See Retry & Fallback.
  • Cost optimization — a free 24-hour response cache, provider prompt caching, batch pricing, and real-time price discovery.
  • Security — granular API keys with spend caps, rate limits, and zero prompt storage by default.
  • Drop-in replacement — works with any OpenAI-compatible SDK, no code changes needed.

How it works

  1. Authenticate — create a single API key in the dashboard.
  2. Integrate — replace the base URL of any OpenAI-compatible SDK with https://api.meshapi.ai/v1.
  3. Execute — pass the model ID and standard parameters as you normally would. Mesh routes the request to the underlying provider transparently.

Integration at a glance

Next steps