Skip to main content
POST
Error

Authorizations

Authorization
string
header
required

API key passed as a Bearer token.

Path Parameters

slug
string
required

Unique slug identifier for the prompt template.

Body

application/json
model
string

Model to use for the prompt run. If omitted, the model from the prompt's model_params is used.

variables
object

Key-value map of template variables. Each {{key}} in the prompt messages is replaced with the corresponding value.

Response

Chat completion result from the prompt run

id
string
object
string
Example:

"chat.completion"

created
integer<int64>
model
string
choices
object[]
usage
object
system_fingerprint
string