AI Gateway

All Models/

Sonar Reasoning

Sonar Reasoning by Perplexity

A reasoning-focused model that outputs Chain of Thought (CoT) in responses, providing detailed explanations with search grounding.

index.ts
import { streamText } from 'ai'
const result = streamText({
model: 'perplexity/sonar-reasoning',
prompt: 'Why is the sky blue?'
})