Passer au contenu principal
POST
Create generation

Autorisations

Authorization
string
header
requis

Fanify API key.

En-têtes

Idempotency-Key
string

Idempotency key. Required for FanifyServer clients.

Corps

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
requis
input
object
requis
quantity
integer<int32> | null
Plage requise: 1 <= x <= 100

Réponse

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

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