Skip to main content

Overview

The Agentic Research API provides tools that extend model capabilities beyond their training data. Tools must be explicitly configured in your API request—once enabled, models autonomously decide when to use them based on your instructions.

Built-in vs Custom Tools

TypeToolsUse Case
Built-inweb_search, fetch_urlReal-time web information retrieval
CustomYour functionsConnect to databases, APIs, business logic

Quick Example

Enable tools by adding them to the tools array in your request:
from perplexity import Perplexity

client = Perplexity()

response = client.responses.create(
    model="openai/gpt-5.2",
    input="What are the latest AI developments?",
    tools=[
        {"type": "web_search"},
        {"type": "fetch_url"}
    ],
    instructions="Use web_search for current information. Use fetch_url when you need full article content."
)

print(response.output_text)

Pricing

ToolCost
web_search$5.00 per 1,000 calls
fetch_url$0.50 per 1,000 calls
Function CallingNo additional cost (standard token pricing)
You’re also charged for tokens consumed when tool results are embedded in the model’s context. See the Pricing page for full details.

Next Steps