Models

Your AI model

Connect your favorite provider's AI model (BYOK): providers, connection, security and errors.

Each Qaalia agent answers with the AI model you choose, from your favorite provider: you connect your account with BYOK (bring your own key) and the agent uses that model in all its integrations. AI usage is billed by your provider directly; Qaalia provides everything else: memory, tools, documents, long tasks, triggers, MCP servers and logs.

Without a connected model the agent doesn't answer: the API returns 400 with codigo modelo_no_configurado. Connect it once and it works in Qaalia Chat, in your system and in your triggers.

Why your own model

  • You choose any model from your provider: a newly launched one, the fastest one or the one that reasons best.
  • You use your balance, your limits and your agreements with the provider; Qaalia doesn't limit your model's tokens.
  • The content of conversations only goes to the provider you chose.

How to connect your model

  • In the dashboard, go to Agent → Customize → General → AI model and click Connect my provider.
  • Choose the provider, paste its API key and click Load models: Qaalia lists the models your key can use.
  • Choose the model and check its context (it fills in automatically when the provider reports it).
  • Click Test connection or directly Save and use: Qaalia makes a minimal request to check that the key, the model and the tools work before saving.

With the card's switch you pause the model at any time: while it's paused the agent doesn't answer. Changing models or providers doesn't touch your integration. Each agent has its own configuration.

Supported providers

ProviderModelsNotes
OpenRouterAny model in its catalog that uses toolsIncludes web search.
OpenAIGPT and reasoning modelsKey from platform.openai.com.
AnthropicClaudeNative Claude API, with visible reasoning.
GoogleGeminiKey from Google AI Studio.
xAIGrokKey from console.x.ai.
DeepSeekDeepSeekIts reasoning is kept between steps, as its API requires.
MoonshotKimiIts reasoning is kept between steps, as its API requires.
Alibaba CloudQwenYou can use your region's or workspace's address.
MistralMistralKey from console.mistral.ai.
GroqHigh-speed open modelsKey from console.groq.com.
OtherAny OpenAI-compatible APIEnter its base URL (https and public). Ideal for your own models or other providers'.
If your key fails (invalid key, no balance or model not available), the error is shown in the chat, in your system and in the logs, with your provider's name, and the model card shows the last error so you can fix it.

How to choose the model

  • It must use tools: without them the agent can't run actions, batches or visual blocks. The connection test checks it.
  • Enough context: conversation memory adjusts to the context you set; 128,000 tokens or more works well.
  • Reasoning: models that reason perform better on long tasks; Qaalia shows their reasoning when the provider delivers it.

Backup model

Optional. In Customize → Settings → Backup model you connect a second model, from another provider or the same one, that answers only when your main model fails: it runs out of balance, its provider is down or overloaded, or the model stops existing. It receives exactly the same conversation, the same context and the same tools.

  • It steps in before the main one answers: it never switches models in the middle of a response.
  • It applies to that turn; on the next one, your agent tries the main model again.
  • If your main key is invalid, it doesn't step in: that error is reported so you can fix it.
  • It never hides the failure: it's recorded on your main model, the dashboard shows when and why the backup answered, and the chat indicates it.
  • Use a context equal to or larger than the main model's: while it's connected, conversations use the smaller context of the two.

Your key's security

  • It's stored encrypted and never shown in full: in the dashboard you only see its beginning and end.
  • The model never receives it, and it doesn't appear in logs or error messages.
  • It's only sent to the provider address you saved it with.
  • When you delete it or delete the agent, it's erased forever.

Errors from your provider

CodeWhat it meansWhat to do
byok_clave_invalidaYour provider rejected the key.Check it or create another one at your provider.
byok_sin_saldoYour provider account has no balance.Top up your balance at your provider.
byok_limite_proveedorYour provider rate-limited the requests (429).Wait a few seconds or raise your limit.
byok_modelo_no_disponibleThe model doesn't exist or your key doesn't have access.Choose another model.
byok_proveedor_errorYour provider failed to respond.Retry or check your provider's status.
modelo_no_configuradoThe agent doesn't have a model connected (or it's paused).Connect or activate it in AI model.

Frequently asked questions

Can I choose the model on each request?
No. The model is configured on the agent; that way your integration doesn't change when you change models.
Can I connect my model on any plan?
Yes. BYOK is available on all plans and on each agent separately.
Who bills the model usage?
Your provider, directly on your account. Qaalia doesn't limit your model's tokens: the limits are your provider's. Messages are unlimited.
Does anything change in my API integration?
No. Your system keeps calling the same endpoint with the same API key; the agent decides which model to answer with.