Skip to main content

Format

  • JSON request and response bodies, snake_case fields.
  • Timestamps in ISO 8601 UTC: 2026-11-03T10:04:03Z.
  • Credits are numbers: prices have up to two decimals, what is reserved and charged is whole credits.
  • Ids are a type prefix and 32 hex characters: gen_6f1c2a9e4b7d4c1e9a3f0b5d8e2c7a14. Prefixes: gen_ generation, asset_ asset, elm_ element, evt_ event, whep_ webhook endpoint.
  • Every object has an object field with its type.
Forward compatibility. We add fields, enum values, models, modes and event types without a new version. Ignore fields you do not know, and do not fail on an unknown enum value (for example a new status_detail).

Pagination

List endpoints return a page of objects, newest first:
To walk everything, pass the last id of each page as starting_after until has_more is false. Cursors stay correct while new objects are created. A cursor whose object was deleted is refused with 400 parameter_invalid at starting_after or ending_before: list again from the first page.

Metadata

Generations and webhook endpoints accept metadata: up to 20 string pairs (keys up to 40 characters, values up to 500) of your own. Argil stores and returns them, includes them in webhooks, and never interprets them. Filter generations on them with GET /v2/generations?metadata[order_id]=A-1042.

Request ids

Every response has a Request-Id header, repeated in error bodies. Log it, and quote it when you contact support.