Prompt Runs
Run Specific Prompt Version
Renders a specific template version of a prompt and executes it against the configured model provider.
post/v1/projects/{projectID}/prompts/{slug}/versions/{version}/run
Path parameters
projectIDstring uuid required
The ID of the project the prompt belongs to.
slugstring required
Prompt slug, unique within the project.
versionstring required
Version sequence number (integer) or version tag (string) to execute.
Request body
Response
Completed response text or stream chunks (Streaming SSE events where each line is formatted as data: {"delta": string, "done": boolean}).
Example response
{
"response": "Greetings from the model!",
"model": "openai/gpt-4o",
"version": 2,
"slug": "my-prompt"
}