Try Chatbot
Generate a model response for a conversation. Supports streaming via SSE, tool calling, and RAG file search.
API key passed as a Bearer token.
Generate your key at platform.qolaba.ai.
Example: Authorization: Bearer sk-xxxxxxxxxxxx
Model ID to use for completion
google/gemini-2.5-flashPossible values: If true, response is streamed as Server-Sent Events
falseSampling temperature. Lower values produce more deterministic output
1Maximum number of tokens to generate in the response
Controls tool selection. auto lets the model decide, none disables tools, or specify a function name
RAG vector store names to search for context (format fileSearchStores/{storeId})
Conversation thread ID for multi-turn context tracking
User identifier for analytics and tracking
Webhook URL for async result delivery
Extra key/value metadata to attach to the request
Chat completion response
Unique completion identifier
Unix timestamp of when the completion was created
Model used for the completion
Invalid request parameters
Missing or invalid API key
Organization has insufficient credits
Rate limit exceeded (20 requests per minute)
Upstream provider error
POST /api/v1/chat/completions HTTP/1.1
Host: api.platform.qolaba.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 107
{
"model": "google/gemini-2.5-flash",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}{
"id": "chatcmpl-abc123",
"object": "chat.completion",
"created": 1720000000,
"model": "google/gemini-2.5-flash",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "The capital of France is Paris."
},
"finish_reason": "stop"
}
],
"usage": {
"total_credit": 1,
"total_cost": 0.0002,
"raw_cost": 0.00015
}
}Retrieve available chat models with their capabilities and supported modalities.
API key passed as a Bearer token.
Generate your key at platform.qolaba.ai.
Example: Authorization: Bearer sk-xxxxxxxxxxxx
Filter models by modality (e.g. text, image)
List of available models
Missing or invalid API key
Organization has insufficient credits
GET /api/v1/chat/models HTTP/1.1
Host: api.platform.qolaba.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": [
{
"id": "google/gemini-2.5-flash",
"object": "model",
"created": 1720000000,
"owned_by": "google"
},
{
"id": "google/gemini-2.5-pro",
"object": "model",
"created": 1720000000,
"owned_by": "google"
}
]
}Upload a file for RAG file search. The file is indexed into a vector store that can be referenced in chat completions via file_search_store_names.
API key passed as a Bearer token.
Generate your key at platform.qolaba.ai.
Example: Authorization: Bearer sk-xxxxxxxxxxxx
URL of the file to upload. Supported formats are .pdf, .txt, .doc, .docx
https://example.com/document.pdfOptional name for the vector store. If omitted, a store is created automatically
product-docsFile uploaded and indexed
Whether the upload succeeded
Vector store name in fileSearchStores/{storeId} format
Name of the uploaded file
Status message
Number of tokens indexed from the file
Estimated cost in USD
Credits consumed for this upload
Invalid request (unsupported file type, missing URL)
Missing or invalid API key
Organization has insufficient credits
POST /api/v1/files HTTP/1.1
Host: api.platform.qolaba.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 42
{
"url": "https://example.com/document.pdf"
}{
"success": true,
"store_name": "fileSearchStores/store_abc123",
"file_name": "document.pdf",
"message": "File uploaded successfully",
"token_count": 4520,
"estimated_cost_usd": 0.002,
"creditUtilisation": 1
}Last updated
Was this helpful?