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
  • Introduction
    • Product Overview
    • Pricing
    • Model Explanation
    • Available Models
  • Guides
    • Quickstart
    • Authentication
    • BYOK
    • Dashboard Guide
    • Prompt Templates
    • Embeddings
    • RAG (Files & Search)
    • Audio
    • Images & Vision
    • Image Generation
    • Compare
    • Batch API
    • Auto Routing
    • Realtime Audio
  • Infrastructure
    • Architecture
LogoLogo
On this page
  • Next Steps
Guides

Quickstart

||View as Markdown|
Was this page helpful?
Edit this page
Previous

Available Models

Next

Authentication

Built with

Follow these steps to generate your first AI completion using the Mesh Router.

1

1. Create a Key

Go to the Mesh Dashboard and navigate to the API Keys section. Create a new key and copy the rsk_... token.

This key is only shown once. Store it securely.
2

2. Add Credits

Mesh uses a pre-paid model. Add a small balance (starting from ₹100 or $5) in the Billing section to enable inference.

3

3. Make Your First Request

Use your favorite HTTP client (like curl, Postman, or the OpenAI SDK) to call the completions endpoint.

$curl https://api.meshapi.ai/v1/chat/completions \
> -H "Authorization: Bearer <YOUR_RSK_KEY>" \
> -H "Content-Type: application/json" \
> -d '{
> "model": "openai/gpt-4o",
> "messages": [
> {"role": "user", "content": "Explain quantum computing in one sentence."}
> ]
> }'
4

4. Explore Models

To see all available models and their current pricing, use the models endpoint:

$curl https://api.meshapi.ai/v1/models \
> -H "Authorization: Bearer <YOUR_RSK_KEY>"

Next Steps

  • Take a look at the Authentication guide to learn more about key management.
  • Check out the API Reference for full request/response schemas.