# Schemas

> The objects the ImgSearch API reads and returns.


## GenerationStatus

One of: `queued`, `running`, `succeeded`, `failed`, `canceled`.

## GenerationErrorCode

Why a generation itself failed. model_refused and output_blocked are content refusals of the model or our output check; do not retry them as they are.

One of: `model_refused`, `output_blocked`, `canceled`, `generation_failed`.

## GenerationReference

At most one picture to start from.

Type: one of an object with upload_id, an object with generation, an object with photo, an object with url.

## GenerationEstimateRequest

| Field | Type | Required | Description |
|---|---|---|---|
| `kind` | string | Yes | One of: "image", "video", "audio", "meme", "music", "sound", "3d", "vector". |
| `model` | string or null | No | A model id from /models; the kind's default when left out. |
| `prompt` | string or null | No |  |
| `options` | object or null | No | The model's options, as /models/{id} lists them. |
| `reference` | GenerationReference | No | At most one picture to start from. |

## GenerationCreate

| Field | Type | Required | Description |
|---|---|---|---|
| `kind` | string | Yes | One of: "image", "video", "audio", "meme", "music", "sound", "3d", "vector". |
| `model` | string or null | No | A model id from /models; the kind's default when left out. |
| `prompt` | string or null | No |  |
| `options` | object or null | No | The model's options, as /models/{id} lists them. |
| `reference` | GenerationReference | No | At most one picture to start from. |
| `max_usd` | number | Yes | The most the user allows this generation to cost, in US dollars, with at most three decimals. At least 0, At most 1000. |

## GenerationEstimateResponse

| Field | Type | Required | Description |
|---|---|---|---|
| `object` | "generation_estimate" | No |  |
| `kind` | string | No |  |
| `model` | object | No |  |
| `options` | object | No |  |
| `price_usd` | number | No | The price in US dollars. |
| `per_output_usd` | number | No |  |
| `outputs` | integer | No |  |
| `typical_seconds` | integer or null | No |  |
| `can_generate` | boolean | No |  |
| `reason` | string or null | No | One of: "generator_disabled", "email_not_verified", "safety_locked", "adult_confirmation_required", "plan_required", "insufficient_balance", "storage_full", "region_unavailable", "model_paused", "daily_capacity", "busy", "spending_not_enabled", "spend_cap_reached", null. |

## GenerationOutput

| Field | Type | Required | Description |
|---|---|---|---|
| `n` | integer | No | Its place in outputs, counting from 0: the {n} of /generations/{id}/outputs/{n} and the upscale body. |
| `mime` | string | No |  |
| `width` | integer or null | No |  |
| `height` | integer or null | No |  |
| `duration` | number or null | No |  |
| `bytes` | integer or null | No |  |
| `triangles` | integer or null | No |  |
| `lyrics` | string or null | No |  |
| `file_url` | string | No | A 10-minute link to the file. |
| `download_url` | string | No | The same as an attachment. |
| `expires_at` | string | No |  |
| `upscale` | object or null | No | What Upscale 2× would make and cost; null when the picture is too large or not a picture. |
| `upscaled` | object or null | No |  |

## Generation

| Field | Type | Required | Description |
|---|---|---|---|
| `object` | "generation" | No |  |
| `id` | string | No |  |
| `kind` | string | No | One of: "image", "video", "audio", "meme", "music", "sound", "3d", "vector". |
| `model` | string | No |  |
| `model_name` | string | No |  |
| `prompt` | string | No |  |
| `title` | string or null | No |  |
| `starred` | boolean | No |  |
| `options` | object | No | The options it was made with; a meme's captions are in options.captions, for you to draw. |
| `status` | GenerationStatus | No |  |
| `created_at` | string | No |  |
| `started_at` | string or null | No |  |
| `finished_at` | string or null | No |  |
| `estimate_seconds` | integer | No |  |
| `poll_after_seconds` | integer or null | No | While queued or running, how long to wait before reading it again. |
| `waiting` | object or null | No |  |
| `error` | object or null | No |  |
| `notice` | string or null | No |  |
| `quoted_usd` | number | No |  |
| `charged_usd` | number | No |  |
| `refunded_usd` | number | No |  |
| `reference` | object or null | No |  |
| `outputs` | array of GenerationOutput | No |  |
| `exports` | object or null | No |  |
| `soundtrack` | one of Soundtrack, null | No |  |
| `voiceover_video` | one of VoiceoverVideo, null | No |  |

