Prompt Versions
Create a Prompt Version
Creates a new version of the prompt template in 'draft' state.
post/v1/prompts/{id}/versions
Path parameters
idstring uuid required
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
}
}
}
}