Add :online to a model to attach web search results — the short form of the web plugin.
For better results, use the web search helper: the model decides when to search, and how often.
:onlinesearches once, before the model reads anything.
:online attaches web search results to any model. It is the short form of the web plugin:
{ "model": "anthropic/claude-sonnet-5:online" }is the same as
{
"model": "anthropic/claude-sonnet-5",
"plugins": [{ "id": "web" }]
}curl https://opendunes.com/v1/chat/completions \
-H "Authorization: Bearer $OPENDUNES_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "anthropic/claude-sonnet-5:online",
"messages": [{ "role": "user", "content": "What is the dinar exchange rate announced today?" }]
}'The request travels to the model's provider as you send it, and its answer — or its refusal — comes back as it gave it. Sources come back as url_citation annotations on the message.
The search is billed in DA on top of the model's tokens; the request's usage.cost carries the whole charge.