## GenerationUpdate

| Field | Type | Required | Description |
|---|---|---|---|
| `title` | string or null | No | Up to 80 characters; empty goes back to the prompt. |
| `starred` | boolean | No |  |
| `captions` | object or null | No | A meme's captions, each plain text of up to 120 characters; null keeps the saved ones, {} clears them. |
| `layout` | string | No | One of: "classic", "modern". |

## Deleted

| Field | Type | Required | Description |
|---|---|---|---|
| `object` | "generation" | No |  |
| `id` | string | No |  |
| `deleted` | true | No |  |

## Upload

| Field | Type | Required | Description |
|---|---|---|---|
| `object` | "upload" | No |  |
| `id` | string | No |  |
| `mime` | string | No | One of: "image/jpeg", "image/png", "image/webp". |
| `width` | integer | No |  |
| `height` | integer | No |  |
| `bytes` | integer | No |  |
| `expires_at` | string | No |  |

## Export

| Field | Type | Required | Description |
|---|---|---|---|
| `object` | "export" | No |  |
| `key` | string | No |  |
| `format` | string | No |  |
| `height_m` | number or null | No |  |
| `status` | string | No | One of: "running", "succeeded", "failed". |
| `file_url` | string or null | No |  |
| `download_url` | string or null | No |  |
| `bytes` | integer or null | No |  |
| `error` | string or null | No |  |

## Soundtrack

| Field | Type | Required | Description |
|---|---|---|---|
| `status` | string | No | One of: "running", "succeeded", "failed". |
| `n` | integer | No |  |
| `music_id` | string | No |  |
| `voice_id` | string or null | No |  |
| `volume` | integer | No |  |
| `music_start` | number | No |  |
| `fade` | boolean | No |  |
| `duck` | boolean | No |  |
| `clip_sound` | boolean | No |  |
| `file_url` | string or null | No |  |
| `download_url` | string or null | No |  |
| `error` | string or null | No |  |

## VoiceoverVideo

| Field | Type | Required | Description |
|---|---|---|---|
| `status` | string | No | One of: "running", "succeeded", "failed". |
| `video_id` | string | No |  |
| `n` | integer | No |  |
| `files` | array of object | No |  |
| `error` | string or null | No |  |

## ArLinks

| Field | Type | Required | Description |
|---|---|---|---|
| `object` | "ar_links" | No |  |
| `status` | string | No | One of: "running", "succeeded", "failed". |
| `ios_url` | string or null | No |  |
| `android_url` | string or null | No |  |
| `expires_at` | string or null | No |  |
| `error` | string or null | No |  |

## ErrorCode

One of: `unauthenticated`, `token_expired`, `token_revoked`, `insufficient_scope`, `spending_not_enabled`, `email_not_verified`, `adult_confirmation_required`, `safety_locked`, `access_blocked`, `region_unavailable`, `forbidden`, `not_found`, `method_not_allowed`, `content_refused`, `invalid_request`, `plan_required`, `insufficient_balance`, `spend_cap_reached`, `storage_full`, `price_above_max`, `idempotency_conflict`, `not_cancelable`, `still_running`, `asset_changed`, `conflict`, `rate_limited`, `too_many_active`, `checks_busy`, `fair_use_reached`, `model_paused`, `daily_capacity`, `busy`, `safety_check_unavailable`, `generator_disabled`, `api_disabled`, `server_error`, `file_unavailable`.

## Error

| Field | Type | Required | Description |
|---|---|---|---|
| `error` | object | Yes |  |

## List

| Field | Type | Required | Description |
|---|---|---|---|
| `object` | "list" | Yes |  |
| `data` | array of any | Yes |  |
| `has_more` | boolean | Yes |  |
| `next_cursor` | string or null | Yes |  |

## Api

