POST
/
sdk
/
v1
/
prompts
/
{id}
/
completion

Path Parameters

id
string
required

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

200 - application/json
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.

Was this page helpful?