---
title: "Render Live Prompt Version"
method: POST
path: "/v1/projects/{projectID}/prompts/{slug}/render"
tags: ["Prompt Renders"]
---

# Render Live Prompt Version

`POST /v1/projects/{projectID}/prompts/{slug}/render`

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.

## Path parameters

- `projectID` string, uuid, required
- `slug` string, required

## Request body

- RenderRequest
  - `variables` object — Key-value dictionary of arguments interpolated into the prompt template.

## Response `200`

Rendered template string

- RenderResponse
  - `rendered` string, required — Fully parsed template response with variable replacements.
  - `version` integer, required — Sequence version number that was executed.
  - `slug` string, required — Unique prompt slug.
  - `tags` string[], required — List of tag strings assigned to this version.
  - `model` string, nullable, required — Optional `provider/model` identifier intended to execute this prompt version.
  - `model_params` object, nullable, required — Optional provider-specific model parameters. Nested values are supported.

## Other responses

- `400` — Invalid slug or bad body JSON
- `401` — Unauthorized
- `404` — Prompt or live version not found
- `422` — Render execution failed
- `500` — Internal error

---

[API](https://skmtc.net/px0-ai/apis/px0-api.md) · [All operations](https://skmtc.net/px0-ai/apis/px0-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/px0-ai/px0-api/revisions/3ed72443989d/schema)
