Skip to main content

Moderate
perplexity/sonar/chat

Perplexity Sonar web-grounded chat endpoint: 127,000-token context, up to 8,000 output tokens, image_url vision input, four reasoning levels, and structured JSON output.

Input $0.2125Output $2.125per 1 million tokensCached input $0.2125Cache write $0.2125

Workbench

These examples were written for this endpoint. Replace the prompt and sample media URLs with your own accessible inputs, then check the current quote and model availability before submitting.

  • Input types
    Text
    Output types
    Text
    Input
    $0.2125 / 1 million tokens
    Cached input
    $0.2125 / 1 million tokens
    Output
    $2.125 / 1 million tokens
    Context
    127K
    Max output
    8K

    $0.212/2.13per 1 million tokens · input / output

    basic

    Example single-turn request for Perplexity Sonar showing the standard chat messages payload and max_tokens setting.

    • 1024
    Use this example

This example starts at Input $0.2125 / Output $2.125 per 1 million tokens. The Playground updates the estimate when you change the settings.