Quotes
Create a quote
The exact price of a run, without running it or holding credit. It takes the same body as POST /v1/generations, checks the input against the model's schema and fills in its defaults, so an input the schema refuses gets the same 400. It can't tell whether the model will accept the prompt itself.
Needs an API key with the generations:read scope.
post/v1/quotes
Request
- Base URL: https://api.tryleap.ai
- URL: https://api.tryleap.ai/v1/quotes
- Auth: one of:
- API key in header x-api-key
- HTTP bearer
Request body
Response
The price and the input as it would run.
Changes
No recorded changes to this operation across all 1 revision of this API.