You can request an API key from the landing page. Once submitted, an admin reviews the request and provisions the key. You will receive an email when the key is ready.
Chat Completions
The chat completions endpoint provides an OpenAI-compatible interface for sending messages and receiving AI-generated responses.
Endpoint
POST http://localhost:8000/v1/chat/completions
Request Format
{
"messages": [
{"role": "user", "content": "Hello, how are you?"}
],
"stream": true
}
Response Format
Default
Streaming is the default behavior. Responses are sent as application/x-ndjson over SSE.
The embeddings endpoint generates vector embeddings for input text. The model is determined automatically by the platform based on the embedding model synced via the admin dashboard.
Endpoint
POST http://localhost:8000/v1/embeddings
Request Format
{
"input": "This is the text to embed"
}
Pass an array of strings in input to embed multiple texts in a single request.
Process your documents through your own embedding step, store the vectors in your vector database, then use AI-Gate for chat completion calls that retrieve and reason over your context.
Limits
The following limits apply to all API requests to protect the gateway and ensure fair usage:
Request body size: 3 MB max
Chat messages per request: 128 max
Message content length: 8192 characters max
Embedding inputs per call: 100 max
Embedding input length: 8192 characters max
Rate limit: 60 requests per 60 minutes per API key
Requests exceeding any limit will receive an appropriate error response (413 for oversized bodies, 422 for invalid input, 429 for rate limiting).