| Field | Type | Required | Description |
|---|---|---|---|
| `object` | "api" | No |  |
| `name` | string | No |  |
| `version` | string | No |  |
| `docs_url` | string or null | No | The developer docs; null while they are not published. |
| `openapi_url` | string | No |  |
| `status_url` | string | No |  |
| `authentication` | string | No |  |

## Status

| Field | Type | Required | Description |
|---|---|---|---|
| `object` | "status" | No |  |
| `api` | object | No |  |
| `generator` | object | No |  |
| `models_paused` | array of string | No |  |

## ModelSummary

| Field | Type | Required | Description |
|---|---|---|---|
| `object` | "model" | No |  |
| `id` | string | No |  |
| `kind` | string | No | One of: "image", "video", "audio", "meme", "music", "sound", "3d", "vector". |
| `name` | string | No |  |
| `maker` | string | No |  |
| `tagline` | string | No |  |
| `badges` | array of string | No |  |
| `default` | boolean | No | The kind's default model. |
| `paused` | boolean | No |  |
| `accepts_reference` | boolean | No |  |
| `typical_seconds` | integer | No |  |
| `usd_from` | number | No | The cheapest single output without a reference, in US dollars. |
| `usd_to` | number | No | The dearest single output without a reference, in US dollars. |
| `price_label` | string | No |  |

## Model

| Field | Type | Required | Description |
|---|---|---|---|
| `object` | "model" | No |  |
| `id` | string | No |  |
| `name` | string | No |  |
| `maker` | string | No |  |
| `tagline` | string | No |  |
| `best_for` | array of string | No |  |
| `commercial` | true | No |  |
| `rights_note` | string or null | No |  |
| `paused` | boolean | No |  |
| `degraded` | boolean | No |  |
| `kinds` | object | No | One entry per kind that offers the model, keyed by kind: its options, its price table in US dollars (pricing: price_usd, min_price_usd and per_reference_usd are rates; a quote rounds up to $0.001 and to at least min_price_usd), typical seconds, default_usd, default, accepts_reference, usd_from and usd_to, and what the kind adds (references for images, frames for video, voices for speech). |

## License

| Field | Type | Required | Description |
|---|---|---|---|
| `object` | "license" | No |  |
| `source` | string | No | One of: "photo", "video", "svg", "svg_pack", "brand", "sound_effect", "sfx_pack", "3d_model", "3d_kit", "generation". |
| `name` | string | No |  |
| `license_url` | string | No |  |
| `terms_url` | string | No |  |
| `attribution` | string | No |  |
| `varies_per_item` | boolean | No |  |
| `allowed` | array of string | No |  |
| `not_allowed` | array of string | No |  |
| `key` | string | No | The license key the row's words describe. One of: "imgsearch_content", "game_asset", "mit", "brand", "own_generation". |
| `variants` | array of object | No | The other license keys a card of this source can carry, each in its own words. |

## Account

| Field | Type | Required | Description |
|---|---|---|---|
| `object` | "account" | No |  |
| `id` | string | No | A stable id that is not the internal one. |
| `email` | string | No |  |
| `email_verified` | boolean | No |  |
| `plan` | object | No | The account's plan. Left out for ChatGPT. |
| `adult_confirmed` | boolean | No |  |
| `can_generate` | boolean | No |  |
| `generate_blocked_reason` | string or null | No | One of: "generator_disabled", "email_not_verified", "safety_locked", "adult_confirmation_required", "plan_required", "insufficient_balance", "storage_full", "spending_not_enabled", "spend_cap_reached", null. |
| `connection` | object | No |  |

## Balance

Every amount in US dollars.

| Field | Type | Required | Description |
|---|---|---|---|
| `object` | "balance" | No |  |
| `available_usd` | number | No |  |
| `held_usd` | number | No | Plan and gift balance that waits for a paid plan. |
| `held_reason` | string or null | No | One of: "plan_required", null. |
| `by_source_usd` | object | No |  |
| `lots` | array of object | No |  |
| `next_grant` | object or null | No |  |

## BalanceTransaction

Every amount in US dollars.

