Prompt Renders
Render Live Prompt Version
Renders the active 'live' template version of a prompt using supplied variables. The prompt is resolved by slug within the given project, so the same slug may be reused across projects.
post/v1/projects/{projectID}/prompts/{slug}/render
Path parameters
projectIDstring uuid required
The ID of the project the prompt belongs to.
slugstring required
Prompt slug, unique within the project.
Request body
Example request
{
"variables": {
"name": "Alice",
"count": 5
}
}Response
Rendered template string
Example response
{
"rendered": "Hello, Alice! Count is 5.",
"version": 1,
"slug": "my_prompt",
"model": "anthropic/claude-opus-4-6",
"model_params": {
"temperature": 0.7,
"max_tokens": 1024
}
}