{"openapi":"3.1.0","info":{"title":"Frameo API","description":"Generate video and images with Frameo's models from your own code.","version":"1"},"servers":[{"url":"https://api.frameo.ai"}],"paths":{"/v1/me":{"get":{"tags":["Account"],"summary":"Get this key's workspace","description":"Which workspace and scopes this key has: the first call to make with a new key.","operationId":"whoami_v1_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyIdentity"}}}},"400":{"description":"The request is invalid (invalid_request_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing, invalid, revoked or expired API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"Not enough credits (billing_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The key lacks a scope, or the workspace can't use this","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such object in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate or concurrency limit; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Upstream failure (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Briefly unavailable (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"Timed out upstream (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"apiKey":[]}]}},"/v1/estimates":{"post":{"tags":["Generations"],"summary":"Estimate a generation","description":"What a generation would cost this workspace, after its pricing overrides. Nothing is charged.","operationId":"estimate_v1_estimates_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerationInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Estimate"}}}},"400":{"description":"The request is invalid (invalid_request_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing, invalid, revoked or expired API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"Not enough credits (billing_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The key lacks a scope, or the workspace can't use this","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such object in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate or concurrency limit; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Upstream failure (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Briefly unavailable (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"Timed out upstream (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"apiKey":[]}]}},"/v1/generations":{"post":{"tags":["Generations"],"summary":"Create a generation","description":"Start a generation. With an `Idempotency-Key`, a retry is safe: the same key and request\nreturn the same generation, and the same key with a different request is refused (409). If\nthe platform is slow to answer, the generation still comes back, queued, and is confirmed in\nthe background.","operationId":"create_generation_v1_generations_post","parameters":[{"name":"idempotency-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateGeneration"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatedGeneration"}}}},"400":{"description":"The request is invalid (invalid_request_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing, invalid, revoked or expired API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"Not enough credits (billing_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The key lacks a scope, or the workspace can't use this","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such object in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate or concurrency limit; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Upstream failure (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Briefly unavailable (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"Timed out upstream (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The Idempotency-Key was used with a different request, or its first request is still in progress","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"apiKey":[]}]},"get":{"tags":["Generations"],"summary":"List generations","description":"This workspace's API generations, newest first. Pass the last id of a page as\n`starting_after` to get the next one.","operationId":"list_generations_v1_generations_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"starting_after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Starting After"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerationList"}}}},"400":{"description":"The request is invalid (invalid_request_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing, invalid, revoked or expired API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"Not enough credits (billing_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The key lacks a scope, or the workspace can't use this","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such object in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate or concurrency limit; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Upstream failure (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Briefly unavailable (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"Timed out upstream (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"apiKey":[]}]}},"/v1/generations/{generation_id}":{"get":{"tags":["Generations"],"summary":"Get a generation","operationId":"get_generation_v1_generations__generation_id__get","parameters":[{"name":"generation_id","in":"path","required":true,"schema":{"type":"string","title":"Generation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Generation"}}}},"400":{"description":"The request is invalid (invalid_request_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing, invalid, revoked or expired API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"Not enough credits (billing_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The key lacks a scope, or the workspace can't use this","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such object in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate or concurrency limit; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Upstream failure (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Briefly unavailable (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"Timed out upstream (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"apiKey":[]}]}},"/v1/uploads":{"post":{"tags":["Uploads"],"summary":"Create an upload","description":"A one-time upload URL for an input file. PUT the file to `upload_url`, then pass `url` in a\ngeneration's images, videos or audios. The file is private to this workspace.","operationId":"create_upload_v1_uploads_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateUpload"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Upload"}}}},"400":{"description":"The request is invalid (invalid_request_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing, invalid, revoked or expired API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"Not enough credits (billing_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The key lacks a scope, or the workspace can't use this","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such object in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate or concurrency limit; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Upstream failure (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Briefly unavailable (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"Timed out upstream (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"apiKey":[]}]}},"/v1/balance":{"get":{"tags":["Account"],"summary":"Get the credit balance","operationId":"balance_v1_balance_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Balance"}}}},"400":{"description":"The request is invalid (invalid_request_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing, invalid, revoked or expired API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"Not enough credits (billing_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The key lacks a scope, or the workspace can't use this","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such object in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate or concurrency limit; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Upstream failure (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Briefly unavailable (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"Timed out upstream (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"apiKey":[]}]}},"/v1/catalog":{"get":{"tags":["Models"],"summary":"List what each model accepts","description":"What every model the API offers by default accepts. Public: the docs read it without a key.\nA workspace's own list and prices, overrides included, are in /v1/models.","operationId":"catalog_models_v1_catalog_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelList"}}}},"400":{"description":"The request is invalid (invalid_request_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing, invalid, revoked or expired API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"Not enough credits (billing_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The key lacks a scope, or the workspace can't use this","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such object in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate or concurrency limit; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Upstream failure (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Briefly unavailable (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"Timed out upstream (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[]}},"/v1/models":{"get":{"tags":["Models"],"summary":"List models with this workspace's rates","description":"The models this workspace can use: what each accepts (the catalog) and its credit rates\nafter the workspace's overrides (the gateway). A model the gateway doesn't serve right now is\nleft out.","operationId":"models_v1_models_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelList"}}}},"400":{"description":"The request is invalid (invalid_request_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing, invalid, revoked or expired API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"Not enough credits (billing_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The key lacks a scope, or the workspace can't use this","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such object in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate or concurrency limit; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Upstream failure (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Briefly unavailable (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"Timed out upstream (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"apiKey":[]}]}},"/v1/webhook_endpoints":{"get":{"tags":["Webhooks"],"summary":"List webhook endpoints","operationId":"list_endpoints_v1_webhook_endpoints_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointList"}}}},"400":{"description":"The request is invalid (invalid_request_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing, invalid, revoked or expired API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"Not enough credits (billing_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The key lacks a scope, or the workspace can't use this","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such object in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate or concurrency limit; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Upstream failure (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Briefly unavailable (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"Timed out upstream (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"apiKey":[]}]},"post":{"tags":["Webhooks"],"summary":"Create a webhook endpoint","operationId":"create_endpoint_v1_webhook_endpoints_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateEndpoint"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointWithSecret"}}}},"400":{"description":"The request is invalid (invalid_request_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing, invalid, revoked or expired API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"Not enough credits (billing_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The key lacks a scope, or the workspace can't use this","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such object in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate or concurrency limit; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Upstream failure (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Briefly unavailable (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"Timed out upstream (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"apiKey":[]}]}},"/v1/webhook_endpoints/{endpoint_id}":{"get":{"tags":["Webhooks"],"summary":"Get a webhook endpoint","operationId":"get_endpoint_v1_webhook_endpoints__endpoint_id__get","parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","title":"Endpoint Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpoint"}}}},"400":{"description":"The request is invalid (invalid_request_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing, invalid, revoked or expired API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"Not enough credits (billing_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The key lacks a scope, or the workspace can't use this","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such object in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate or concurrency limit; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Upstream failure (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Briefly unavailable (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"Timed out upstream (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"apiKey":[]}]},"patch":{"tags":["Webhooks"],"summary":"Update a webhook endpoint","operationId":"update_endpoint_v1_webhook_endpoints__endpoint_id__patch","parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","title":"Endpoint Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateEndpoint"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpoint"}}}},"400":{"description":"The request is invalid (invalid_request_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing, invalid, revoked or expired API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"Not enough credits (billing_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The key lacks a scope, or the workspace can't use this","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such object in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate or concurrency limit; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Upstream failure (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Briefly unavailable (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"Timed out upstream (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"apiKey":[]}]},"delete":{"tags":["Webhooks"],"summary":"Delete a webhook endpoint","operationId":"delete_endpoint_v1_webhook_endpoints__endpoint_id__delete","parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","title":"Endpoint Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpoint"}}}},"400":{"description":"The request is invalid (invalid_request_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing, invalid, revoked or expired API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"Not enough credits (billing_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The key lacks a scope, or the workspace can't use this","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such object in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate or concurrency limit; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Upstream failure (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Briefly unavailable (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"Timed out upstream (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"apiKey":[]}]}},"/v1/webhook_endpoints/{endpoint_id}/rotate_secret":{"post":{"tags":["Webhooks"],"summary":"Rotate an endpoint's secret","description":"A new signing secret. The old one stops working at once, so update the receiver first if\nit can't accept both for a moment.","operationId":"rotate_secret_v1_webhook_endpoints__endpoint_id__rotate_secret_post","parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","title":"Endpoint Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointWithSecret"}}}},"400":{"description":"The request is invalid (invalid_request_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing, invalid, revoked or expired API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"Not enough credits (billing_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The key lacks a scope, or the workspace can't use this","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such object in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate or concurrency limit; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Upstream failure (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Briefly unavailable (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"Timed out upstream (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"apiKey":[]}]}},"/v1/webhook_endpoints/{endpoint_id}/deliveries":{"get":{"tags":["Webhooks"],"summary":"List an endpoint's deliveries","description":"Recent deliveries to this endpoint, newest first, with every attempt.","operationId":"list_deliveries_v1_webhook_endpoints__endpoint_id__deliveries_get","parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","title":"Endpoint Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDeliveryList"}}}},"400":{"description":"The request is invalid (invalid_request_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing, invalid, revoked or expired API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"Not enough credits (billing_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The key lacks a scope, or the workspace can't use this","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such object in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate or concurrency limit; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Upstream failure (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Briefly unavailable (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"Timed out upstream (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"apiKey":[]}]}},"/v1/events":{"get":{"tags":["Events"],"summary":"List events","description":"What happened in this workspace, newest first, whether or not a webhook was configured.","operationId":"list_events_v1_events_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"starting_after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Starting After"}},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventList"}}}},"400":{"description":"The request is invalid (invalid_request_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing, invalid, revoked or expired API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"Not enough credits (billing_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The key lacks a scope, or the workspace can't use this","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such object in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate or concurrency limit; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Upstream failure (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Briefly unavailable (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"Timed out upstream (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"apiKey":[]}]}},"/v1/events/{event_id}":{"get":{"tags":["Events"],"summary":"Get an event","operationId":"get_event_v1_events__event_id__get","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"400":{"description":"The request is invalid (invalid_request_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing, invalid, revoked or expired API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"Not enough credits (billing_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The key lacks a scope, or the workspace can't use this","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such object in this workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate or concurrency limit; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Upstream failure (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Briefly unavailable (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"Timed out upstream (api_error); safe to retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"apiKey":[]}]}}},"components":{"schemas":{"Balance":{"properties":{"object":{"type":"string","const":"balance","title":"Object","default":"balance"},"available_credits":{"type":"integer","title":"Available Credits","description":"What a generation can spend right now."},"plan":{"type":"string","title":"Plan"},"renews_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Renews At"}},"type":"object","required":["available_credits","plan"],"title":"Balance"},"CreateEndpoint":{"properties":{"url":{"type":"string","maxLength":2048,"minLength":8,"title":"Url"},"events":{"items":{"type":"string"},"type":"array","title":"Events"},"description":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Description"}},"additionalProperties":false,"type":"object","required":["url"],"title":"CreateEndpoint"},"CreateGeneration":{"properties":{"model":{"type":"string","maxLength":120,"minLength":1,"title":"Model"},"prompt":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Prompt"},"negative_prompt":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Negative Prompt"},"images":{"items":{"$ref":"#/components/schemas/Media"},"type":"array","maxItems":32,"title":"Images"},"videos":{"items":{"$ref":"#/components/schemas/Media"},"type":"array","maxItems":8,"title":"Videos"},"audios":{"items":{"$ref":"#/components/schemas/Media"},"type":"array","maxItems":8,"title":"Audios"},"duration_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Seconds"},"resolution":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Resolution"},"aspect_ratio":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Aspect Ratio"},"generate_audio":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Generate Audio"},"seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seed"},"draft":{"anyOf":[{"$ref":"#/components/schemas/Draft"},{"type":"null"}]},"metadata":{"additionalProperties":{"type":"string"},"type":"object","title":"Metadata"}},"additionalProperties":false,"type":"object","required":["model"],"title":"CreateGeneration"},"CreateUpload":{"properties":{"content_type":{"type":"string","maxLength":100,"minLength":3,"title":"Content Type"}},"additionalProperties":false,"type":"object","required":["content_type"],"title":"CreateUpload"},"CreatedGeneration":{"properties":{"id":{"type":"string","title":"Id","examples":["gen_01JB4Z6Q1V5T8R2N3M4K5J6H7G"]},"object":{"type":"string","const":"generation","title":"Object","default":"generation"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type","description":"video or image","examples":["video"]},"model":{"type":"string","title":"Model","examples":["seedance_2_0"]},"status":{"type":"string","enum":["queued","running","succeeded","failed","cancelled"],"title":"Status","examples":["succeeded"]},"created_at":{"type":"string","title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"},"outputs":{"items":{"$ref":"#/components/schemas/Output"},"type":"array","title":"Outputs","description":"Filled once the generation has succeeded."},"credits":{"anyOf":[{"$ref":"#/components/schemas/Credits"},{"type":"null"}],"description":"Null until the first charge lands."},"error":{"anyOf":[{"$ref":"#/components/schemas/GenerationError"},{"type":"null"}],"description":"Set when the generation failed."},"draft":{"anyOf":[{"$ref":"#/components/schemas/DraftInfo"},{"type":"null"}],"description":"Set for a draft-mode video; null otherwise."},"metadata":{"additionalProperties":{"type":"string"},"type":"object","title":"Metadata","description":"Your own key/value pairs, as sent."},"estimated_time_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Estimated Time Seconds"}},"type":"object","required":["id","type","model","status","created_at","outputs","credits","error","metadata"],"title":"CreatedGeneration"},"Credits":{"properties":{"charged":{"type":"integer","title":"Charged","description":"Net credits charged: debits less refunds."},"standard":{"type":"integer","title":"Standard","description":"The same at list price, before the workspace's overrides."}},"type":"object","required":["charged","standard"],"title":"Credits"},"DeliveryAttempt":{"properties":{"attempt":{"type":"integer","title":"Attempt"},"attempted_at":{"type":"string","title":"Attempted At"},"status_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Status Code"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"duration_ms":{"type":"integer","title":"Duration Ms"}},"type":"object","required":["attempt","attempted_at","duration_ms"],"title":"DeliveryAttempt"},"Draft":{"properties":{"mode":{"type":"string","enum":["draft","finalize"],"title":"Mode"},"source_generation_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Source Generation Id"}},"additionalProperties":false,"type":"object","required":["mode"],"title":"Draft","description":"Draft mode: `draft` renders a cheap preview; `finalize` renders one finished draft in full,\nnamed by its generation id."},"DraftInfo":{"properties":{"mode":{"type":"string","enum":["draft","finalize"],"title":"Mode","description":"draft: a preview render; finalize: the full render of one draft."}},"type":"object","required":["mode"],"title":"DraftInfo"},"DraftMode":{"properties":{"resolutions":{"items":{"type":"string"},"type":"array","title":"Resolutions","description":"What a draft renders at."},"finalize_resolutions":{"items":{"type":"string"},"type":"array","title":"Finalize Resolutions","description":"What a finalize of a draft may target."},"source_lifetime_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Source Lifetime Days","description":"How long a draft can be finalized, at most."}},"type":"object","required":["resolutions","finalize_resolutions"],"title":"DraftMode"},"ErrorBody":{"properties":{"type":{"type":"string","title":"Type","examples":["invalid_request_error"]},"code":{"type":"string","title":"Code","examples":["parameter_invalid"]},"message":{"type":"string","title":"Message"}},"type":"object","required":["type","code","message"],"title":"ErrorBody"},"ErrorResponse":{"properties":{"error":{"$ref":"#/components/schemas/ErrorBody"}},"type":"object","required":["error"],"title":"ErrorResponse"},"Estimate":{"properties":{"object":{"type":"string","const":"estimate","title":"Object","default":"estimate"},"model":{"type":"string","title":"Model"},"type":{"type":"string","title":"Type"},"credits":{"type":"integer","title":"Credits","description":"What the generation would cost this workspace."},"standard_credits":{"type":"integer","title":"Standard Credits","description":"List price; differs only when an override applies."}},"type":"object","required":["model","type","credits","standard_credits"],"title":"Estimate"},"Event":{"properties":{"id":{"type":"string","title":"Id","examples":["evt_01JB4Z6Q1V5T8R2N3M4K5J6H7G"]},"object":{"type":"string","const":"event","title":"Object","default":"event"},"type":{"type":"string","title":"Type","examples":["generation.completed"]},"created_at":{"type":"string","title":"Created At"},"data":{"$ref":"#/components/schemas/EventData"}},"type":"object","required":["id","type","created_at","data"],"title":"Event"},"EventData":{"properties":{"object":{"$ref":"#/components/schemas/Generation"}},"type":"object","required":["object"],"title":"EventData"},"EventList":{"properties":{"object":{"type":"string","const":"list","title":"Object","default":"list"},"data":{"items":{"$ref":"#/components/schemas/Event"},"type":"array","title":"Data"},"has_more":{"type":"boolean","title":"Has More"}},"type":"object","required":["data","has_more"],"title":"EventList"},"Generation":{"properties":{"id":{"type":"string","title":"Id","examples":["gen_01JB4Z6Q1V5T8R2N3M4K5J6H7G"]},"object":{"type":"string","const":"generation","title":"Object","default":"generation"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type","description":"video or image","examples":["video"]},"model":{"type":"string","title":"Model","examples":["seedance_2_0"]},"status":{"type":"string","enum":["queued","running","succeeded","failed","cancelled"],"title":"Status","examples":["succeeded"]},"created_at":{"type":"string","title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"},"outputs":{"items":{"$ref":"#/components/schemas/Output"},"type":"array","title":"Outputs","description":"Filled once the generation has succeeded."},"credits":{"anyOf":[{"$ref":"#/components/schemas/Credits"},{"type":"null"}],"description":"Null until the first charge lands."},"error":{"anyOf":[{"$ref":"#/components/schemas/GenerationError"},{"type":"null"}],"description":"Set when the generation failed."},"draft":{"anyOf":[{"$ref":"#/components/schemas/DraftInfo"},{"type":"null"}],"description":"Set for a draft-mode video; null otherwise."},"metadata":{"additionalProperties":{"type":"string"},"type":"object","title":"Metadata","description":"Your own key/value pairs, as sent."}},"type":"object","required":["id","type","model","status","created_at","outputs","credits","error","metadata"],"title":"Generation"},"GenerationError":{"properties":{"code":{"type":"string","title":"Code","examples":["generation_failed"]},"message":{"type":"string","title":"Message"}},"type":"object","required":["code","message"],"title":"GenerationError"},"GenerationInput":{"properties":{"model":{"type":"string","maxLength":120,"minLength":1,"title":"Model"},"prompt":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Prompt"},"negative_prompt":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Negative Prompt"},"images":{"items":{"$ref":"#/components/schemas/Media"},"type":"array","maxItems":32,"title":"Images"},"videos":{"items":{"$ref":"#/components/schemas/Media"},"type":"array","maxItems":8,"title":"Videos"},"audios":{"items":{"$ref":"#/components/schemas/Media"},"type":"array","maxItems":8,"title":"Audios"},"duration_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Seconds"},"resolution":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Resolution"},"aspect_ratio":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Aspect Ratio"},"generate_audio":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Generate Audio"},"seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seed"},"draft":{"anyOf":[{"$ref":"#/components/schemas/Draft"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["model"],"title":"GenerationInput","description":"The request a generation is made from. This fixes the shape; `catalog.check` holds the\nvalues to what the model lists, and the gateway has the last word."},"GenerationList":{"properties":{"object":{"type":"string","const":"list","title":"Object","default":"list"},"data":{"items":{"$ref":"#/components/schemas/Generation"},"type":"array","title":"Data"},"has_more":{"type":"boolean","title":"Has More"}},"type":"object","required":["data","has_more"],"title":"GenerationList"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"KeyIdentity":{"properties":{"object":{"type":"string","const":"api_key_identity","title":"Object","default":"api_key_identity"},"key_id":{"type":"string","title":"Key Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"}},"type":"object","required":["key_id","workspace_id","scopes"],"title":"KeyIdentity"},"Media":{"properties":{"url":{"type":"string","maxLength":4096,"minLength":1,"title":"Url"},"role":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Role"}},"additionalProperties":false,"type":"object","required":["url"],"title":"Media"},"Model":{"properties":{"object":{"type":"string","const":"model","title":"Object","default":"model"},"id":{"type":"string","title":"Id","examples":["seedance_2_0"]},"type":{"type":"string","title":"Type","description":"video or image"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"text_to_video":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Text To Video"},"image_to_video":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Image To Video"},"last_frame":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Last Frame","description":"Accepts an image with role last_frame."},"last_frame_requires_first_frame":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Last Frame Requires First Frame"},"aspect_follows_first_frame":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Aspect Follows First Frame","description":"With a first frame, the output takes that image's aspect ratio."},"min_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Seconds"},"max_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Seconds"},"only_seconds":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Only Seconds","description":"When set, the only durations allowed."},"aspect_ratios":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Aspect Ratios"},"resolutions":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Resolutions"},"max_reference_images":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Reference Images"},"max_input_images":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Input Images"},"sound":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sound","description":"optional, always or none"},"max_prompt_chars":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Prompt Chars"},"draft":{"anyOf":[{"$ref":"#/components/schemas/DraftMode"},{"type":"null"}],"description":"Draft mode, on models that offer it; null otherwise."},"credits":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Credits","description":"This workspace's credits: per second by resolution for video, per image for images."}},"type":"object","required":["id","type"],"title":"Model"},"ModelList":{"properties":{"object":{"type":"string","const":"list","title":"Object","default":"list"},"data":{"items":{"$ref":"#/components/schemas/Model"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"ModelList"},"Output":{"properties":{"type":{"type":"string","title":"Type","description":"video or image","examples":["video"]},"url":{"type":"string","title":"Url","description":"Ready to download. A private file comes back signed for an hour."},"width":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Width"},"height":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Height"},"duration_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duration Seconds"}},"type":"object","required":["type","url"],"title":"Output"},"UpdateEndpoint":{"properties":{"url":{"anyOf":[{"type":"string","maxLength":2048,"minLength":8},{"type":"null"}],"title":"Url"},"events":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Events"},"description":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Description"},"status":{"anyOf":[{"type":"string","enum":["enabled","disabled"]},{"type":"null"}],"title":"Status"}},"additionalProperties":false,"type":"object","title":"UpdateEndpoint"},"Upload":{"properties":{"object":{"type":"string","const":"upload","title":"Object","default":"upload"},"upload_url":{"type":"string","title":"Upload Url","description":"PUT the file here once, within the hour."},"url":{"type":"string","title":"Url","description":"Use this in a generation's images, videos or audios."},"expires_at":{"type":"string","title":"Expires At"}},"type":"object","required":["upload_url","url","expires_at"],"title":"Upload"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"WebhookDelivery":{"properties":{"id":{"type":"string","title":"Id"},"object":{"type":"string","const":"webhook_delivery","title":"Object","default":"webhook_delivery"},"event_id":{"type":"string","title":"Event Id"},"event_type":{"type":"string","title":"Event Type"},"status":{"type":"string","title":"Status","description":"pending, succeeded, failed or skipped"},"attempts":{"type":"integer","title":"Attempts"},"next_attempt_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Attempt At"},"last_status_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Last Status Code"},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error"},"created_at":{"type":"string","title":"Created At"},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completed At"},"attempt_log":{"items":{"$ref":"#/components/schemas/DeliveryAttempt"},"type":"array","title":"Attempt Log"}},"type":"object","required":["id","event_id","event_type","status","attempts","created_at","attempt_log"],"title":"WebhookDelivery"},"WebhookDeliveryList":{"properties":{"object":{"type":"string","const":"list","title":"Object","default":"list"},"data":{"items":{"$ref":"#/components/schemas/WebhookDelivery"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"WebhookDeliveryList"},"WebhookEndpoint":{"properties":{"id":{"type":"string","title":"Id","examples":["we_01JB4Z6Q1V5T8R2N3M4K5J6H7G"]},"object":{"type":"string","const":"webhook_endpoint","title":"Object","default":"webhook_endpoint"},"url":{"type":"string","title":"Url"},"events":{"items":{"type":"string"},"type":"array","title":"Events"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"status":{"type":"string","title":"Status","description":"enabled or disabled"},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"}},"type":"object","required":["id","url","events","status","created_at","updated_at"],"title":"WebhookEndpoint"},"WebhookEndpointList":{"properties":{"object":{"type":"string","const":"list","title":"Object","default":"list"},"data":{"items":{"$ref":"#/components/schemas/WebhookEndpoint"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"WebhookEndpointList"},"WebhookEndpointWithSecret":{"properties":{"id":{"type":"string","title":"Id","examples":["we_01JB4Z6Q1V5T8R2N3M4K5J6H7G"]},"object":{"type":"string","const":"webhook_endpoint","title":"Object","default":"webhook_endpoint"},"url":{"type":"string","title":"Url"},"events":{"items":{"type":"string"},"type":"array","title":"Events"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"status":{"type":"string","title":"Status","description":"enabled or disabled"},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"},"secret":{"type":"string","title":"Secret","description":"The signing secret. Shown only here; store it now."}},"type":"object","required":["id","url","events","status","created_at","updated_at","secret"],"title":"WebhookEndpointWithSecret"}},"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","description":"Your API key, fk_live_..."}}}}