AI Steps and Providers

Which model each AI step runs on, and how steps and bot replies behave on each: output formats, thinking, long replies, time limits, retries and cost.

A bot's replies and a flow's AI steps (agent_prompt) run on a model you pick. The Model picker on an AI step offers Bot's model, Claude, or OpenCode, which covers OpenAI, Gemini, DeepSeek and GLM. Most settings work the same everywhere. This page covers where Claude and OpenCode models differ, so a step behaves the way you expect on either.

Which model a step runs on

  • The bot's replies run on the model picked in the bot's settings.
  • AI steps and collect steps run on their own model when they have one, and on the bot's model otherwise, OpenCode models included. Set the bot to Gemini 4 Argon and every step left on Bot's model runs on Argon. Each step has its own Model field, so steps in one flow can run on different models. A collect step, and a widget step's chat fallback on WhatsApp, Instagram or SMS, use theirs when they ask by conversation.
  • A step that attaches images or frames keeps the bot's OpenCode model when that model can read images (the Gemini and GPT models marked vision in the picker). With a text-only model it runs on the bot's Claude model instead, and the step's model note says so, as does its run history ("moved for images"). Pick a vision model on the step to keep it on OpenCode.
  • Loop steps pick a provider and model the same way. Loop's model follows the loop's setting, then the workspace default. A tier (Cheap, Balanced, Max) is a different model on OpenCode than on Claude, so the list shows the tiers of the provider the step runs on.
  • A model id names its provider. google/gemini-4-argon (any id with a slash) is OpenCode and claude-... is Claude, even when the provider saved next to it says otherwise, as when an agent or flow JSON changes only the model.
  • OpenCode with the Default model runs on the bot's model when the bot is on OpenCode, the way Claude with Default runs on the bot's Claude model. On a step that attaches images it follows the image rule above: a text-only bot model hands the step to the bot's Claude model.
  • The picker shows what runs. A model saved next to the other provider (an agent that changed only the model) shows under the provider it runs on, and the line under the picker names the model the step runs on.
  • Reading a photo or video (the analyze_media tool, Inspect video) always uses Gemini, whatever model the conversation runs on.
  • Your own model (an id like byo-mep_abc123/qwen3:14b, a model on your own computer served through oalo serve) runs like an OpenCode model, once it passed Oalo's model check, and only in your workspace. Its window is the one the check measured. See Run your bot on your own model.
  • Checks the platform runs for you stay on a small Claude model: whether a step's message stays on its job, conversation tags, and member memory.

Output formats

Give an AI step an output format and it returns those fields as data instead of chatting (see Chat flows).

  • Held exactly on newer Claude models: Haiku 4.5, Sonnet 5, Opus 4.8, Opus 5, and the Fable models. The reply always matches the format and contains nothing else, so a branch on its fields never meets a broken value.
  • Asked for in the prompt on older Claude models (Sonnet 4.6, Opus 4.6 and 4.7) and on OpenCode models. They follow it almost always. When a reply can't be read as the format, the step's output has parse_error: true and the raw text. A broken value is never sent to the person, but a plain sentence written instead of the format is sent as a message.

What a held format can carry:

  • Every field you list. List each field a later step reads: on a held format, a field that is not listed is never returned.
  • Length and number limits (a maximum length, a minimum value) are stated to the model but not enforced.
  • A field that is an object with no listed fields of its own (free-form data) can't be held. A format with one is asked for in the prompt instead, on every model.

Thinking first

Turn on Think before answering for an AI step that has to weigh something before it answers, such as a review deciding whether a plan passes. The model reasons first, then writes its answer. The reasoning is not part of the step's output, so a review's output stays the verdict and the fields you asked for.

  • Claude: Haiku 4.5 gets a reasoning budget on top of the step's room. Sonnet 4.6 and Opus 4.6 to 4.8 decide how much to reason. Sonnet 5, Opus 5 and the Fable models already think by default, so the switch changes nothing there.
  • OpenCode models: the switch has no effect. Whether the model reasons first is the model's own setting.

Thinking makes a step slower and costs more AI credit, because the reasoning counts as output. Leave it off for steps that only extract or rephrase.

For a review step, keep the format short: a verdict, the ids that failed, and a one-line reason. The model weighs the case while thinking, so the output doesn't need to restate the plan, and the reason field is what you and later steps can read afterwards.

Long replies

A reply is never used cut off, on either provider.

  • Reply length on an AI step is the room the reply starts with (16384 when left blank), not a cap.
  • Claude: a plain reply that runs out of room is continued, and the parts are joined. A reply in an output format, or a message sent through the step's structured exit, is asked again with twice the room, up to 32000. If it still doesn't fit, the step fails with an error instead of using a partial value.
  • OpenCode models: a reply that runs out of room is continued, up to two more times, and the parts are joined. If it still isn't finished, the step or the turn fails with an error.

A step that fails stops its flow run, like any AI failure.

Steps that speak to the person

An AI step with no output format writes the step's message to the person. On Claude it answers through a structured exit that also says whether the step's job is done, which keeps the step on its job. On the newest Claude models (Opus 5.5, Sonnet 5.5, Fable 5.1), and on any step with thinking turned on, the model is asked to use that exit rather than made to. If it writes a plain reply instead, the reply is used as the message.

Time limits and retries

  • Claude: each call to the model can take up to about four and a half minutes. A bot reply that uses tools makes several calls, each with its own limit.
  • OpenCode models, bot replies: a reply runs as long as it keeps working (writing, or running a tool). It stops after two minutes with no progress, or after ten minutes in all.
  • OpenCode models, flow AI steps: each call can take up to two minutes.
  • Retries: when an OpenCode model fails before it has written anything or run a tool, the bot reply is tried once more. A failure after that is not retried, so nothing is sent or run twice.

Cost per message

On Claude, a message's cost in the conversation's cost history is split into the tool steps and the reply. On OpenCode models it is one total for the message. The total is correct either way.

Related
Start with Oalo

Your own Base, with every feature, from $99 a month.

get started