User
Online
U
API Documentation
Integrate AIProGuru's 26 expert agents into your apps with an OpenAI-client-compatible REST API.
1. Create your API key
Go to My Account, create a key and copy it. It is shown only once.
Create my API key2. Make your first call
Send the Authorization: Bearer header with your key. POST https://aiproguru.com/api/v1/chat
curl https://aiproguru.com/api/v1/chat \
-H "Authorization: Bearer aipg_TU_CLAVE" \
-H "Content-Type: application/json" \
-d '{
"model": "aiproguru-30b",
"agent": "abogado",
"language": "es",
"messages": [
{ "role": "user", "content": "¿Cómo constituyo una empresa en EE. UU.?" }
]
}'Available agents
Pass the agent id in the agent field. If omitted, the AI expert is used.
iaingenierocientificoabogadoadminenfermeromedicocontadorprofesorarquitectodisenadorpsicologoperiodistaveterinariofarmaceuticomarketinganalistaeconomistabiologocheftraductoresfotografoagronomopilotonutricionistasinrestriccionStreaming responses
With stream: true you'll receive SSE (Server-Sent Events) with the text as it is generated.
curl -N https://aiproguru.com/api/v1/chat \
-H "Authorization: Bearer aipg_TU_CLAVE" \
-H "Content-Type: application/json" \
-d '{"agent":"ingeniero","stream":true,"messages":[
{"role":"user","content":"Explícame qué es un índice en SQL"}
]}'
# data: {"choices":[{"delta":{"content":"Un índice"}}]}
# data: {"choices":[{"delta":{"content":" en SQL es…"}}]}
# data: [DONE]Quotas per plan
Each /chat call consumes 1 of your daily quota. The quota resets at midnight UTC.
| Plan | GET /models | POST /chat | GET /usage |
|---|---|---|---|
| Gratis | Unlimited | 50 calls/day | Unlimited |
| Starter | Unlimited | 100 calls/day | Unlimited |
| Básico | Unlimited | 500 calls/day | Unlimited |
| Pro | Unlimited | 10,000 calls/day | Unlimited |
| Enterprise | Unlimited | ∞ | Unlimited |
GET endpoints require a valid API key, but don't consume quota.
Errors
401 {"error":{"code":"unauthorized","message":"Invalid or missing API key."}}
403 {"error":{"code":"past_due","message":"Subscription is past due."}}
429 {"error":{"code":"quota_exceeded","message":"Daily API quota exceeded."}}
400 {"error":{"code":"invalid_request","message":"…"}}
400 {"error":{"code":"invalid_agent","message":"Unknown agent 'xyz'. See GET /api/v1/models."}}