Live web answers with citations

Native Web Search

Give models real-time web access with a single web_search tool and get citations back with the answer.

tools: [{ "type": "web_search" }]
"content": "It is 18°C and sunny in San Francisco.",
"annotations": [
{
"type": "url_citation",
"url_citation": {
"url": "https://weather.example.com/sf",
"title": "San Francisco forecast"
}
}
]
Answer plus sources
01

One tool

Add web_search, done.

02

Citations

Sources returned with the answer.

03

Streaming

Works with streamed responses.

04

SDK friendly

Works with the OpenAI SDK.

Built for

  • Current events

    Answers past the training cutoff

  • Fact checking

    Show where facts come from

  • Live data

    Prices and weather in chat

Turn on search
terminal
1curl https://api.llmgateway.io/v1/chat/completions \2  -H "Authorization: Bearer $LLM_GATEWAY_API_KEY" \3  -H "Content-Type: application/json" \4  -d '{5    "model": "gpt-5.2",6    "messages": [7      {8        "role": "user",9        "content": "Weather in San Francisco?"10      }11    ],12    "tools": [13      {14        "type": "web_search"15      }16    ]17  }'
Read docs

More in models & modalities

All features

Start using Native Web Search today

One API key. Every model. Live in minutes.