Documentation

Quickstart

  1. 1. Sign up
  2. 2. Top up your balance and create an API key in the dashboard.
  3. 3. Paste your key into the snippet below and run the request.
Model
curl https://apimira.com/v1/chat/completions \
  -H "Authorization: Bearer am-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-5.4-mini",
    "messages": [
      {
        "role": "user",
        "content": "Hello!"
      }
    ]
  }'

Pick a model — its ID drops into the code together with the right endpoint. The highlight marks the one and only place your key goes: create it in the dashboard under API keys and replace the placeholder.

Base URL / Endpointhttps://apimira.com/v1
API keyam-YOUR_KEY
Model IDopenai/gpt-5.4-mini

The base_url is the address above with a /v1 suffix. The model is set via the model parameter.

Copy the Model ID from the catalog in full, including the part before «/»: for example google/gemini-3.7-flash or anthropic/claude-sonnet-4.6.