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
https://api.tryleap.ai
/
v1
/
quotes
Create a quote
curl --request POST \
--url https://api.tryleap.ai/v1/quotes \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"model": "<string>"
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({model: '<string>'})
};
fetch('https://api.tryleap.ai/v1/quotes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.tryleap.ai/v1/quotes"
payload = { "model": "<string>" }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"object": "quote",
"model": "google/veo-3.1-fast",
"revision": "2026-10-02",
"input": {
"prompt": "A heron lands on a still lake at dawn",
"aspect_ratio": "16:9",
"n": 1,
"duration": 4,
"resolution": "1080p",
"audio": true
},
"cost_usd": "0.80",
"hold_usd": "0.80"
}
Authorizations
ApiKeyBearer
Your workspace API key, leap_.... Create one at https://app.tryleap.ai/go/api, and keep it on your server.
Body
application/json
Response
The price and the input as it would run.
What a run would cost, without running it or holding credit.
⌘I
Create a quote
curl --request POST \
--url https://api.tryleap.ai/v1/quotes \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"model": "<string>"
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({model: '<string>'})
};
fetch('https://api.tryleap.ai/v1/quotes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.tryleap.ai/v1/quotes"
payload = { "model": "<string>" }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"object": "quote",
"model": "google/veo-3.1-fast",
"revision": "2026-10-02",
"input": {
"prompt": "A heron lands on a still lake at dawn",
"aspect_ratio": "16:9",
"n": 1,
"duration": 4,
"resolution": "1080p",
"audio": true
},
"cost_usd": "0.80",
"hold_usd": "0.80"
}