Search
Perplexity
standardPerplexity is an reliable search provider offering Chat Completion, AI-Powered Search through Aweb's unified API. It features full streaming support with standard-tier latency.
Specifications
Capabilities (2)
Quick start
Use Perplexity through Alfred's unified API — no provider-specific SDK needed.
cURL
curl -X POST https://api.alfred-ai.app/v1/execute \
-H "Authorization: Bearer $ALFRED_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"provider": "perplexity",
"capability": "llm.chat",
"input": { "prompt": "Hello from Perplexity!" }
}'TypeScript
import { Alfred } from '@alfred/core';
const alfred = new Alfred({ apiKey: process.env.ALFRED_API_KEY });
const result = await alfred.execute({
provider: 'perplexity',
capability: 'llm.chat',
input: { prompt: 'Hello from Perplexity!' },
});
console.log(result.output);