Production API · aiservice.prabisha.com
One API for
AI workloads.
Connect your application to configured chat, image, embedding, and PDF parsing models through one authenticated gateway.
Base URL
https://aiservice.prabisha.com
POST /chat
200 OK
Request
fetch('https://aiservice.prabisha.com/chat', { method: 'POST', headers: { 'X-API-Key': process.env.AI_SERVICE_API_KEY, 'Content-Type': 'application/json' }, body: JSON.stringify({ messages: [{ role: 'user', content: 'Hello, gateway' }] }) });
Response
{
"success": true,
"data": {
"content": "Hello! How can I help?",
"providerName": "GEMINI",
"usage": { "totalTokens": 18 }
}
}
ChatPOST /chat
ImagesPOST /image
EmbeddingsPOST /embeddings
PDFsPOST /documents/parse
API surface
Start with the route you need.
POST /chat
Chat completionsSend role/content messages and receive generated text.
POST /image
Image generationGenerate images using an active image model.
POST /embeddings
Text embeddingsCreate a vector for one string or a batch of strings.
POST /documents/parse
PDF parsingUpload a PDF as multipart form data for Gemini processing.
Configured providers
Use the active models in your gateway.
OpenAI
Anthropic
Gemini
Mistral
Ready to make your first request?
Create a key, keep it server-side, and follow the endpoint guides.