Skip to main content
POST
Create generation

Authorizations

Authorization
string
header
required

Fanify API key.

Headers

Idempotency-Key
string

Idempotency key. Required for FanifyServer clients.

Body

application/json

Generation request. quantity (1..100, default 1) admits a batch all-or-nothing (D44). Reference a file input as sha256: (see POST /api/v1/hub/files); a hash the Hub does not have answers 422 missing_resource listing missing[].sha256: upload those files, then resubmit with the same Idempotency-Key. Any other URL is forwarded to the provider as is, except on a model priced on the duration of an input file: its file must be uploaded and referenced as sha256:, else 422 input_duration_unavailable.

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

Response

Completed idempotent replay (a batch replays as {batch_id, generations[]}).

id
string<uuid>
required
model
string
required
is_llm
boolean
required
status
enum<string>
required
Available options:
queued,
running,
succeeded,
failed,
canceled,
awaiting_supply
input
object | null
required
estimated_cost
number<double>
required
billed_cost
number<double> | null
required
currency
enum<string>
required
Available options:
EUR
outputs
object[]
required
error
object | null
required
missing
string[]
required
created_at
string<date-time>
required
started_at
string<date-time> | null
required
completed_at
string<date-time> | null
required
provider
string | null
batch_id
string<uuid> | null
progress
object