| Field | Type | Required | Description |
|---|---|---|---|
| `object` | "balance_transaction" | No |  |
| `id` | string | No |  |
| `direction` | string | No | One of: "credit", "debit". |
| `amount_usd` | number | No |  |
| `balance_after_usd` | number | No |  |
| `reason` | string | No |  |
| `source` | string | No | One of: "generation", "svg_studio", "svg_edit", "image_editor", "plan", "top_up", "gift", "adjustment", "expiry", "payment_refunded", "other". |
| `refunded` | boolean | No |  |
| `refund_of` | string or null | No |  |
| `created_at` | string | No |  |
| `job` | object or null | No |  |

## Limits

| Field | Type | Required | Description |
|---|---|---|---|
| `object` | "limits" | No |  |
| `requests` | object or null | No |  |
| `search` | LimitStatus | No |  |
| `downloads` | LimitStatus | No |  |
| `fair_use` | object | No |  |
| `generations` | object | No |  |

## LimitStatus

| Field | Type | Required | Description |
|---|---|---|---|
| `status` | string | No | One of: "ok", "limited". |
| `retry_after_seconds` | integer or null | No |  |

## Savings

| Field | Type | Required | Description |
|---|---|---|---|
| `object` | "savings" | Yes |  |
| `month` | string | Yes |  |
| `starts_at` | string | Yes |  |
| `ends_at` | string | Yes |  |
| `recording` | boolean | Yes | Whether savings are being recorded for this account now. |
| `reuses` | integer | Yes | Every counted reuse of the month. |
| `estimated_reuses` | integer or null | No | The reuses the account could have paid for (a paid plan or bought AI balance). Not sent to ChatGPT. |
| `estimated_usd` | number or null | No | What generating those instead would have cost, in US dollars before VAT, at search-time prices. Null when no reuse of the month had an estimate. Not sent to ChatGPT. |
| `by_source` | object | Yes |  |

## SavingsSource

| Field | Type | Required | Description |
|---|---|---|---|
| `reuses` | integer | Yes |  |
| `estimated_usd` | number or null | No |  |

## SearchRequest

| Field | Type | Required | Description |
|---|---|---|---|
| `query` | string | Yes | What you need, in plain English: subject, setting, purpose and constraints. At most 500 characters. |
| `types` | array of string | No | The sources to search. Default: own generations (while the personal index is on) and every public type. generation answers not_available while the personal index is off, or with a note while the account's Search my creations is off. One of: "photo", "video", "svg", "svg_pack", "brand", "sound_effect", "sfx_pack", "3d_model", "3d_kit", "generation". At least 1 items, At most 10 items. |
| `kind` | string or null | No | What you would generate instead, for the estimate. Inferred when every type maps to one kind. One of: "image", "video", "audio", "meme", "music", "sound", "3d", "vector", null. |
| `filters` | object | No | Hard filters. A source a filter does not apply to is searched without it and lists it in ignored_filters. With a filter, photos and videos look at their best 300 candidates; SVGs, brands, sounds and 3D models at their best 120. |
| `limit` | integer | No | At least 1, At most 30. Default 10. |
| `include_scores` | boolean | No | Adds the raw score and its space to each result. Default false. |
| `cursor` | string or null | No | The next_cursor of the previous page; repeat the same body with it. It works for 60 minutes; after that the answer is 422 invalid_request (details.fields.cursor), so search again without it. At most 512 characters. |

## SourceStatus

| Field | Type | Required | Description |
|---|---|---|---|
| `status` | string | Yes | unavailable failed just now (retry); not_available is closed or not offered yet (do not retry). One of: "ok", "no_results", "unavailable", "not_available". |
| `retryable` | boolean | Yes |  |
| `note` | string | No |  |
| `ignored_filters` | array of string | No |  |

## SearchResult

| Field | Type | Required | Description |
|---|---|---|---|
| `object` | "search_result" | No |  |
| `id` | string | No | srch_ and a ULID. |
| `complete` | boolean | No | False when a requested source failed just now; search again before generating. |
| `sources` | object | No |  |
| `results` | array of AssetCard | No |  |
| `generation_estimate` | one of GenerationEstimate, null | No |  |
| `generation_estimate_reason` | string | No | Only when generation_estimate is null. One of: "kind_ambiguous", "no_generator_for_type", "no_model_available", "no_results". |
| `fair_use` | object | No |  |
| `next_cursor` | string or null | No |  |
| `depth_limited` | boolean | No | True when the 100-deep cap ended the list. |

