POST /v1/web-search

Search the web for agent and RAG workflows.

POST /v1/web-search

Searches the web for current information that can be passed to an inference request as context.

curl https://api.model-gate.com/v1/web-search \
  -H "Authorization: Bearer mg_live_..." \
  -H "content-type: application/json" \
  -d '{"query":"latest quantum computing news","max_results":5}'
ParameterTypeDescription
querystringRequired search query
max_resultsintegerNumber of results, default 10

Use the returned snippets as context for `/v1/messages` or `/v1/chat/completions`.