← IMAS AI

API reference

Base URL: https://imasai.space/v1

Authenticate every request with a secret key from the dashboard.

Authorization: Bearer sk-imas-...

Or: X-API-Key: sk-imas-...

List models

GET /v1/models
curl https://imasai.space/v1/models -H "Authorization: Bearer sk-imas-..."

Chat completions

POST /v1/chat/completions
{
  "model": "llama3.2",
  "messages": [
    {"role": "system", "content": "You are a helpful assistant."},
    {"role": "user", "content": "Hello"}
  ],
  "stream": false
}

Response is OpenAI-compatible: choices[0].message.content and usage.

Set "stream": true for SSE chunks, ending with data: [DONE].

Errors

Unverified accounts cannot call the API. An admin must approve them first.