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

X-API-Key
string
header
required

Body

application/json
system_prompt
string
user_prompt
string
location
string
default:us
model
string
default:gpt-4o-mini
search_type
string
default:general
return_images
boolean
default:false
return_sources
boolean
default:false
temperature
number
default:0.2
top_p
number
default:0.9

Response

200
text/event-stream
Successful response

The response is of type string.