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 key

2. 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.

iaingenierocientificoabogadoadminenfermeromedicocontadorprofesorarquitectodisenadorpsicologoperiodistaveterinariofarmaceuticomarketinganalistaeconomistabiologocheftraductoresfotografoagronomopilotonutricionistasinrestriccion

Streaming 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.

PlanGET /modelsPOST /chatGET /usage
GratisUnlimited50 calls/dayUnlimited
StarterUnlimited100 calls/dayUnlimited
BásicoUnlimited500 calls/dayUnlimited
ProUnlimited10,000 calls/dayUnlimited
EnterpriseUnlimited∞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."}}