Create a Prompt Version
Creates a new version of the prompt template in 'draft' state.
Path parameters
Unique prompt UUID.
Request body
Example request
{
"template": "Hello, {{.name}}!",
"model": "anthropic/claude-opus-4-6",
"model_params": {
"temperature": 0.7,
"max_tokens": 1024
}
}Response
Version created successfully
Example response
{
"version": {
"template": "Hello {{.name}}!",
"model": "anthropic/claude-opus-4-6",
"model_params": {
"temperature": 0.7,
"max_tokens": 1024,
"thinking": {
"type": "enabled",
"budget_tokens": 512
}
}
}
}Changes
Changed in 5 of the 18 revisions of this API.110
- ○
added the new optional request property
modelnew-optional-request-property
- ○
added the new optional request property
model_paramsnew-optional-request-property
- ○
added the required property
version/modelto the response with the201statusresponse-required-property-added
- ○
added the required property
version/model_paramsto the response with the201statusresponse-required-property-added
- ○
- ○
the endpoint scheme security
ApiKeyAuthwas removed from the APIapi-security-removed
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
api tag
Prompt Versionsaddedapi-tag-added
- ○
api tag
Promptsremovedapi-tag-removed
- ○
- ●
added the new
stableenum value to theversion/statusresponse property for the response status201response-property-enum-value-added
- ○
added the required property
version/tagsto the response with the201statusresponse-required-property-added
- ●
- ○
api tag
Promptsaddedapi-tag-added
- ○
api tag
Versionsremovedapi-tag-removed
- ○