Skip to main content
POST
/
v1
/
ais
/
gen_prompt
generate prompt
curl --request POST \
  --url https://api.gbase.ai/v1/ais/gen_prompt \
  --header 'Content-Type: application/json' \
  --data '{
  "prompt_in": "<string>",
  "ai_id": "<string>",
  "cur_prompt": "<string>",
  "stream": true,
  "message_id": "<string>"
}'
{
  "prompt": "<string>",
  "role": "<string>",
  "general": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
prompt_in
string
required
ai_id
string
cur_prompt
string
stream
boolean
default:true
message_id
string

Response

Successful Response

prompt
string
required
role
string
general
string
I