API Reference
Complete reference for all Assisters API endpoints. Our API is OpenAI-compatible, so you can use it as a drop-in replacement.
Base URL
https://api.assisters.devAll API requests should be made to this base URL.
Authentication
All API endpoints require authentication using an API key in the Authorization header:
Authorization: Bearer YOUR_API_KEYSee the authentication guide for more details.
Endpoints
Chat Completions
Generate chat responses using state-of-the-art LLMs
POST
/v1/chat/completionsEmbeddings
Create vector embeddings for semantic search and RAG
POST
/v1/embeddingsModeration
Detect harmful or inappropriate content
POST
/v1/moderateRerank
Improve search relevance with document reranking
POST
/v1/rerankPrompt Injection Detection
Detect malicious prompt manipulation attempts
POST
/api/security/prompt-injectionRate Limits
| Tier | Requests/min | Tokens/min |
|---|---|---|
| Free | 20 | 10,000 |
| Pro | 100 | 100,000 |
| Enterprise | Unlimited | Unlimited |
Rate limit headers are included in all API responses.
Error Handling
The API uses standard HTTP status codes to indicate success or failure:
| Code | Description |
|---|---|
200 | Success |
400 | Bad request - check your parameters |
401 | Unauthorized - invalid API key |
403 | Forbidden - access denied |
429 | Rate limit exceeded |
500 | Server error - retry with backoff |