Append :online to the model
The simplest form: add :online after any supported model ID.
{
"model": "openai/gpt-4o-mini:online",
"messages": [
{ "role": "user", "content": "What changed in the EU AI Act this month?" }
]
}Add :online to the model name, or turn on web search in the request. BazaarLink runs the search first, hands the model what it found along with the sources, and the answer comes back with clickable citations.
All three behave the same. BazaarLink runs the search; these parameters are not passed through to the model. Works on chat/completions, responses and messages, streaming or not.
The parameter format is compatible with OpenRouter: code that already enables web search the OpenRouter way keeps working after you point its base URL at BazaarLink.
Running the model on your own upstream key or your own machine? Add :online just the same and the model checks the web before answering. The search runs on the platform side, and the results go to your key or node together with the question.
BazaarLink doesn't charge the model cost — only the search fee.
About BYOKThe model fee is zero — only the search fee is charged.
About BYOCThe search fee is billed at platform prices, so your account needs enough balance to cover it. If a request is handled by a platform model instead, the model is billed at platform rates.
Each web search is billed at platform pricing, on top of the model's own cost; high-level searches cost more per search.
The model itself is free, but the web search is billed at platform pricing.
If the search service is unavailable, the request returns 503 (web_search_unavailable), the model is not called and there is no search charge. If the model does not end up producing a successful response, there is no search charge either.
Requests stopped before the search — insufficient balance, invalid parameters and similar — do not run a search and incur no search charge.
Every source the answer draws on is added to annotations as a url_citation with its URL, title and an excerpt, so you can show citations in your UI.
The full parameter list, error codes and complete examples for each endpoint are in the web search section of the docs.
Nothing to apply for — your existing API key works. Search charges come out of your account balance.
Get an API key