## AssetCard

Every card has the fields below; the type-specific ones appear for their types only.

| Field | Type | Required | Description |
|---|---|---|---|
| `type` | string | No | One of: "photo", "video", "svg", "svg_pack", "brand", "sound_effect", "sfx_pack", "3d_model", "3d_kit", "generation". |
| `id` | string | No | For own generations: {generation_id}:{n}. |
| `title` | string | No |  |
| `description` | string | No | For own generations: your own prompt. |
| `relevance` | number or null | No | Comparable across sources; null while a source has no fitted scores. At least 0, At most 1. |
| `band` | string or null | No | One of: "strong", "possible", "weak", null. |
| `owned` | boolean | No | Downloaded before; downloading it again is free. |
| `made_by_you` | boolean | No |  |
| `community` | boolean | No | Shared by a contributor. |
| `preview_url` | string or null | No | A signed link to the preview: 1 hour, 10 minutes for own generations. |
| `page_url` | string | No |  |
| `format` | string | No |  |
| `license` | AssetLicense | No | The license of one item, in the words of /v2/licenses. |
| `download` | DownloadCost | No |  |
| `score` | number | No | With include_scores only. The raw cosine score, 4 decimals. |
| `score_space` | string | No | One of: "openai", "gemini". |
| `width` | integer or null | No |  |
| `height` | integer or null | No |  |
| `aspect_ratio` | number | No |  |
| `orientation` | string or null | No | Null for own audio and music. One of: "landscape", "portrait", "square", null. |
| `delivered_size` | string | No | Photos: the size this account downloads, as 1600x900. |
| `tags` | array of string | No |  |
| `duration_seconds` | number or null | No | Null for own pictures, memes, vectors and 3D models. |
| `has_sound` | boolean or null | No | Videos: whether the clip has a sound track; null when not known. |
| `poster_url` | string or null | No |  |
| `category` | string or null | No |  |
| `style` | string or null | No |  |
| `view_box` | string or null | No |  |
| `backgrounds` | array of string | No | One of: "original", "transparent". |
| `pack_id` | string or null | No |  |
| `item_count` | integer | No |  |
| `sample_rate` | integer or null | No |  |
| `channels` | integer or null | No |  |
| `collection` | string or null | No |  |
| `duration_label` | string | No |  |
| `formats_label` | string | No |  |
| `size` | string or null | No |  |
| `formats` | array of string | No |  |
| `triangles` | integer | No |  |
| `triangles_label` | string | No |  |
| `height_m` | number | No |  |
| `footprint_m` | array of number or null | No |  |
| `kit` | string | No |  |
| `group` | string or null | No |  |
| `kind` | string | No | Own generations. One of: "image", "video", "audio", "meme", "music", "sound", "3d", "vector". |
| `model` | object | No | Own generations. |
| `generation_id` | string | No | Own generations. |
| `n` | integer | No | Own generations: the output's number. |
| `created_at` | string | No | Own generations. |
| `starred` | boolean | No | Own generations. |

## AssetLicense

The license of one item, in the words of /v2/licenses.

| Field | Type | Required | Description |
|---|---|---|---|
| `key` | string | No | One of: "imgsearch_content", "game_asset", "mit", "brand", "own_generation". |
| `name` | string | No |  |
| `license_url` | string or null | No |  |
| `terms_url` | string | No |  |
| `attribution` | string | No |  |
| `attribution_text` | string or null | No |  |
| `usage_conditions` | string or null | No |  |
| `not_allowed` | array of string | No |  |
| `ai_generated` | boolean or null | No |  |
| `community` | boolean | No |  |
| `notes` | string or null | No | What the download holds and which notices to keep with it, and for 3D models that they are AI-made. |

## DownloadCost

| Field | Type | Required | Description |
|---|---|---|---|
| `fair_use_units` | integer | No | Units of the monthly fair use a download would use now: 0 when owned, for packs and kits, and for MIT items. |
| `free` | boolean | No |  |
| `counter` | string | No | Videos count in their own counter; own generations are free and count in none. One of: "files", "videos", "none". |

