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-...
GET /v1/models
curl https://imasai.space/v1/models -H "Authorization: Bearer sk-imas-..."
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].
401 — missing or invalid key403 — key revoked or account not verified429 — rate limit (default 60 requests / minute / key)Unverified accounts cannot call the API. An admin must approve them first.