Documentation

Make your first API call

Create a key, find a model available to you, and send a chat request through MandAPI.

1. Create an account

Create a MandAPI account and open the API keys page in your dashboard. Create an account.

2. Create a key

Create an API key in the dashboard. Save it securely when it is shown. If you lose it, create a new key and revoke the old one. API keys.

3. Find an available model

The model catalog can change. With your key, list available model IDs before choosing one for Chat Completions. A published price does not guarantee that every model or feature is available to your key.

curl https://api.mandapi.com/v1/models \
  -H "Authorization: Bearer $MANDAPI_API_KEY"

4. Send a request

Set MANDAPI_API_KEY in your server environment. Replace MODEL_ID with an ID returned by /v1/models that supports Chat Completions.

curl https://api.mandapi.com/v1/chat/completions \
  -H "Authorization: Bearer $MANDAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "MODEL_ID",
    "stream": false,
    "messages": [{"role":"user","content":"Hello, MandAPI. Describe your service in one sentence."}]
  }'
This example requests a complete response. Streaming support varies by model. Pricing