perplexity
Package
Section titled “Package”@ai-sdk/perplexity
Factories
Section titled “Factories”AIProviders.perplexity
Capabilities
Section titled “Capabilities”- Language
- Embedding
Perplexity chat and quantized embeddings mirror upstream Perplexity 4.0.39: PERPLEXITY_API_KEY, custom base URL and headers, versioned user-agent suffix, callable/language and embedding/textEmbedding aliases, /chat/completions and /v1/embeddings, text/image/PDF message conversion, JSON schema response format, providerOptions.perplexity passthrough including quantized embedding dimensions and signed/binary base64 decoding with a 512-value preflight limit, citations/images/cost metadata, optional and null streaming delta content, reasoning-token separation from completion tokens with corrected total accounting, Perplexity error schema, and warnings for unsupported topK/stop/seed/custom reasoning while treating provider-default reasoning as a no-op. ProviderV4 type names, ESM-only packaging, Node 22 engines, optional JS headers config, and workflow serialization helpers are JS-only upstream concerns.
Factory argument requirements are defined by the public Swift factory signatures. Use Public symbols when you need the exact initializer or factory declaration.
Return to the provider matrix.