Skip to main content
POST
/
chat
cURL
curl --request POST \
  --url https://api.example.com/chat \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "prompt": "Provide a detailed analysis of PEPE holders, is the trend bullish or bearish?",
  "model": "gpt-4.1-mini",
  "stream": false
}
'
{
  "text": "<string>"
}

Authorizations

X-API-Key
string
header
required

Body

application/json
prompt
string
required
Example:

"Provide a detailed analysis of PEPE holders, is the trend bullish or bearish?"

model
enum<string>

Select model

Available options:
gpt-4.1-mini,
gpt-4.1-nano
Example:

"gpt-4.1-mini"

stream
boolean

Stream over SSE

Example:

false

Response

When stream is false

text
string
required