OptionalapiAPI key for Perplexity. Defaults to the value of PERPLEXITY_API_KEY environment variable.
OptionaldisableWhen set to true, disables web search completely and the model will only use its training data to respond. This is useful when you want deterministic responses without external information.
OptionalenableEnables a classifier that decides if web search is needed based on your query.
OptionalfrequencyFrequency penalty greater than 0
OptionallastFilters search results to only include content last updated after this date.
OptionallastFilters search results to only include content last updated before this date.
OptionalmaxMaximum number of tokens to generate
Model name to use
OptionalpresencePresence penalty between -2 and 2
OptionalreasoningControls how much computational effort the AI dedicates to each query for deep research models. Only applicable for sonar-deep-research.
OptionalreturnWhether to return images
OptionalreturnDetermines whether or not a request to an online model should return related questions.
OptionalsearchFilters search results to only include content published after this date.
OptionalsearchFilters search results to only include content published before this date.
OptionalsearchSearch domain filter - limit the citations used by the online model to URLs from the specified domains.
OptionalsearchControls the search mode used for the request. When set to 'academic', results will prioritize scholarly sources.
OptionalsearchReturns search results within the specified time interval - does not apply to images. Values include month, week, day, hour.
OptionalstreamingWhether to stream the results or not
OptionaltemperatureTemperature parameter between 0 and 2
OptionaltimeoutTimeout for requests to Perplexity
OptionaltopTop K parameter between 1 and 2048
OptionaltopTop P parameter between 0 and 1
OptionalwebConfiguration for using web search in model responses.
Interface defining the parameters for the Perplexity chat model.