Call Prompt
Call a Prompt.
Calling a Prompt calls the model provider before logging the request, responses and metadata to Humanloop.
You can use query parameters version_id, or environment, to target an existing version of the Prompt. Otherwise the default deployed version will be chosen.
Instead of targeting an existing version explicitly, you can instead pass in Prompt details in the request body. In this case, we will check if the details correspond to an existing version of the Prompt. If they do not, we will create a new version. This is helpful in the case where you are storing or deriving your Prompt details in code.
Request
- Base URL: https://api.humanloop.com/v5
- URL: https://api.humanloop.com/v5/prompts/call
- Auth: API key in header X-API-KEY
Query parameters
A specific Version ID of the Prompt to log to.
Name of the Environment identifying a deployed version to log to.
Request body
Changes
No recorded changes to this operation across all 1 revision of this API.