## GenerationEstimate

What generating instead would cost with the kind's default model and options. Never a budget figure.

| Field | Type | Required | Description |
|---|---|---|---|
| `kind` | string | No | One of: "image", "video", "audio", "meme", "music", "sound", "3d", "vector". |
| `model` | object | No |  |
| `options` | object | No |  |
| `per_output_usd` | number | No | The price of one output, in US dollars. |
| `typical_seconds` | integer or null | No |  |
| `can_generate` | boolean | No |  |
| `reason` | string or null | No | One of: "generator_disabled", "email_not_verified", "safety_locked", "adult_confirmation_required", "plan_required", "insufficient_balance", "storage_full", "region_unavailable", "model_paused", "daily_capacity", "busy", "spending_not_enabled", "spend_cap_reached", null. |

## DownloadLink

| Field | Type | Required | Description |
|---|---|---|---|
| `object` | "download_link" | No |  |
| `type` | string | No |  |
| `id` | string | No |  |
| `status` | string | No | One of: "ready", "refused". |
| `url` | string or null | No |  |
| `expires_at` | string or null | No |  |
| `file_name` | string or null | No |  |
| `download` | one of DownloadCost, null | No |  |
| `error` | object or null | No |  |

## DownloadHistoryItem

| Field | Type | Required | Description |
|---|---|---|---|
| `object` | "download" | No |  |
| `type` | string | No | One of: "photo", "video", "svg", "brand", "sound_effect", "3d_model". |
| `id` | string or null | No | Null when the item no longer exists. |
| `title` | string or null | No |  |
| `downloaded_at` | string | No |  |
| `charged` | boolean or null | No | Whether it used a fair-use unit; null for older sound and model rows. |
| `surface` | string or null | No | One of: "web", "api", "mcp", "playground", null. |

## EventType

What an event says. webhook.test goes only to the endpoint it tests.

One of: `generation.succeeded`, `generation.failed`, `generation.canceled`, `generation.export.succeeded`, `generation.export.failed`, `generation.ar.succeeded`, `generation.ar.failed`, `generation.soundtrack.succeeded`, `generation.soundtrack.failed`, `generation.voiceover_video.succeeded`, `generation.voiceover_video.failed`, `balance.low`, `webhook.test`.

## SubscribableEventType

The event types an endpoint can ask for.

One of: `generation.succeeded`, `generation.failed`, `generation.canceled`, `generation.export.succeeded`, `generation.export.failed`, `generation.ar.succeeded`, `generation.ar.failed`, `generation.soundtrack.succeeded`, `generation.soundtrack.failed`, `generation.voiceover_video.succeeded`, `generation.voiceover_video.failed`, `balance.low`.

## Event

One thing that happened to the account. Short on purpose: no prompt, name, caption or file link; read the generation (GET /generations/{id}) for the rest. A webhook's body is exactly this object.

| Field | Type | Required | Description |
|---|---|---|---|
| `id` | string | Yes |  |
| `object` | "event" | Yes |  |
| `type` | EventType | Yes | What an event says. webhook.test goes only to the endpoint it tests. |
| `created_at` | string | Yes |  |
| `data` | one of GenerationEventData, ExportEventData, ArEventData, SoundtrackEventData, VoiceoverVideoEventData, BalanceLowEventData, WebhookTestEventData | Yes |  |

## EventList

| Field | Type | Required | Description |
|---|---|---|---|
| `object` | "list" | Yes |  |
| `data` | array of Event | Yes |  |
| `has_more` | boolean | Yes | true: send the last id as after for the next ones. |

## GenerationEventData

generation.succeeded, generation.failed and generation.canceled. Field names as in Generation.

| Field | Type | Required | Description |
|---|---|---|---|
| `id` | string | Yes |  |
| `kind` | string | Yes | One of: "image", "video", "audio", "meme", "music", "sound", "3d", "vector". |
| `model` | string | Yes |  |
| `status` | GenerationStatus | Yes |  |
| `charged_usd` | number | Yes |  |
| `outputs` | array of object | Yes |  |
| `error` | object or null | Yes |  |

