Render
Retrieve Prompt Template
Retrieves given prompt ID containing the saved model params (temperature, max_tokens, etc) along with the prompt/messages body.
POST
https://api.portkey.ai/v1/prompts/:id/render
Path Parameters
Name
Type
Description
id*
String
The prompt ID to retrieve
Request Body
Name
Type
Description
variables
Object
The variables mentioned in the prompt template being used
hyperparameters
Multiple
Add any hyperparameters to the request to override the ones set in the prompt definition
The API expects the prompt ID, prompt variables and optionally any hyperparameters to override for this request. It returns a JSON object containing the prompt template details.
Example Usage
The Output:
For detailed examples:
Last updated
Was this helpful?