Quickstart

View as Markdown

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