LowCodeAPI
32 APIs
122 APIs
21 APIs
118 APIs
29 APIs
20 APIs
5 APIs
7 APIs
19 APIs
47 APIs
14 APIs
1 APIs
4 APIs
1 APIs
17 APIs
6 APIs
3 APIs
7 APIs
  • Perplexity AI API(1)
63 APIs
35 APIs
19 APIs
31 APIs
19 APIs
3 APIs
48 APIs
POST
POST
https://api.lowcodeapi.com/perplexityai/chat/completions
Request Payload

The payload will be sent as a application/json as a part of the request body.

Payload
modelstring*
Defaults to llama-3-sonar-small-32k-online
messagesarray*
A list of messages comprising the conversation so far.
max_tokensnumber
The maximum number of completion tokens returned by the API.
temperaturenumber
Defaults to 0.2
top_pnumber
Defaults to 0.9
return_citationsboolean
Determines whether or not a request to an online model should return citations
return_imagesboolean
Determines whether or not a request to an online model should return images
top_knumber
Specified as an integer between 0 and 2048 inclusive
streamboolean
Determines whether or not to incrementally stream the response
presence_penaltynumber
Value between -2.0 and 2.0
frequency_penaltynumber
Defaults to 1
Perplexity AI