API Reference
Complete reference documentation for the Cortiqa REST API. All endpoints use JSON for request and response bodies and require authentication via API key.
https://api.cortiqa.co/api/v1All Cortiqa REST endpoints are relative to this base URL.
All API requests require authentication. Pass your secret key in the standard Authorization header:
curl https://api.cortiqa.co/api/v1/chat/completions \
-H "Authorization: Bearer sk-cortiqa-YOUR_API_KEY" \
-H "Content-Type: application/json"| Method | Endpoint | Description |
|---|---|---|
POST | /chat/completions | OpenAI-compatible chat & reasoning completions (streaming supported) |
GET | /models | List all available Cortiqa models |
POST | /embeddings | Generate text embeddings for semantic search |
POST | /chats/:id/stream | Live SSE stream for interactive chat sessions |
GET | /status | Health check & LPU infrastructure status |
The API returns standard HTTP status codes:
| Code | Meaning |
|---|---|
200 | Success |
400 | Bad request (invalid parameters) |
401 | Unauthorized (invalid API key) |
403 | Forbidden (insufficient permissions) |
404 | Not found |
429 | Rate limit exceeded |
500 | Internal server error |
529 | API overloaded |
See the Errors reference for detailed error handling guidance.