Endpoint
Custom search stream
POST
/
custom_search_stream
curl --request POST \
--url https://node.apiopenperplex.com/custom_search_stream \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"system_prompt": "<string>",
"user_prompt": "<string>",
"location": "us",
"model": "gpt-4o-mini",
"search_type": "general",
"return_images": false,
"return_sources": false,
"temperature": 0.2,
"top_p": 0.9
}'
"<string>"
Authorizations
Body
application/json
Response
200
text/event-stream
Successful response
The response is of type string
.
curl --request POST \
--url https://node.apiopenperplex.com/custom_search_stream \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"system_prompt": "<string>",
"user_prompt": "<string>",
"location": "us",
"model": "gpt-4o-mini",
"search_type": "general",
"return_images": false,
"return_sources": false,
"temperature": 0.2,
"top_p": 0.9
}'
"<string>"
Assistant
Responses are generated using AI and may contain mistakes.