Skip to main content
POST
Create a quote

Authorizations

x-api-key
string
header
required

Your workspace API key, leap_.... Create one at https://app.tryleap.ai/go/api, and keep it on your server.

Body

application/json
model
string
required

The model or preset to run, such as black-forest-labs/flux-2-pro or leap/restore-photo@1. A preset ID without @N runs its latest version.

Maximum string length: 100
Pattern: ^[a-z0-9][a-z0-9-]*\/[a-z0-9][a-z0-9.-]*(@[1-9][0-9]{0,3})?$
input
object

The model's input, as its input_schema from GET /v1/models/{creator}/{name} describes it. Fields you leave out take their defaults; unknown fields are refused. Files are file_... IDs.

webhook
string<uri>

An https URL to POST the generation.succeeded, generation.failed or generation.canceled event to when the run ends, signed with your workspace's default secret (GET /v1/webhooks/default/secret).

Maximum string length: 2048

Response

The price and the input as it would run.

What a run would cost, without running it or holding credit.

object
string
required
Allowed value: "quote"
model
string
required

The model or preset priced, with a preset's version.

Maximum string length: 100
Pattern: ^[a-z0-9][a-z0-9-]*\/[a-z0-9][a-z0-9.-]*(@[1-9][0-9]{0,3})?$
revision
string
required

The model's schema and price revision the price comes from.

Pattern: ^\d{4}-\d{2}-\d{2}$
input
object
required

The input as it would run, checked and with its defaults filled in.

cost_usd
string
required

What the run would cost, as an exact decimal string in US dollars.

hold_usd
string
required

What the run holds from your balance until it ends. For a model billed by the length of your video or sound, the price of that length plus a second, or of the longest file the model takes when the length can't be read; you're charged only the run's price.

Last modified on October 4, 2026