AI Gateway
Perplexity's lightweight offering with search grounding, quicker and cheaper than Sonar Pro.
import { streamText } from 'ai'
const result = streamText({ model: 'perplexity/sonar', prompt: 'Why is the sky blue?'})
Try out Sonar by Perplexity. Usage is billed to your team at API rates. Free users get $5 of credits every 30 days, and you are considered a free user if you haven't made a payment.
Chat with
Powered by AI Gateway