# Web Search

## Overview

This capability of text chat models allows them to send search queries to the web, retrieve relevant content, and use it to generate more accurate and up-to-date responses—particularly useful for recent events or less common topics.

## Models That Support Web Search

* [gpt-4o-search-preview](https://docs.aimlapi.com/api-references/text-models-llm/openai/gpt-4o-search-preview)
* [gpt-4o-mini-search-preview](https://docs.aimlapi.com/api-references/text-models-llm/openai/gpt-4o-mini-search-preview)
* [moonshot/kimi-k2-preview](https://docs.aimlapi.com/api-references/text-models-llm/moonshot/kimi-k2-preview)
* [moonshot/kimi-k2-0905-preview](https://docs.aimlapi.com/api-references/text-models-llm/moonshot/kimi-k2-preview)
* [moonshot/kimi-k2-turbo-preview](https://docs.aimlapi.com/api-references/text-models-llm/moonshot/kimi-k2-turbo-preview)
* [perplexity/sonar](https://docs.aimlapi.com/api-references/text-models-llm/perplexity/sonar)
* [perplexity/sonar-pro](https://docs.aimlapi.com/api-references/text-models-llm/perplexity/sonar-pro)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.aimlapi.com/capabilities/web-search.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
