Skip to main content
POST
Estimate price

Authorizations

Authorization
string
header
required

Fanify API key.

Path Parameters

id
string
required

Body

application/json

Hub input. quantity (1..100, default 1) quotes a batch; priority stays inside input (D44, D102). media_durations quotes a model priced on the duration of an input file before uploading it.

input
object
required
quantity
integer<int32> | null
Required range: 1 <= x <= 100
media_durations
object | null

Quote only: declared seconds of an input reference the Hub does not have yet, keyed by the reference as written in input ("sha256:"). Ignored for a hash the Hub already has (its measured duration is used) and for an http(s) URL (422 input_duration_unavailable). POST /generations never reads a declared duration: it bills the duration measured on the uploaded file.

Response

Estimated price in EUR (total of the batch). Worker models add unit_cost, quantity, estimated_duration_s, message, and, only when they apply, cold_start and queue; other models keep the two base fields.

estimated_cost
number<double>
required
currency
enum<string>
required
Available options:
EUR
unit_cost
number<double> | null
quantity
integer<int32> | null
cold_start
object
estimated_duration_s
integer<int32> | null
queue
object
message
string | null