Agents

Change the LLM model of a live agent

Owner of the agent, or an admin of the owner's company. A plain teammate (who can still view and chat with the agent) gets 404. modelId is an ai_models UUID or an OpenRouter slug (same shapes as at creation). Takes effect on the agent's next LLM call. A free OpenRouter model is refused (400) on Atako inference; a direct-provider (OpenAI/Anthropic) BYOK agent and an ended/failed agent answer 409. A Weflayr agent takes a Weflayr model id instead (≥160k known context, else 400 MODEL_CONTEXT_TOO_SMALL).

patch/agents/{id}/model

Request

  • Base URL: https://api.atako.ai
  • URL: https://api.atako.ai/agents/{id}/model
  • Auth: HTTP bearer

Path parameters

idstring required

Agent id

Request body

modelIdstring required

Response

modelIdstring

Changes

No recorded changes to this operation across all 2 revisions of this API.