Skip to main content

Generate Response from Prompt

Generate Response from Prompt

Request Body REQUIRED
stream boolean
timeout number
maxRetries number
data object REQUIRED
promptId uuid REQUIRED
inputData object REQUIRED
n number REQUIRED
language string REQUIRED
userId string REQUIRED
Responses
200

Default Response

Schema OPTIONAL
id string
choices object[]
index number
text string
finish_reason string
role string OPTIONAL
function_call OPTIONAL
model string
providerId uuid OPTIONAL
modelId uuid OPTIONAL
meta object
usage object OPTIONAL
completion_tokens number
prompt_tokens number
total_tokens number