Skip to main content
POST
JavaScript

Authorizations

X-API-KEY
string
header
required

Path Parameters

id
string
required
Example:

"1212121"

Body

application/json
variables
object

The template variables added to the prompt when executing the prompt.

overrideMessages
object[]

Replaces the configured prompt messages when running the prompt.

appendMessages
object[]

Appended the the end of the configured prompt messages before running the prompt.

user
string

A unique identifier representing your end-user, which can help monitor and detect abuse.

Response

Successful completion response

provider
enum<string>
required

The provider of the provided model.

Available options:
ANTHROPIC,
OPENAI
name
string
required
stats
object
required
message
object
required

The completion message generated by the model.