## SideActionEventData

| Field | Type | Required | Description |
|---|---|---|---|
| `id` | string | Yes | The generation's id. |
| `kind` | string | Yes |  |

## ExportEventData

| Field | Type | Required | Description |
|---|---|---|---|
| `id` | string | Yes | The generation's id. |
| `kind` | string | Yes |  |
| `export` | object | Yes |  |

## ArEventData

| Field | Type | Required | Description |
|---|---|---|---|
| `id` | string | Yes | The generation's id. |
| `kind` | string | Yes |  |
| `ar` | object | Yes | Once both View in AR copies of one height are finished. |

## SoundtrackEventData

| Field | Type | Required | Description |
|---|---|---|---|
| `id` | string | Yes | The generation's id. |
| `kind` | string | Yes |  |
| `soundtrack` | object | Yes |  |

## VoiceoverVideoEventData

| Field | Type | Required | Description |
|---|---|---|---|
| `id` | string | Yes | The generation's id. |
| `kind` | string | Yes |  |
| `voiceover_video` | object | Yes |  |

## BalanceLowEventData

balance.low, once per drop below your threshold and at most once a day.

| Field | Type | Required | Description |
|---|---|---|---|
| `available_usd` | number | Yes | The spendable AI balance when it was checked, in US dollars. |
| `below_usd` | number | Yes | Your threshold, in US dollars. |

## WebhookTestEventData

| Field | Type | Required | Description |
|---|---|---|---|
| `endpoint_id` | string | Yes |  |
| `message` | string | Yes |  |

## EventSettings

| Field | Type | Required | Description |
|---|---|---|---|
| `object` | "event_settings" | No |  |
| `balance_low_below_usd` | number or null | No |  |

## WebhookEndpoint

| Field | Type | Required | Description |
|---|---|---|---|
| `object` | "webhook_endpoint" | No |  |
| `id` | string | No |  |
| `url` | string | No |  |
| `description` | string or null | No |  |
| `event_types` | array of SubscribableEventType or null | No | null for every type. |
| `status` | string | No | One of: "enabled", "disabled". |
| `disabled_reason` | string or null | No | One of: "by_user", "failing", null. |
| `failing_since` | string or null | No | The first failure after the last 2xx, or null. |
| `last_success_at` | string or null | No |  |
| `disabled_at` | string or null | No |  |
| `secret_rotation_ends_at` | string or null | No | Until then the old secret signs too. |
| `created_at` | string | No |  |
| `updated_at` | string | No |  |

## WebhookEndpointWithSecret

| Field | Type | Required | Description |
|---|---|---|---|
| `object` | "webhook_endpoint" | No |  |
| `id` | string | No |  |
| `url` | string | No |  |
| `description` | string or null | No |  |
| `event_types` | array of SubscribableEventType or null | No | null for every type. |
| `status` | string | No | One of: "enabled", "disabled". |
| `disabled_reason` | string or null | No | One of: "by_user", "failing", null. |
| `failing_since` | string or null | No | The first failure after the last 2xx, or null. |
| `last_success_at` | string or null | No |  |
| `disabled_at` | string or null | No |  |
| `secret_rotation_ends_at` | string or null | No | Until then the old secret signs too. |
| `created_at` | string | No |  |
| `updated_at` | string | No |  |
| `secret` | string | Yes | whsec_ and 32 random bytes in base64. Shown only in this answer. |

## WebhookDelivery

| Field | Type | Required | Description |
|---|---|---|---|
| `object` | "webhook_delivery" | No |  |
| `id` | string | No | The event's id. |
| `event_type` | EventType | No | What an event says. webhook.test goes only to the endpoint it tests. |
| `event_created_at` | string | No |  |
| `status` | string | No | One of: "pending", "delivered", "failed". |
| `attempts` | integer | No |  |
| `next_attempt_at` | string or null | No |  |
| `last_attempt_at` | string or null | No |  |
| `response` | object or null | No | The last attempt's answer: its status, milliseconds, an error word (timeout, failed, redirect, status, address, dns, endpoint_disabled, …) and the first 1,024 bytes of its body. |
