{
  "openapi": "3.1.0",
  "info": {
    "title": "OneUpAI API",
    "version": "1",
    "description": "One key and one credit balance to make short-form video: generate pictures, clips, voice and music, then edit them into a finished video with a render engine that gives the same result every time. If we fail, you are refunded.\n\nOnly a key from a plan with API access (Concierge or Concierge Plus) can call the API. Send it as `Authorization: Bearer <key>`. Every job you start carries an `Idempotency-Key`: a retry with the same key never charges twice. Every error carries a stable `error` code; branch on the code, never on the message.\n\nEach model has its own path below. Queued models answer with a ticket you poll; models that answer now return the result in the response. Render a finished video with Projects, Timelines and POST /v1/renders."
  },
  "servers": [
    {
      "url": "https://api.oneupai.com"
    }
  ],
  "security": [
    {
      "apiKey": []
    }
  ],
  "tags": [
    {
      "name": "Account"
    },
    {
      "name": "Models"
    },
    {
      "name": "Run a model (queued)"
    },
    {
      "name": "Run a model (answer now)"
    },
    {
      "name": "Jobs"
    },
    {
      "name": "Files"
    },
    {
      "name": "Uploads"
    },
    {
      "name": "Projects"
    },
    {
      "name": "Render"
    },
    {
      "name": "Brand Kit"
    }
  ],
  "paths": {
    "/v1/assets": {
      "get": {
        "tags": [
          "Files"
        ],
        "operationId": "listAssets",
        "summary": "Your stored files, newest first",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Limit"
          },
          {
            "$ref": "#/components/parameters/Offset"
          },
          {
            "$ref": "#/components/parameters/Origin"
          }
        ],
        "responses": {
          "200": {
            "description": "A page of files.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssetList"
                },
                "example": {
                  "assets": [
                    {
                      "id": "oneup_asset_MZ3l2hrtqa7jwJTo8EZHBdpVND",
                      "content_type": "image/jpeg",
                      "size_bytes": 780860,
                      "created_at": "2026-10-08T14:02:19.906Z",
                      "url": "https://media.oneupai.com/a/oneup_asset_MZ3l2hrtqa7jwJTo8EZHBdpVND/1791433973/IV77-eaCSyVIx3QBdvr0OzJK3SyyPrybmA7JAHv1U7U",
                      "width": 1080,
                      "height": 1920,
                      "has_audio": false,
                      "via": "generated"
                    }
                  ],
                  "page": {
                    "limit": 20,
                    "offset": 0,
                    "has_more": false
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error: `invalid_request`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/assets/urls": {
      "post": {
        "tags": [
          "Files"
        ],
        "operationId": "assetUrls",
        "summary": "Fresh links to many of your files at once",
        "description": "Up to 50 files in one call, which counts as one read. An id that is not yours comes back in `refused`.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AssetIds"
              },
              "example": {
                "asset_ids": [
                  "oneup_asset_MZ3l2hrtqa7jwJTo8EZHBdpVND",
                  "oneup_asset_wVb59L9t3920xfZw397HeG4mnU",
                  "oneup_asset_Xr4mQ2pL8vNc6TbW1kZ9sHd3Jy"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "A link for each of your files, in the order you asked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssetUrls"
                },
                "example": {
                  "urls": [
                    {
                      "asset_id": "oneup_asset_MZ3l2hrtqa7jwJTo8EZHBdpVND",
                      "url": "https://media.oneupai.com/a/oneup_asset_MZ3l2hrtqa7jwJTo8EZHBdpVND/1791433973/IV77-eaCSyVIx3QBdvr0OzJK3SyyPrybmA7JAHv1U7U",
                      "content_type": "image/jpeg",
                      "download_url": "https://media.oneupai.com/a/oneup_asset_MZ3l2hrtqa7jwJTo8EZHBdpVND/1791433973/IV77-eaCSyVIx3QBdvr0OzJK3SyyPrybmA7JAHv1U7U?download=oneup_asset_MZ3l2hrtqa7jwJTo8EZHBdpVND.jpg",
                      "duration_ms": null
                    },
                    {
                      "asset_id": "oneup_asset_wVb59L9t3920xfZw397HeG4mnU",
                      "url": "https://media.oneupai.com/a/oneup_asset_wVb59L9t3920xfZw397HeG4mnU/1791436086/Rk2Qe8Lw5Tz1Nv7Hc4Xp9Bm3Jd6Fs0Gy2Ua8Ki5Oe1W",
                      "content_type": "video/mp4",
                      "download_url": "https://media.oneupai.com/a/oneup_asset_wVb59L9t3920xfZw397HeG4mnU/1791436086/Rk2Qe8Lw5Tz1Nv7Hc4Xp9Bm3Jd6Fs0Gy2Ua8Ki5Oe1W?download=oneup_asset_wVb59L9t3920xfZw397HeG4mnU.mp4",
                      "duration_ms": 24000,
                      "poster_url": "https://media.oneupai.com/a/oneup_asset_A06obVi1TFUVNsSuvw9qWDso2M/1791436086/WkCbUhkBLfms3A9XE37emS1oYI1O66NM2DwSXgqbtKt"
                    }
                  ],
                  "refused": [
                    {
                      "asset_id": "oneup_asset_Xr4mQ2pL8vNc6TbW1kZ9sHd3Jy",
                      "code": "not_found"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Error: `invalid_request`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error: `payload_too_large`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/assets/{asset_id}": {
      "delete": {
        "tags": [
          "Files"
        ],
        "operationId": "deleteAsset",
        "summary": "Delete one of your files, for good",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "asset_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Deleted (or already gone).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "ok": true
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error: `not_found`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/assets/{asset_id}/url": {
      "get": {
        "tags": [
          "Files"
        ],
        "operationId": "getAssetUrl",
        "summary": "A fresh link to one of your files",
        "description": "File links last an hour; ask here for a new one any time.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "asset_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The link.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssetUrl"
                },
                "example": {
                  "asset_id": "oneup_asset_MZ3l2hrtqa7jwJTo8EZHBdpVND",
                  "url": "https://media.oneupai.com/a/oneup_asset_MZ3l2hrtqa7jwJTo8EZHBdpVND/1791433973/IV77-eaCSyVIx3QBdvr0OzJK3SyyPrybmA7JAHv1U7U",
                  "content_type": "image/jpeg",
                  "download_url": "https://media.oneupai.com/a/oneup_asset_MZ3l2hrtqa7jwJTo8EZHBdpVND/1791433973/IV77-eaCSyVIx3QBdvr0OzJK3SyyPrybmA7JAHv1U7U?download=oneup_asset_MZ3l2hrtqa7jwJTo8EZHBdpVND.jpg",
                  "duration_ms": null
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error: `not_found`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/brand": {
      "get": {
        "tags": [
          "Brand Kit"
        ],
        "operationId": "getBrandKit",
        "summary": "Your Brand Kit",
        "security": [
          {
            "apiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Your Brand Kit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrandKitView"
                },
                "example": {
                  "version": 3,
                  "kit": {
                    "kit_v": 1,
                    "headshot_upload": "oneup_upload_4Rk8TzQ1mWc7Yp2NvLx9Bf3HsD",
                    "logo_upload": "oneup_upload_9Jd2LqV6tHn4Xw8ZbR1cMk5PyG",
                    "name": "Dana Ruiz",
                    "phone": "+1 555 0142",
                    "brokerage": "Harbor Realty",
                    "link": "https://www.example.com/dana",
                    "cta": "Book a showing",
                    "accent": "gold",
                    "card_type": "serif",
                    "logo_corner": "tr",
                    "logo_size": 12
                  },
                  "files": {
                    "headshot": {
                      "file_url": "https://media.oneupai.com/u/oneup_upload_4Rk8TzQ1mWc7Yp2NvLx9Bf3HsD/1791523800/Wq4zR7cN2vB9xL1kT6mP3sY8dF5gH0jA7eU2iO9nZ4c",
                      "bytes": 412336,
                      "content_type": "image/jpeg"
                    },
                    "logo": {
                      "file_url": "https://media.oneupai.com/u/oneup_upload_9Jd2LqV6tHn4Xw8ZbR1cMk5PyG/1791523800/Wq4zR7cN2vB9xL1kT6mP3sY8dF5gH0jA7eU2iO9nZ4c",
                      "bytes": 38904,
                      "content_type": "image/png"
                    }
                  },
                  "missing_assets": []
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error: `not_found`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Error: `unavailable`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Brand Kit"
        ],
        "operationId": "putBrandKit",
        "summary": "Save your Brand Kit",
        "security": [
          {
            "apiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BrandKitPut"
              },
              "example": {
                "expected_version": 2,
                "kit": {
                  "kit_v": 1,
                  "headshot_upload": "oneup_upload_4Rk8TzQ1mWc7Yp2NvLx9Bf3HsD",
                  "logo_upload": "oneup_upload_9Jd2LqV6tHn4Xw8ZbR1cMk5PyG",
                  "name": "Dana Ruiz",
                  "phone": "+1 555 0142",
                  "brokerage": "Harbor Realty",
                  "link": "https://www.example.com/dana",
                  "cta": "Book a showing",
                  "accent": "gold",
                  "card_type": "serif",
                  "logo_corner": "tr",
                  "logo_size": 12
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The saved Brand Kit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrandKitView"
                },
                "example": {
                  "version": 3,
                  "kit": {
                    "kit_v": 1,
                    "headshot_upload": "oneup_upload_4Rk8TzQ1mWc7Yp2NvLx9Bf3HsD",
                    "logo_upload": "oneup_upload_9Jd2LqV6tHn4Xw8ZbR1cMk5PyG",
                    "name": "Dana Ruiz",
                    "phone": "+1 555 0142",
                    "brokerage": "Harbor Realty",
                    "link": "https://www.example.com/dana",
                    "cta": "Book a showing",
                    "accent": "gold",
                    "card_type": "serif",
                    "logo_corner": "tr",
                    "logo_size": 12
                  },
                  "files": {
                    "headshot": {
                      "file_url": "https://media.oneupai.com/u/oneup_upload_4Rk8TzQ1mWc7Yp2NvLx9Bf3HsD/1791523800/Wq4zR7cN2vB9xL1kT6mP3sY8dF5gH0jA7eU2iO9nZ4c",
                      "bytes": 412336,
                      "content_type": "image/jpeg"
                    },
                    "logo": {
                      "file_url": "https://media.oneupai.com/u/oneup_upload_9Jd2LqV6tHn4Xw8ZbR1cMk5PyG/1791523800/Wq4zR7cN2vB9xL1kT6mP3sY8dF5gH0jA7eU2iO9nZ4c",
                      "bytes": 38904,
                      "content_type": "image/png"
                    }
                  },
                  "missing_assets": []
                }
              }
            }
          },
          "400": {
            "description": "Error: `invalid_request`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`, `account_frozen`, `credit_debt`, `entitlement_required`, `plan_required`, `storage_quota_exceeded`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error: `version_conflict`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error: `payload_too_large`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Error: `unavailable`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/generations": {
      "get": {
        "tags": [
          "Jobs"
        ],
        "operationId": "listGenerations",
        "summary": "Your jobs, newest first",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Limit"
          },
          {
            "$ref": "#/components/parameters/Offset"
          }
        ],
        "responses": {
          "200": {
            "description": "A page of jobs.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenerationList"
                },
                "example": {
                  "generations": [
                    {
                      "ticket": "oneup_req_SuaNFGGC0b4MGIeOrp78KFRXfR",
                      "alias": "oneup/image-generate-lite",
                      "status": "COMPLETED",
                      "credits": 1,
                      "created_at": "2026-10-08T14:02:11.482Z",
                      "refunded": false,
                      "label": null
                    }
                  ],
                  "page": {
                    "limit": 20,
                    "offset": 0,
                    "has_more": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/me": {
      "get": {
        "tags": [
          "Account"
        ],
        "operationId": "getMe",
        "summary": "Your plan, credits and storage",
        "description": "Works for any valid key, whatever the account's state.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Your account.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Me"
                },
                "example": {
                  "entitlement": "active",
                  "plan": "builder",
                  "credits": {
                    "period": 28000,
                    "promo": 0,
                    "topup": 0,
                    "total": 28000
                  },
                  "credit_debt": 0,
                  "period_end": "2026-11-07T18:30:00.000Z",
                  "cancel_at_period_end": false,
                  "storage": {
                    "used_bytes": 0,
                    "quota_gb": 200
                  },
                  "used_this_period": {
                    "credits": 0,
                    "jobs": 0
                  },
                  "plan_name": "Concierge",
                  "perks": [
                    "email_support",
                    "content_help"
                  ],
                  "support": {
                    "contact_url": "mailto:video@oneupai.com",
                    "whatsapp_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/models": {
      "get": {
        "tags": [
          "Models"
        ],
        "operationId": "listModels",
        "summary": "Every model, its input and its price",
        "description": "Public: no key needed. The live list, the same for every caller. Each model also has its own path in this reference.",
        "security": [],
        "responses": {
          "200": {
            "description": "The models.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ModelList"
                },
                "example": {
                  "models": [
                    {
                      "alias": "oneup/image-generate-lite",
                      "name": {
                        "en": "Quick image",
                        "es": "Imagen rápida"
                      },
                      "group": "building_block",
                      "status": "active",
                      "previously": [
                        "oneup/image-fast"
                      ],
                      "version": 1,
                      "category": "image",
                      "execution": "queue",
                      "description": {
                        "en": "Fast text-to-image. Params: prompt, image_size?. Priced per megapixel (max 4 MP).",
                        "es": "Texto a imagen rápido. Parámetros: prompt, image_size?. Precio por megapíxel (máx. 4 MP)."
                      },
                      "example_input": {
                        "prompt": "a red bicycle in the rain"
                      },
                      "input_schema": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "prompt"
                        ],
                        "properties": {
                          "prompt": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2000,
                            "description": "What to generate."
                          },
                          "image_size": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "width",
                              "height"
                            ],
                            "properties": {
                              "width": {
                                "type": "integer",
                                "minimum": 256,
                                "maximum": 2048
                              },
                              "height": {
                                "type": "integer",
                                "minimum": 256,
                                "maximum": 2048
                              }
                            }
                          }
                        }
                      },
                      "output_schema": {
                        "type": "object",
                        "additionalProperties": true,
                        "required": [
                          "assets"
                        ],
                        "properties": {
                          "assets": {
                            "type": "array",
                            "minItems": 1,
                            "items": {
                              "type": "object",
                              "required": [
                                "asset_id",
                                "content_type",
                                "size_bytes",
                                "url"
                              ]
                            }
                          }
                        }
                      },
                      "input_modalities": [
                        "text"
                      ],
                      "output_modalities": [
                        "image"
                      ],
                      "limits": {
                        "chars": {
                          "prompt": {
                            "min": 1,
                            "max": 2000
                          }
                        },
                        "image_side_px": {
                          "min": 256,
                          "max": 2048
                        },
                        "megapixels": {
                          "min": 1,
                          "max": 4
                        }
                      },
                      "output": {
                        "summary": {
                          "en": "One finished image, ready to download or to use as a cover in a video.",
                          "es": "Una imagen terminada, lista para descargar o usar como portada en un video."
                        },
                        "delivery": "file",
                        "type": "image/*",
                        "resolution": "as_requested",
                        "link_expires_in_s": 3600
                      },
                      "run_time": {
                        "p50_s": 6.4,
                        "p95_s": 15.2
                      },
                      "best_for": {
                        "en": [
                          "Product shots",
                          "Social posts",
                          "Covers and thumbnails"
                        ],
                        "es": [
                          "Fotos de producto",
                          "Publicaciones sociales",
                          "Portadas y miniaturas"
                        ]
                      },
                      "not_for": {
                        "en": [
                          "Editing a photo you already have: use oneup/image-edit.",
                          "Our most detailed pictures: use oneup/image-generate-pro.",
                          "Pictures larger than 4 megapixels."
                        ],
                        "es": [
                          "Editar una foto que ya tienes: usa oneup/image-edit.",
                          "Nuestras imágenes con más detalle: usa oneup/image-generate-pro.",
                          "Imágenes de más de 4 megapíxeles."
                        ]
                      },
                      "example": {
                        "input": {
                          "prompt": "a red bicycle in the rain"
                        },
                        "output_url": null,
                        "response": null
                      },
                      "price_examples": {
                        "en": [
                          "a picture at the default size (1 megapixel): 1 credit, about $0.01",
                          "a 2000 × 2000 picture (4 megapixels): 4 credits, about $0.04"
                        ],
                        "es": [
                          "una imagen al tamaño por defecto (1 megapíxel): 1 crédito, unos 0,01 US$",
                          "una imagen de 2000 × 2000 (4 megapíxeles): 4 créditos, unos 0,04 US$"
                        ]
                      },
                      "changelog": [
                        {
                          "version": 1,
                          "date": "2026-10-08",
                          "change": {
                            "en": "New name; previously oneup/image-fast. The same input, output and price.",
                            "es": "Nombre nuevo; antes oneup/image-fast. La misma entrada, salida y precio."
                          }
                        },
                        {
                          "version": 1,
                          "date": "2026-08-07",
                          "change": {
                            "en": "First version.",
                            "es": "Primera versión."
                          }
                        }
                      ],
                      "pricing": {
                        "type": "per_megapixel",
                        "credit_cost": 0,
                        "unit_credit_cost": 1,
                        "unit_param": "megapixels",
                        "unit_min": 1,
                        "unit_max": 4,
                        "unit_source": "param"
                      }
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "description": "Error: `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/plans": {
      "get": {
        "tags": [
          "Account"
        ],
        "operationId": "listPlans",
        "summary": "The plans, cheapest first",
        "description": "Public: no key needed. The same answer for every caller.",
        "security": [],
        "responses": {
          "200": {
            "description": "The plans.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanList"
                },
                "example": {
                  "plans": [
                    {
                      "id": "starter",
                      "name": "Solo",
                      "price_cents": 4900,
                      "monthly_credits": 4000,
                      "storage_gb": 5,
                      "api_access": false,
                      "social_accounts": 2,
                      "perks": [
                        "email_support"
                      ],
                      "offered": false
                    },
                    {
                      "id": "creator",
                      "name": "Channel",
                      "price_cents": 7900,
                      "monthly_credits": 6800,
                      "storage_gb": 10,
                      "api_access": false,
                      "social_accounts": 4,
                      "perks": [
                        "email_support"
                      ],
                      "offered": false
                    },
                    {
                      "id": "pro",
                      "name": "Business DIY",
                      "price_cents": 9700,
                      "monthly_credits": 9000,
                      "storage_gb": 50,
                      "api_access": false,
                      "social_accounts": 3,
                      "perks": [
                        "email_support"
                      ],
                      "offered": true
                    },
                    {
                      "id": "builder",
                      "name": "Concierge",
                      "price_cents": 29700,
                      "monthly_credits": 28000,
                      "storage_gb": 200,
                      "api_access": true,
                      "social_accounts": 5,
                      "perks": [
                        "email_support",
                        "content_help"
                      ],
                      "offered": true
                    },
                    {
                      "id": "scale_plus",
                      "name": "Concierge Plus",
                      "price_cents": 49700,
                      "monthly_credits": 48000,
                      "storage_gb": 500,
                      "api_access": true,
                      "social_accounts": 5,
                      "perks": [
                        "email_support",
                        "content_help",
                        "account_manager",
                        "monthly_call"
                      ],
                      "offered": true
                    }
                  ],
                  "packs": [
                    {
                      "price_cents": 1500,
                      "credits": 1000,
                      "on_sale": true
                    },
                    {
                      "price_cents": 4500,
                      "credits": 3000,
                      "on_sale": true
                    },
                    {
                      "price_cents": 7500,
                      "credits": 5000,
                      "on_sale": true
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "description": "Error: `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects": {
      "get": {
        "tags": [
          "Projects"
        ],
        "operationId": "listProjects",
        "summary": "Your Projects",
        "security": [
          {
            "apiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Your Projects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectList"
                },
                "example": {
                  "projects": [
                    {
                      "project_id": "3f6c2a9e-8b1d-4e7a-9c5f-2d8b7a1e4c60",
                      "agent_slug": "oneup/render-timeline",
                      "current_version_id": "b7e4d2a1-5c3f-4a8e-9b6d-1f2e3c4d5a6b",
                      "missing_inputs": false,
                      "created_at": "2026-10-08T14:10:03.117Z"
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Projects"
        ],
        "operationId": "createProject",
        "summary": "Start a Project",
        "security": [
          {
            "apiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProjectCreate"
              },
              "example": {
                "agent_slug": "oneup/render-timeline"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectCreated"
                },
                "example": {
                  "project_id": "3f6c2a9e-8b1d-4e7a-9c5f-2d8b7a1e4c60"
                }
              }
            }
          },
          "400": {
            "description": "Error: `invalid_request`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`, `account_frozen`, `credit_debt`, `entitlement_required`, `plan_required`, `storage_quota_exceeded`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error: `payload_too_large`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Error: `unavailable`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/{project_id}": {
      "get": {
        "tags": [
          "Projects"
        ],
        "operationId": "getProject",
        "summary": "One Project",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "project_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The Project.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Project"
                },
                "example": {
                  "project_id": "3f6c2a9e-8b1d-4e7a-9c5f-2d8b7a1e4c60",
                  "current_version_id": "b7e4d2a1-5c3f-4a8e-9b6d-1f2e3c4d5a6b"
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error: `not_found`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Projects"
        ],
        "operationId": "deleteProject",
        "summary": "Delete a Project and its Timelines",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "project_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Deleted"
                },
                "example": {
                  "deleted": true
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error: `not_found`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/{project_id}/timeline": {
      "get": {
        "tags": [
          "Projects"
        ],
        "operationId": "getTimeline",
        "summary": "A Project's Timeline version",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "project_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "version",
            "in": "query",
            "required": false,
            "description": "A version id; the current version when omitted.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The version.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TimelineVersion"
                },
                "example": {
                  "version_id": "b7e4d2a1-5c3f-4a8e-9b6d-1f2e3c4d5a6b",
                  "parent_version_id": null,
                  "timeline_hash": "9c2f6e1a4b7d3c8e5f0a2b6d9e1c4f7a3b8d2e5c0f6a9b1d4e7c2a5f8b3d6e0c",
                  "segment_hashes": [
                    {
                      "seg_id": "before",
                      "hash": "4d1e8a2f6c3b9e7d0a5f2c8b1e4d7a9c3f6b0e2d5a8c1f4b7e9d2a6c3f0b8e5d"
                    },
                    {
                      "seg_id": "after",
                      "hash": "a3c7e1f5b9d2a6e0c4f8b2d6a0e4c8f2b6d0a4e8c2f6b0d4a8e2c6f0b4d8a2e6"
                    }
                  ],
                  "timeline_url": "https://media.oneupai.com/a/e2b8c4a6-1d3f-4b5e-9a7c-6f0d2e4b8a1c/1791437401/kD8vN3qZ6xT1wR9mB4cL7yP2sF5hJ0gA3eU8iO1nX6t",
                  "created_at": "2026-10-08T14:10:05.664Z"
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error: `not_found`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Projects"
        ],
        "operationId": "putTimeline",
        "summary": "Save a new Timeline version",
        "description": "Versions never change once saved. Send the `parent_version_id` you edited from; if someone saved first you get `version_conflict` and should reload.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "project_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TimelinePut"
              },
              "example": {
                "timeline": {
                  "v": "1.2",
                  "output": {
                    "aspect": "9:16",
                    "resolution": 1080,
                    "fps": 30,
                    "container": "mp4"
                  },
                  "segments": [
                    {
                      "id": "before",
                      "source": {
                        "$asset": "oneup_upload_4Rk8TzQ1mWc7Yp2NvLx9Bf3HsD"
                      },
                      "duration": 3000,
                      "effects": [
                        {
                          "op": "zoom",
                          "level": 1.08
                        }
                      ],
                      "transition_out": {
                        "op": "seamless_spin",
                        "duration": 900
                      }
                    },
                    {
                      "id": "after",
                      "source": {
                        "$asset": "oneup_upload_9Jd2LqV6tHn4Xw8ZbR1cMk5PyG"
                      },
                      "duration": 5000,
                      "effects": [
                        {
                          "op": "zoom",
                          "level": 1.08
                        }
                      ],
                      "transition_out": {
                        "op": "cut",
                        "duration": 0
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Saved.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TimelineSaved"
                },
                "example": {
                  "version_id": "b7e4d2a1-5c3f-4a8e-9b6d-1f2e3c4d5a6b",
                  "parent_version_id": null,
                  "timeline_hash": "9c2f6e1a4b7d3c8e5f0a2b6d9e1c4f7a3b8d2e5c0f6a9b1d4e7c2a5f8b3d6e0c"
                }
              }
            }
          },
          "400": {
            "description": "Error: `invalid_request`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`, `account_frozen`, `credit_debt`, `entitlement_required`, `plan_required`, `storage_quota_exceeded`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error: `not_found`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error: `version_conflict`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error: `payload_too_large`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Error: `unavailable`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/queue/result/{ticket}": {
      "get": {
        "tags": [
          "Jobs"
        ],
        "operationId": "getResult",
        "summary": "A finished job's files",
        "description": "COMPLETED jobs only; before that the answer is `not_found` with the current `status`. A failed job answers `upstream_error` (refunded).",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Ticket"
          }
        ],
        "responses": {
          "200": {
            "description": "The files.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenerationResult"
                },
                "example": {
                  "ticket": "oneup_req_SuaNFGGC0b4MGIeOrp78KFRXfR",
                  "status": "COMPLETED",
                  "alias": "oneup/image-generate-lite",
                  "assets": [
                    {
                      "asset_id": "oneup_asset_MZ3l2hrtqa7jwJTo8EZHBdpVND",
                      "content_type": "image/jpeg",
                      "size_bytes": 780860,
                      "url": "https://media.oneupai.com/a/oneup_asset_MZ3l2hrtqa7jwJTo8EZHBdpVND/1791433973/IV77-eaCSyVIx3QBdvr0OzJK3SyyPrybmA7JAHv1U7U"
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error: `not_found`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Error: `upstream_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/queue/status/{ticket}": {
      "get": {
        "tags": [
          "Jobs"
        ],
        "operationId": "getStatus",
        "summary": "A queued job's status",
        "description": "Poll every 2 seconds for the first 30 seconds, then every 5 seconds.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Ticket"
          }
        ],
        "responses": {
          "200": {
            "description": "The status.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenerationStatus"
                },
                "example": {
                  "ticket": "oneup_req_SuaNFGGC0b4MGIeOrp78KFRXfR",
                  "status": "COMPLETED"
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error: `not_found`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/queue/submit/oneup/audio-beats": {
      "post": {
        "tags": [
          "Run a model (queued)"
        ],
        "operationId": "submit_audio_beats",
        "summary": "Beat map for a track",
        "description": "Beat analysis of one music track, for cutting video on the beat: tempo, beat times, accents, energy sections and an indexed list of cut candidates. Params: audio_url (your upload or asset, up to 10 minutes). The result is an annotation_id whose JSON you read. 2 credits per track. Live price: GET /v1/models. Charged when accepted; refunded if it fails.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "description": "This model's input. The example shows a working body; GET /v1/models has the live details.",
                "properties": {
                  "label": {
                    "type": "string",
                    "description": "Optional. A name for this job and every file it makes, shown on your account page and used as the download name. Never sent to the model.",
                    "pattern": "^[A-Za-z0-9._-]{1,80}$"
                  }
                }
              },
              "example": {
                "audio_url": "https://media.oneupai.com/u/oneup_upload_yourtrack/1790000000/sig"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Accepted. Poll GET /v1/queue/status/{ticket}, then read GET /v1/queue/result/{ticket}.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueAccepted"
                },
                "example": {
                  "ticket": "oneup_req_SuaNFGGC0b4MGIeOrp78KFRXfR",
                  "status": "QUEUED"
                }
              }
            }
          },
          "202": {
            "description": "Not yet confirmed (`UNCERTAIN`). Keep polling; you are never charged twice.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueAccepted"
                }
              }
            }
          },
          "400": {
            "description": "Error: `invalid_request`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Error: `out_of_credits`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`, `account_frozen`, `credit_debt`, `entitlement_required`, `plan_required`, `storage_quota_exceeded`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error: `unknown_model`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error: `idempotency_conflict`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Error: `model_retired`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error: `payload_too_large`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error: `invalid_input`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `daily_limit_reached`, `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Error: `upstream_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Error: `unavailable`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-output-schema": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "duration_sec",
            "bpm",
            "beats",
            "accents",
            "sections",
            "cut_candidates"
          ],
          "properties": {
            "duration_sec": {
              "type": "number"
            },
            "bpm": {
              "type": "number"
            },
            "beats": {
              "type": "array",
              "items": {
                "type": "number"
              }
            },
            "accents": {
              "type": "array",
              "items": {
                "type": "number"
              }
            },
            "sections": {
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "start",
                  "end",
                  "energy"
                ],
                "properties": {
                  "start": {
                    "type": "number"
                  },
                  "end": {
                    "type": "number"
                  },
                  "energy": {
                    "type": "string",
                    "enum": [
                      "low",
                      "medium",
                      "high",
                      "outro"
                    ]
                  }
                }
              }
            },
            "cut_candidates": {
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "i",
                  "t",
                  "kind",
                  "energy"
                ],
                "properties": {
                  "i": {
                    "type": "integer"
                  },
                  "t": {
                    "type": "number"
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "start",
                      "downbeat",
                      "accent",
                      "section",
                      "end"
                    ]
                  },
                  "energy": {
                    "type": "string",
                    "enum": [
                      "low",
                      "medium",
                      "high",
                      "outro"
                    ]
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/queue/submit/oneup/audio-score": {
      "post": {
        "tags": [
          "Run a model (queued)"
        ],
        "operationId": "submit_audio_score",
        "summary": "Background score",
        "description": "An instrumental background score for video from a description: one MP3 track. Params: prompt (the score to create; 1-5,000 chars). The length you ask for is a target, not a guarantee - the delivered track is shown with its actual duration. 22 credits per generation. Live price: GET /v1/models. Charged when accepted; refunded if it fails.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "prompt"
                ],
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 5000,
                    "description": "The production prompt describing the instrumental score to create."
                  },
                  "label": {
                    "type": "string",
                    "description": "Optional. A name for this job and every file it makes, shown on your account page and used as the download name. Never sent to the model.",
                    "pattern": "^[A-Za-z0-9._-]{1,80}$"
                  }
                }
              },
              "example": {
                "prompt": "Create a 60-second instrumental cinematic background score for a modern luxury property tour. Elegant and aspirational with warm piano, subtle strings and restrained percussion. Medium energy with a gradual build. Instrumental only. No vocals, singing, spoken words, chants, lyrics or vocal samples."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Accepted. Poll GET /v1/queue/status/{ticket}, then read GET /v1/queue/result/{ticket}.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueAccepted"
                },
                "example": {
                  "ticket": "oneup_req_SuaNFGGC0b4MGIeOrp78KFRXfR",
                  "status": "QUEUED"
                }
              }
            }
          },
          "202": {
            "description": "Not yet confirmed (`UNCERTAIN`). Keep polling; you are never charged twice.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueAccepted"
                }
              }
            }
          },
          "400": {
            "description": "Error: `invalid_request`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Error: `out_of_credits`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`, `account_frozen`, `credit_debt`, `entitlement_required`, `plan_required`, `storage_quota_exceeded`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error: `unknown_model`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error: `idempotency_conflict`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Error: `model_retired`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error: `payload_too_large`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error: `invalid_input`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `daily_limit_reached`, `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Error: `upstream_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Error: `unavailable`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-output-schema": {
          "type": "object",
          "additionalProperties": true,
          "required": [
            "audio"
          ],
          "properties": {
            "audio": {
              "type": "object",
              "required": [
                "url"
              ],
              "description": "The generated score. Ingested into custody before any URL reaches a member.",
              "properties": {
                "url": {
                  "type": "string"
                },
                "content_type": {
                  "type": "string"
                },
                "file_size": {
                  "type": "integer"
                },
                "file_name": {
                  "type": "string"
                }
              }
            },
            "lyrics": {
              "type": "string",
              "description": "Structural section markers the model returns alongside the track (for an instrumental these are empty of words). Never ingested, never shown — it is outside output_allowlist. Declared only because the response carries it and the schema refuses anything it does not name."
            }
          },
          "description": "The response. `audio` is the track. `lyrics` holds section markers, returned even for an instrumental and never shown to a member. Fields may be added later: ignore any field you don't know."
        }
      }
    },
    "/v1/queue/submit/oneup/audio-song": {
      "post": {
        "tags": [
          "Run a model (queued)"
        ],
        "operationId": "submit_audio_song",
        "summary": "Original song",
        "description": "An original song from a style description and your lyrics: one MP3 track. Params: prompt (style, mood, scene; 10–300 chars), lyrics_prompt (one line per row, [Verse]/[Chorus] tags allowed; 10–3,000 chars). 7 credits per request. Live price: GET /v1/models. Charged when accepted; refunded if it fails.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "prompt",
                  "lyrics_prompt"
                ],
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 10,
                    "maxLength": 300,
                    "description": "The music you want: style, mood, and where it will play (10–300 characters)."
                  },
                  "lyrics_prompt": {
                    "type": "string",
                    "minLength": 10,
                    "maxLength": 3000,
                    "description": "The lyrics, one line per row; structure tags like [Intro], [Verse], [Chorus], [Bridge], [Outro] shape the arrangement (10–3,000 characters)."
                  },
                  "label": {
                    "type": "string",
                    "description": "Optional. A name for this job and every file it makes, shown on your account page and used as the download name. Never sent to the model.",
                    "pattern": "^[A-Za-z0-9._-]{1,80}$"
                  }
                }
              },
              "example": {
                "prompt": "warm acoustic folk, gentle and hopeful, for a neighborhood tour video",
                "lyrics_prompt": "[Verse]\nMorning light on the maple street\nEvery porch has a place to meet\n[Chorus]\nCome on home, come on home\nYou were never on your own"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Accepted. Poll GET /v1/queue/status/{ticket}, then read GET /v1/queue/result/{ticket}.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueAccepted"
                },
                "example": {
                  "ticket": "oneup_req_SuaNFGGC0b4MGIeOrp78KFRXfR",
                  "status": "QUEUED"
                }
              }
            }
          },
          "202": {
            "description": "Not yet confirmed (`UNCERTAIN`). Keep polling; you are never charged twice.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueAccepted"
                }
              }
            }
          },
          "400": {
            "description": "Error: `invalid_request`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Error: `out_of_credits`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`, `account_frozen`, `credit_debt`, `entitlement_required`, `plan_required`, `storage_quota_exceeded`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error: `unknown_model`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error: `idempotency_conflict`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Error: `model_retired`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error: `payload_too_large`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error: `invalid_input`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `daily_limit_reached`, `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Error: `upstream_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Error: `unavailable`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-output-schema": {
          "type": "object",
          "additionalProperties": true,
          "required": [
            "assets"
          ],
          "properties": {
            "assets": {
              "type": "array",
              "minItems": 1,
              "items": {
                "type": "object",
                "additionalProperties": true,
                "required": [
                  "asset_id",
                  "content_type",
                  "size_bytes",
                  "url"
                ],
                "properties": {
                  "asset_id": {
                    "type": "string"
                  },
                  "content_type": {
                    "type": "string",
                    "pattern": "^audio/"
                  },
                  "size_bytes": {
                    "type": "integer",
                    "minimum": 1
                  },
                  "url": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/queue/submit/oneup/audio-sound-effect": {
      "post": {
        "tags": [
          "Run a model (queued)"
        ],
        "operationId": "submit_audio_sound_effect",
        "summary": "Sound effect",
        "description": "A sound effect from a description: up to 22 seconds of MP3. Params: text (the sound), duration_seconds? (0.5–22), prompt_influence? (0–1), loop?. 10 credits per request. Live price: GET /v1/models. Charged when accepted; refunded if it fails.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "text"
                ],
                "properties": {
                  "text": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500,
                    "description": "The sound you want, in plain words (a door creaking open, rain on a tin roof, a crowd cheering)."
                  },
                  "duration_seconds": {
                    "type": "number",
                    "minimum": 0.5,
                    "maximum": 22,
                    "description": "Length of the effect in seconds (0.5–22); chosen from the description when omitted."
                  },
                  "prompt_influence": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1,
                    "description": "How literally to follow the description (0 = loose, 1 = exact); 0.3 when omitted."
                  },
                  "loop": {
                    "type": "boolean",
                    "description": "Make an effect that loops seamlessly."
                  },
                  "label": {
                    "type": "string",
                    "description": "Optional. A name for this job and every file it makes, shown on your account page and used as the download name. Never sent to the model.",
                    "pattern": "^[A-Za-z0-9._-]{1,80}$"
                  }
                }
              },
              "example": {
                "text": "a wooden front door opening slowly, then a soft click as it closes",
                "duration_seconds": 4
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Accepted. Poll GET /v1/queue/status/{ticket}, then read GET /v1/queue/result/{ticket}.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueAccepted"
                },
                "example": {
                  "ticket": "oneup_req_SuaNFGGC0b4MGIeOrp78KFRXfR",
                  "status": "QUEUED"
                }
              }
            }
          },
          "202": {
            "description": "Not yet confirmed (`UNCERTAIN`). Keep polling; you are never charged twice.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueAccepted"
                }
              }
            }
          },
          "400": {
            "description": "Error: `invalid_request`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Error: `out_of_credits`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`, `account_frozen`, `credit_debt`, `entitlement_required`, `plan_required`, `storage_quota_exceeded`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error: `unknown_model`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error: `idempotency_conflict`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Error: `model_retired`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error: `payload_too_large`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error: `invalid_input`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `daily_limit_reached`, `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Error: `upstream_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Error: `unavailable`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-output-schema": {
          "type": "object",
          "additionalProperties": true,
          "required": [
            "assets"
          ],
          "properties": {
            "assets": {
              "type": "array",
              "minItems": 1,
              "items": {
                "type": "object",
                "additionalProperties": true,
                "required": [
                  "asset_id",
                  "content_type",
                  "size_bytes",
                  "url"
                ],
                "properties": {
                  "asset_id": {
                    "type": "string"
                  },
                  "content_type": {
                    "type": "string",
                    "pattern": "^audio/"
                  },
                  "size_bytes": {
                    "type": "integer",
                    "minimum": 1
                  },
                  "url": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/queue/submit/oneup/image-depth": {
      "post": {
        "tags": [
          "Run a model (queued)"
        ],
        "operationId": "submit_image_depth",
        "summary": "Measure how far away everything is",
        "description": "Measures how far away everything in a photograph is, so a still can be moved through like a filmed shot. Params: image_url. 1 credit, charged once per photograph. Live price: GET /v1/models. Charged when accepted; refunded if it fails.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "image_url"
                ],
                "properties": {
                  "image_url": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048,
                    "description": "The photograph to measure: an uploaded file_url from /v1/uploads or an external image URL (https)."
                  },
                  "label": {
                    "type": "string",
                    "description": "Optional. A name for this job and every file it makes, shown on your account page and used as the download name. Never sent to the model.",
                    "pattern": "^[A-Za-z0-9._-]{1,80}$"
                  }
                }
              },
              "example": {
                "image_url": "https://media.oneupai.com/u/…/uploads/oneup_upload_…"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Accepted. Poll GET /v1/queue/status/{ticket}, then read GET /v1/queue/result/{ticket}.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueAccepted"
                },
                "example": {
                  "ticket": "oneup_req_SuaNFGGC0b4MGIeOrp78KFRXfR",
                  "status": "QUEUED"
                }
              }
            }
          },
          "202": {
            "description": "Not yet confirmed (`UNCERTAIN`). Keep polling; you are never charged twice.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueAccepted"
                }
              }
            }
          },
          "400": {
            "description": "Error: `invalid_request`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Error: `out_of_credits`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`, `account_frozen`, `credit_debt`, `entitlement_required`, `plan_required`, `storage_quota_exceeded`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error: `unknown_model`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error: `idempotency_conflict`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Error: `model_retired`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error: `payload_too_large`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error: `invalid_input`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `daily_limit_reached`, `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Error: `upstream_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Error: `unavailable`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-output-schema": {
          "type": "object",
          "additionalProperties": true,
          "required": [
            "assets"
          ],
          "properties": {
            "assets": {
              "type": "array",
              "minItems": 1,
              "maxItems": 1,
              "items": {
                "type": "object",
                "additionalProperties": true,
                "required": [
                  "asset_id",
                  "content_type",
                  "size_bytes",
                  "url"
                ],
                "properties": {
                  "asset_id": {
                    "type": "string"
                  },
                  "content_type": {
                    "type": "string",
                    "pattern": "^image/"
                  },
                  "size_bytes": {
                    "type": "integer",
                    "minimum": 1
                  },
                  "url": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/queue/submit/oneup/image-edit": {
      "post": {
        "tags": [
          "Run a model (queued)"
        ],
        "operationId": "submit_image_edit",
        "summary": "Edit an image",
        "description": "Reference-guided image editing: describe the change, no masks. Params: prompt, image_urls (1–2 references), image_size?, output_format?. 13 credits for the first megapixel + 4 per additional (max 4 MP). Live price: GET /v1/models. Charged when accepted; refunded if it fails.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "prompt",
                  "image_urls"
                ],
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2000,
                    "description": "What to change, in plain language (no masks needed)."
                  },
                  "image_urls": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 2,
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 2048
                    },
                    "description": "One or two reference images: uploaded file_urls from /v1/uploads (validated for ownership) or external image URLs. Two at most — reference megapixels are part of the wholesale cost."
                  },
                  "image_size": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "width",
                      "height"
                    ],
                    "properties": {
                      "width": {
                        "type": "integer",
                        "minimum": 256,
                        "maximum": 2048
                      },
                      "height": {
                        "type": "integer",
                        "minimum": 256,
                        "maximum": 2048
                      }
                    },
                    "description": "Output dimensions; omitted = matched to the reference. Billed megapixels = ceil(width x height / 1e6), capped at 4 MP by unit bounds."
                  },
                  "output_format": {
                    "type": "string",
                    "enum": [
                      "jpeg",
                      "png"
                    ],
                    "description": "File type of the result; jpeg when omitted."
                  },
                  "label": {
                    "type": "string",
                    "description": "Optional. A name for this job and every file it makes, shown on your account page and used as the download name. Never sent to the model.",
                    "pattern": "^[A-Za-z0-9._-]{1,80}$"
                  }
                }
              },
              "example": {
                "prompt": "swap the background for a bright kitchen, keep the product exactly as is",
                "image_urls": [
                  "https://example.com/product.jpg"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Accepted. Poll GET /v1/queue/status/{ticket}, then read GET /v1/queue/result/{ticket}.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueAccepted"
                },
                "example": {
                  "ticket": "oneup_req_SuaNFGGC0b4MGIeOrp78KFRXfR",
                  "status": "QUEUED"
                }
              }
            }
          },
          "202": {
            "description": "Not yet confirmed (`UNCERTAIN`). Keep polling; you are never charged twice.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueAccepted"
                }
              }
            }
          },
          "400": {
            "description": "Error: `invalid_request`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Error: `out_of_credits`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`, `account_frozen`, `credit_debt`, `entitlement_required`, `plan_required`, `storage_quota_exceeded`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error: `unknown_model`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error: `idempotency_conflict`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Error: `model_retired`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error: `payload_too_large`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error: `invalid_input`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `daily_limit_reached`, `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Error: `upstream_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Error: `unavailable`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-output-schema": {
          "type": "object",
          "additionalProperties": true,
          "required": [
            "assets"
          ],
          "properties": {
            "assets": {
              "type": "array",
              "minItems": 1,
              "items": {
                "type": "object",
                "additionalProperties": true,
                "required": [
                  "asset_id",
                  "content_type",
                  "size_bytes",
                  "url"
                ],
                "properties": {
                  "asset_id": {
                    "type": "string"
                  },
                  "content_type": {
                    "type": "string",
                    "pattern": "^image/"
                  },
                  "size_bytes": {
                    "type": "integer",
                    "minimum": 1
                  },
                  "url": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/queue/submit/oneup/image-generate-lite": {
      "post": {
        "tags": [
          "Run a model (queued)"
        ],
        "operationId": "submit_image_generate_lite",
        "summary": "Quick image",
        "description": "Fast text-to-image. Params: prompt, image_size?. Priced per megapixel (max 4 MP). Live price: GET /v1/models. Charged when accepted; refunded if it fails.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "prompt"
                ],
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2000,
                    "description": "What to generate."
                  },
                  "image_size": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "width",
                      "height"
                    ],
                    "properties": {
                      "width": {
                        "type": "integer",
                        "minimum": 256,
                        "maximum": 2048
                      },
                      "height": {
                        "type": "integer",
                        "minimum": 256,
                        "maximum": 2048
                      }
                    },
                    "description": "Output dimensions; omitted = 1024-class square (1 MP). Billed megapixels = ceil(width x height / 1e6), capped at 4 MP by unit bounds."
                  },
                  "label": {
                    "type": "string",
                    "description": "Optional. A name for this job and every file it makes, shown on your account page and used as the download name. Never sent to the model.",
                    "pattern": "^[A-Za-z0-9._-]{1,80}$"
                  }
                }
              },
              "example": {
                "prompt": "a red bicycle in the rain"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Accepted. Poll GET /v1/queue/status/{ticket}, then read GET /v1/queue/result/{ticket}.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueAccepted"
                },
                "example": {
                  "ticket": "oneup_req_SuaNFGGC0b4MGIeOrp78KFRXfR",
                  "status": "QUEUED"
                }
              }
            }
          },
          "202": {
            "description": "Not yet confirmed (`UNCERTAIN`). Keep polling; you are never charged twice.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueAccepted"
                }
              }
            }
          },
          "400": {
            "description": "Error: `invalid_request`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Error: `out_of_credits`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`, `account_frozen`, `credit_debt`, `entitlement_required`, `plan_required`, `storage_quota_exceeded`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error: `unknown_model`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error: `idempotency_conflict`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Error: `model_retired`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error: `payload_too_large`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error: `invalid_input`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `daily_limit_reached`, `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Error: `upstream_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Error: `unavailable`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-output-schema": {
          "type": "object",
          "additionalProperties": true,
          "required": [
            "assets"
          ],
          "properties": {
            "assets": {
              "type": "array",
              "minItems": 1,
              "items": {
                "type": "object",
                "additionalProperties": true,
                "required": [
                  "asset_id",
                  "content_type",
                  "size_bytes",
                  "url"
                ],
                "properties": {
                  "asset_id": {
                    "type": "string"
                  },
                  "content_type": {
                    "type": "string",
                    "pattern": "^image/"
                  },
                  "size_bytes": {
                    "type": "integer",
                    "minimum": 1
                  },
                  "url": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/queue/submit/oneup/image-generate-pro": {
      "post": {
        "tags": [
          "Run a model (queued)"
        ],
        "operationId": "submit_image_generate_pro",
        "summary": "Premium image",
        "description": "Premium text-to-image, highest quality. Params: prompt, image_size?. 7 credits for the first megapixel + 4 per additional (max 4 MP). Live price: GET /v1/models. Charged when accepted; refunded if it fails.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "prompt"
                ],
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2000,
                    "description": "What to generate."
                  },
                  "image_size": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "width",
                      "height"
                    ],
                    "properties": {
                      "width": {
                        "type": "integer",
                        "minimum": 256,
                        "maximum": 2048
                      },
                      "height": {
                        "type": "integer",
                        "minimum": 256,
                        "maximum": 2048
                      }
                    },
                    "description": "Output dimensions; omitted = 1024-class square (1 MP). Billed megapixels = ceil(width x height / 1e6), capped at 4 MP by unit bounds."
                  },
                  "label": {
                    "type": "string",
                    "description": "Optional. A name for this job and every file it makes, shown on your account page and used as the download name. Never sent to the model.",
                    "pattern": "^[A-Za-z0-9._-]{1,80}$"
                  }
                }
              },
              "example": {
                "prompt": "product shot of a ceramic mug, studio lighting"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Accepted. Poll GET /v1/queue/status/{ticket}, then read GET /v1/queue/result/{ticket}.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueAccepted"
                },
                "example": {
                  "ticket": "oneup_req_SuaNFGGC0b4MGIeOrp78KFRXfR",
                  "status": "QUEUED"
                }
              }
            }
          },
          "202": {
            "description": "Not yet confirmed (`UNCERTAIN`). Keep polling; you are never charged twice.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueAccepted"
                }
              }
            }
          },
          "400": {
            "description": "Error: `invalid_request`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Error: `out_of_credits`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`, `account_frozen`, `credit_debt`, `entitlement_required`, `plan_required`, `storage_quota_exceeded`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error: `unknown_model`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error: `idempotency_conflict`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Error: `model_retired`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error: `payload_too_large`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error: `invalid_input`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `daily_limit_reached`, `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Error: `upstream_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Error: `unavailable`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-output-schema": {
          "type": "object",
          "additionalProperties": true,
          "required": [
            "assets"
          ],
          "properties": {
            "assets": {
              "type": "array",
              "minItems": 1,
              "items": {
                "type": "object",
                "additionalProperties": true,
                "required": [
                  "asset_id",
                  "content_type",
                  "size_bytes",
                  "url"
                ],
                "properties": {
                  "asset_id": {
                    "type": "string"
                  },
                  "content_type": {
                    "type": "string",
                    "pattern": "^image/"
                  },
                  "size_bytes": {
                    "type": "integer",
                    "minimum": 1
                  },
                  "url": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/queue/submit/oneup/image-generate-standard": {
      "post": {
        "tags": [
          "Run a model (queued)"
        ],
        "operationId": "submit_image_generate_standard",
        "summary": "Make a detailed picture",
        "description": "Detailed text-to-image at medium quality, sized to your frame (edges up to 2048 px). Params: prompt, quality (medium), image_size?, output_format?. 4 credits per picture. Live price: GET /v1/models. Charged when accepted; refunded if it fails.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "prompt",
                  "quality"
                ],
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4000,
                    "description": "What to generate."
                  },
                  "quality": {
                    "type": "string",
                    "enum": [
                      "medium"
                    ],
                    "description": "Fixed at medium at this record (the vendor's default, high, costs four times as much)."
                  },
                  "image_size": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "width",
                      "height"
                    ],
                    "properties": {
                      "width": {
                        "type": "integer",
                        "minimum": 256,
                        "maximum": 2048,
                        "multipleOf": 16
                      },
                      "height": {
                        "type": "integer",
                        "minimum": 256,
                        "maximum": 2048,
                        "multipleOf": 16
                      }
                    },
                    "description": "Output dimensions in multiples of 16, each edge at most 2048; omitted = the vendor's default square. The Agent host passes the video frame's own size so the picture fills it."
                  },
                  "output_format": {
                    "type": "string",
                    "enum": [
                      "jpeg",
                      "png",
                      "webp"
                    ],
                    "description": "png when omitted; jpeg for a quarter of the bytes."
                  },
                  "label": {
                    "type": "string",
                    "description": "Optional. A name for this job and every file it makes, shown on your account page and used as the download name. Never sent to the model.",
                    "pattern": "^[A-Za-z0-9._-]{1,80}$"
                  }
                }
              },
              "example": {
                "prompt": "the riverside lot at Mill Street with survey stakes at dusk",
                "quality": "medium",
                "image_size": {
                  "width": 736,
                  "height": 1280
                },
                "output_format": "jpeg"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Accepted. Poll GET /v1/queue/status/{ticket}, then read GET /v1/queue/result/{ticket}.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueAccepted"
                },
                "example": {
                  "ticket": "oneup_req_SuaNFGGC0b4MGIeOrp78KFRXfR",
                  "status": "QUEUED"
                }
              }
            }
          },
          "202": {
            "description": "Not yet confirmed (`UNCERTAIN`). Keep polling; you are never charged twice.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueAccepted"
                }
              }
            }
          },
          "400": {
            "description": "Error: `invalid_request`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Error: `out_of_credits`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`, `account_frozen`, `credit_debt`, `entitlement_required`, `plan_required`, `storage_quota_exceeded`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error: `unknown_model`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error: `idempotency_conflict`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Error: `model_retired`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error: `payload_too_large`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error: `invalid_input`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `daily_limit_reached`, `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Error: `upstream_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Error: `unavailable`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-output-schema": {
          "type": "object",
          "additionalProperties": true,
          "required": [
            "assets"
          ],
          "properties": {
            "assets": {
              "type": "array",
              "minItems": 1,
              "items": {
                "type": "object",
                "additionalProperties": true,
                "required": [
                  "asset_id",
                  "content_type",
                  "size_bytes",
                  "url"
                ],
                "properties": {
                  "asset_id": {
                    "type": "string"
                  },
                  "content_type": {
                    "type": "string",
                    "pattern": "^image/"
                  },
                  "size_bytes": {
                    "type": "integer",
                    "minimum": 1
                  },
                  "url": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/queue/submit/oneup/image-upscale": {
      "post": {
        "tags": [
          "Run a model (queued)"
        ],
        "operationId": "submit_image_upscale",
        "summary": "Sharpen a small picture",
        "description": "Sharpens a small picture to twice its size (a 1024x768 photo becomes 2048x1536), JPEG out. Params: image_url. 3 credits per picture. Live price: GET /v1/models. Charged when accepted; refunded if it fails.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "image_url"
                ],
                "properties": {
                  "image_url": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048,
                    "description": "The picture to enhance: an uploaded file_url from /v1/uploads or an external image URL (https)."
                  },
                  "scale": {
                    "type": "number",
                    "minimum": 2,
                    "maximum": 2,
                    "description": "The factor. Fixed at 2 at this record (a 1024x768 photo becomes 2048x1536)."
                  },
                  "model": {
                    "type": "string",
                    "enum": [
                      "standard",
                      "detailed"
                    ],
                    "description": "standard — tuned for photographs (the default when omitted); detailed — a stronger restoration."
                  },
                  "output_format": {
                    "type": "string",
                    "enum": [
                      "jpeg",
                      "png"
                    ],
                    "description": "jpeg when omitted (a quarter of the bytes of png for a photograph)."
                  },
                  "label": {
                    "type": "string",
                    "description": "Optional. A name for this job and every file it makes, shown on your account page and used as the download name. Never sent to the model.",
                    "pattern": "^[A-Za-z0-9._-]{1,80}$"
                  }
                }
              },
              "example": {
                "image_url": "https://media.oneupai.com/u/…/uploads/oneup_upload_…",
                "scale": 2,
                "model": "standard",
                "output_format": "jpeg"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Accepted. Poll GET /v1/queue/status/{ticket}, then read GET /v1/queue/result/{ticket}.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueAccepted"
                },
                "example": {
                  "ticket": "oneup_req_SuaNFGGC0b4MGIeOrp78KFRXfR",
                  "status": "QUEUED"
                }
              }
            }
          },
          "202": {
            "description": "Not yet confirmed (`UNCERTAIN`). Keep polling; you are never charged twice.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueAccepted"
                }
              }
            }
          },
          "400": {
            "description": "Error: `invalid_request`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Error: `out_of_credits`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`, `account_frozen`, `credit_debt`, `entitlement_required`, `plan_required`, `storage_quota_exceeded`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error: `unknown_model`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error: `idempotency_conflict`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Error: `model_retired`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error: `payload_too_large`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error: `invalid_input`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `daily_limit_reached`, `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Error: `upstream_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Error: `unavailable`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-output-schema": {
          "type": "object",
          "additionalProperties": true,
          "required": [
            "assets"
          ],
          "properties": {
            "assets": {
              "type": "array",
              "minItems": 1,
              "items": {
                "type": "object",
                "additionalProperties": true,
                "required": [
                  "asset_id",
                  "content_type",
                  "size_bytes",
                  "url"
                ],
                "properties": {
                  "asset_id": {
                    "type": "string"
                  },
                  "content_type": {
                    "type": "string"
                  },
                  "size_bytes": {
                    "type": "integer"
                  },
                  "url": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/queue/submit/oneup/speech-pro": {
      "post": {
        "tags": [
          "Run a model (queued)"
        ],
        "operationId": "submit_speech_pro",
        "summary": "Studio voice",
        "description": "Studio-grade voice from text: up to 1,000 characters (about a minute) in a named voice, for ad reads and premium narration. Params: text, voice? (one of six voice ids), stability?, similarity_boost?, style?, speed? (0.7–1.2), language_code?, apply_text_normalization? (auto|on|off). 22 credits per request. Live price: GET /v1/models. Charged when accepted; refunded if it fails.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "text"
                ],
                "properties": {
                  "text": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 1000,
                    "description": "The words to say — up to 1,000 characters (about a minute of speech)."
                  },
                  "voice": {
                    "type": "string",
                    "enum": [
                      "pro-warm-f",
                      "pro-warm-m",
                      "pro-bright-f",
                      "pro-friendly-m",
                      "pro-polished-f",
                      "pro-anchor-m"
                    ],
                    "description": "One of our six named studio voices; a clear, natural default when omitted. Each voice reads the model's languages, Spanish included."
                  },
                  "stability": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1,
                    "description": "How steady the delivery is (0 = expressive and variable, 1 = consistent); 0.5 when omitted."
                  },
                  "similarity_boost": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1,
                    "description": "How closely the result sticks to the chosen voice; 0.75 when omitted."
                  },
                  "style": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1,
                    "description": "Style exaggeration; 0 when omitted."
                  },
                  "speed": {
                    "type": "number",
                    "minimum": 0.7,
                    "maximum": 1.2,
                    "description": "Speaking pace; 1 when omitted."
                  },
                  "language_code": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 16,
                    "description": "Language of the speech (ISO 639-1 such as en or es); detected when omitted."
                  },
                  "apply_text_normalization": {
                    "type": "string",
                    "enum": [
                      "auto",
                      "on",
                      "off"
                    ],
                    "description": "Whether numbers and abbreviations are spelled out; auto when omitted."
                  },
                  "label": {
                    "type": "string",
                    "description": "Optional. A name for this job and every file it makes, shown on your account page and used as the download name. Never sent to the model.",
                    "pattern": "^[A-Za-z0-9._-]{1,80}$"
                  }
                }
              },
              "example": {
                "text": "This weekend only: every listing on the north shore, open from ten to four. Bring the family.",
                "stability": 0.4,
                "speed": 1
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Accepted. Poll GET /v1/queue/status/{ticket}, then read GET /v1/queue/result/{ticket}.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueAccepted"
                },
                "example": {
                  "ticket": "oneup_req_SuaNFGGC0b4MGIeOrp78KFRXfR",
                  "status": "QUEUED"
                }
              }
            }
          },
          "202": {
            "description": "Not yet confirmed (`UNCERTAIN`). Keep polling; you are never charged twice.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueAccepted"
                }
              }
            }
          },
          "400": {
            "description": "Error: `invalid_request`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Error: `out_of_credits`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`, `account_frozen`, `credit_debt`, `entitlement_required`, `plan_required`, `storage_quota_exceeded`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error: `unknown_model`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error: `idempotency_conflict`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Error: `model_retired`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error: `payload_too_large`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error: `invalid_input`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `daily_limit_reached`, `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Error: `upstream_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Error: `unavailable`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-output-schema": {
          "type": "object",
          "additionalProperties": true,
          "required": [
            "assets"
          ],
          "properties": {
            "assets": {
              "type": "array",
              "minItems": 1,
              "items": {
                "type": "object",
                "additionalProperties": true,
                "required": [
                  "asset_id",
                  "content_type",
                  "size_bytes",
                  "url"
                ],
                "properties": {
                  "asset_id": {
                    "type": "string"
                  },
                  "content_type": {
                    "type": "string",
                    "pattern": "^audio/"
                  },
                  "size_bytes": {
                    "type": "integer",
                    "minimum": 1
                  },
                  "url": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/queue/submit/oneup/speech-standard": {
      "post": {
        "tags": [
          "Run a model (queued)"
        ],
        "operationId": "submit_speech_standard",
        "summary": "Narration voice",
        "description": "Narration from text: up to 1,000 characters (about a minute) in a named voice. Params: prompt (the words), voice? (one of six voice ids), style_instructions?, output_format? (mp3|wav|ogg_opus). 11 credits per request. Live price: GET /v1/models. Charged when accepted; refunded if it fails.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "prompt"
                ],
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 1000,
                    "description": "The words to say — up to 1,000 characters (about a minute of speech). Expressive tags like [sigh] or [whispering] are allowed."
                  },
                  "voice": {
                    "type": "string",
                    "enum": [
                      "std-firm-f",
                      "std-calm-m",
                      "std-warm-f",
                      "std-upbeat-m",
                      "std-bright-f",
                      "std-friendly-m"
                    ],
                    "description": "One of our six named narrator voices; the calm, clear default (std-firm-f) when omitted. Each voice speaks the language of the words."
                  },
                  "style_instructions": {
                    "type": "string",
                    "maxLength": 500,
                    "description": "How to deliver it, in plain words (warm, brisk, like a documentary…)."
                  },
                  "output_format": {
                    "type": "string",
                    "enum": [
                      "mp3",
                      "wav",
                      "ogg_opus"
                    ],
                    "description": "File type of the result; mp3 when omitted."
                  },
                  "label": {
                    "type": "string",
                    "description": "Optional. A name for this job and every file it makes, shown on your account page and used as the download name. Never sent to the model.",
                    "pattern": "^[A-Za-z0-9._-]{1,80}$"
                  }
                }
              },
              "example": {
                "prompt": "Welcome home. Three bedrooms, two baths, and a garden that gets the morning sun.",
                "style_instructions": "warm, unhurried, like a friend showing you around"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Accepted. Poll GET /v1/queue/status/{ticket}, then read GET /v1/queue/result/{ticket}.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueAccepted"
                },
                "example": {
                  "ticket": "oneup_req_SuaNFGGC0b4MGIeOrp78KFRXfR",
                  "status": "QUEUED"
                }
              }
            }
          },
          "202": {
            "description": "Not yet confirmed (`UNCERTAIN`). Keep polling; you are never charged twice.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueAccepted"
                }
              }
            }
          },
          "400": {
            "description": "Error: `invalid_request`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Error: `out_of_credits`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`, `account_frozen`, `credit_debt`, `entitlement_required`, `plan_required`, `storage_quota_exceeded`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error: `unknown_model`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error: `idempotency_conflict`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Error: `model_retired`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error: `payload_too_large`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error: `invalid_input`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `daily_limit_reached`, `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Error: `upstream_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Error: `unavailable`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-output-schema": {
          "type": "object",
          "additionalProperties": true,
          "required": [
            "assets"
          ],
          "properties": {
            "assets": {
              "type": "array",
              "minItems": 1,
              "items": {
                "type": "object",
                "additionalProperties": true,
                "required": [
                  "asset_id",
                  "content_type",
                  "size_bytes",
                  "url"
                ],
                "properties": {
                  "asset_id": {
                    "type": "string"
                  },
                  "content_type": {
                    "type": "string",
                    "pattern": "^audio/"
                  },
                  "size_bytes": {
                    "type": "integer",
                    "minimum": 1
                  },
                  "url": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/queue/submit/oneup/speech-transcribe": {
      "post": {
        "tags": [
          "Run a model (queued)"
        ],
        "operationId": "submit_speech_transcribe",
        "summary": "Transcript for captions",
        "description": "A word-timed transcript of your uploaded audio or video, ready for captions. Params: audio_url (your upload or asset). The result is an annotation_id you reference from a caption track. Billed per started minute of the input, up to 60 minutes. 2 credits per minute. Live price: GET /v1/models. Charged when accepted; refunded if it fails.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "audio_url"
                ],
                "properties": {
                  "audio_url": {
                    "type": "string",
                    "description": "The speech to transcribe — an uploaded audio or video file of yours."
                  },
                  "label": {
                    "type": "string",
                    "description": "Optional. A name for this job and every file it makes, shown on your account page and used as the download name. Never sent to the model.",
                    "pattern": "^[A-Za-z0-9._-]{1,80}$"
                  }
                }
              },
              "example": {
                "audio_url": "https://media.oneupai.com/u/oneup_upload_yourtalk/1790000000/sig"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Accepted. Poll GET /v1/queue/status/{ticket}, then read GET /v1/queue/result/{ticket}.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueAccepted"
                },
                "example": {
                  "ticket": "oneup_req_SuaNFGGC0b4MGIeOrp78KFRXfR",
                  "status": "QUEUED"
                }
              }
            }
          },
          "202": {
            "description": "Not yet confirmed (`UNCERTAIN`). Keep polling; you are never charged twice.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueAccepted"
                }
              }
            }
          },
          "400": {
            "description": "Error: `invalid_request`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Error: `out_of_credits`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`, `account_frozen`, `credit_debt`, `entitlement_required`, `plan_required`, `storage_quota_exceeded`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error: `unknown_model`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error: `idempotency_conflict`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Error: `model_retired`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error: `payload_too_large`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error: `invalid_input`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `daily_limit_reached`, `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Error: `upstream_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Error: `unavailable`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-output-schema": {
          "type": "object",
          "additionalProperties": true,
          "required": [
            "text",
            "words"
          ],
          "properties": {
            "text": {
              "type": "string"
            },
            "language_code": {
              "type": "string"
            },
            "language_probability": {
              "type": "number"
            },
            "words": {
              "type": "array",
              "minItems": 1,
              "items": {
                "type": "object",
                "additionalProperties": true,
                "required": [
                  "text",
                  "start",
                  "end"
                ],
                "properties": {
                  "text": {
                    "type": "string"
                  },
                  "start": {
                    "type": "number",
                    "minimum": 0
                  },
                  "end": {
                    "type": "number",
                    "minimum": 0
                  },
                  "type": {
                    "type": "string"
                  },
                  "speaker_id": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/queue/submit/oneup/video-animate-lite": {
      "post": {
        "tags": [
          "Run a model (queued)"
        ],
        "operationId": "submit_video_animate_lite",
        "summary": "Photo to video clip",
        "description": "Image-to-video: one 5- or 10-second clip. Params: prompt, image_url, duration (5|10 seconds). 24 credits per second. Live price: GET /v1/models. Charged when accepted; refunded if it fails.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "prompt",
                  "image_url",
                  "duration"
                ],
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2000,
                    "description": "Motion/scene description."
                  },
                  "image_url": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048,
                    "description": "Source frame. An uploaded file_url from /v1/uploads (validated for ownership) or an external image URL."
                  },
                  "duration": {
                    "type": "integer",
                    "enum": [
                      5,
                      10
                    ],
                    "description": "Clip length in seconds: 5 or 10."
                  },
                  "label": {
                    "type": "string",
                    "description": "Optional. A name for this job and every file it makes, shown on your account page and used as the download name. Never sent to the model.",
                    "pattern": "^[A-Za-z0-9._-]{1,80}$"
                  }
                }
              },
              "example": {
                "prompt": "waves at sunset",
                "image_url": "https://example.com/frame.jpg",
                "duration": 5
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Accepted. Poll GET /v1/queue/status/{ticket}, then read GET /v1/queue/result/{ticket}.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueAccepted"
                },
                "example": {
                  "ticket": "oneup_req_SuaNFGGC0b4MGIeOrp78KFRXfR",
                  "status": "QUEUED"
                }
              }
            }
          },
          "202": {
            "description": "Not yet confirmed (`UNCERTAIN`). Keep polling; you are never charged twice.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueAccepted"
                }
              }
            }
          },
          "400": {
            "description": "Error: `invalid_request`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Error: `out_of_credits`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`, `account_frozen`, `credit_debt`, `entitlement_required`, `plan_required`, `storage_quota_exceeded`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error: `unknown_model`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error: `idempotency_conflict`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Error: `model_retired`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error: `payload_too_large`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error: `invalid_input`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `daily_limit_reached`, `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Error: `upstream_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Error: `unavailable`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-output-schema": {
          "type": "object",
          "additionalProperties": true,
          "required": [
            "assets"
          ],
          "properties": {
            "assets": {
              "type": "array",
              "minItems": 1,
              "items": {
                "type": "object",
                "additionalProperties": true,
                "required": [
                  "asset_id",
                  "content_type",
                  "size_bytes",
                  "url"
                ],
                "properties": {
                  "asset_id": {
                    "type": "string"
                  },
                  "content_type": {
                    "type": "string",
                    "pattern": "^video/"
                  },
                  "size_bytes": {
                    "type": "integer",
                    "minimum": 1
                  },
                  "url": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/queue/submit/oneup/video-animate-pro-1080": {
      "post": {
        "tags": [
          "Run a model (queued)"
        ],
        "operationId": "submit_video_animate_pro_1080",
        "summary": "Cinematic clip (1080p)",
        "description": "Cinematic image-to-video at 1080p: one 5- or 10-second clip with sound. Params: prompt, image_url, duration (5|10), resolution (fixed \"1080p\"), end_image_url?, aspect_ratio?. 145 credits per second. Live price: GET /v1/models. Charged when accepted; refunded if it fails.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "prompt",
                  "image_url",
                  "duration",
                  "resolution"
                ],
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2000,
                    "description": "Motion/scene description."
                  },
                  "image_url": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048,
                    "description": "Starting frame (JPEG, PNG or WebP). An uploaded file_url from /v1/uploads (validated for ownership) or an external image URL."
                  },
                  "end_image_url": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048,
                    "description": "Optional final frame for a transition from the start image."
                  },
                  "duration": {
                    "type": "integer",
                    "enum": [
                      5,
                      10
                    ],
                    "description": "Clip length in seconds: 5 or 10."
                  },
                  "resolution": {
                    "type": "string",
                    "enum": [
                      "1080p"
                    ],
                    "description": "This capability renders at 1080p — the value is fixed. For 720p or 4K use the sibling capabilities."
                  },
                  "aspect_ratio": {
                    "type": "string",
                    "enum": [
                      "auto",
                      "21:9",
                      "16:9",
                      "4:3",
                      "1:1",
                      "3:4",
                      "9:16"
                    ],
                    "description": "Frame shape; auto (matches the image) when omitted."
                  },
                  "label": {
                    "type": "string",
                    "description": "Optional. A name for this job and every file it makes, shown on your account page and used as the download name. Never sent to the model.",
                    "pattern": "^[A-Za-z0-9._-]{1,80}$"
                  }
                }
              },
              "example": {
                "prompt": "golden-hour drone reveal of the house, slow and steady",
                "image_url": "https://example.com/frame.jpg",
                "duration": 5,
                "resolution": "1080p"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Accepted. Poll GET /v1/queue/status/{ticket}, then read GET /v1/queue/result/{ticket}.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueAccepted"
                },
                "example": {
                  "ticket": "oneup_req_SuaNFGGC0b4MGIeOrp78KFRXfR",
                  "status": "QUEUED"
                }
              }
            }
          },
          "202": {
            "description": "Not yet confirmed (`UNCERTAIN`). Keep polling; you are never charged twice.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueAccepted"
                }
              }
            }
          },
          "400": {
            "description": "Error: `invalid_request`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Error: `out_of_credits`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`, `account_frozen`, `credit_debt`, `entitlement_required`, `plan_required`, `storage_quota_exceeded`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error: `unknown_model`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error: `idempotency_conflict`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Error: `model_retired`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error: `payload_too_large`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error: `invalid_input`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `daily_limit_reached`, `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Error: `upstream_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Error: `unavailable`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-output-schema": {
          "type": "object",
          "additionalProperties": true,
          "required": [
            "assets"
          ],
          "properties": {
            "assets": {
              "type": "array",
              "minItems": 1,
              "items": {
                "type": "object",
                "additionalProperties": true,
                "required": [
                  "asset_id",
                  "content_type",
                  "size_bytes",
                  "url"
                ],
                "properties": {
                  "asset_id": {
                    "type": "string"
                  },
                  "content_type": {
                    "type": "string",
                    "pattern": "^video/"
                  },
                  "size_bytes": {
                    "type": "integer",
                    "minimum": 1
                  },
                  "url": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/queue/submit/oneup/video-animate-pro-4k": {
      "post": {
        "tags": [
          "Run a model (queued)"
        ],
        "operationId": "submit_video_animate_pro_4k",
        "summary": "Cinematic clip (4K)",
        "description": "Cinematic image-to-video at 4K: one 5- or 10-second clip with sound. Params: prompt, image_url, duration (5|10), resolution (fixed \"4k\"), end_image_url?, aspect_ratio?. 331 credits per second. Live price: GET /v1/models. Charged when accepted; refunded if it fails.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "prompt",
                  "image_url",
                  "duration",
                  "resolution"
                ],
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2000,
                    "description": "Motion/scene description."
                  },
                  "image_url": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048,
                    "description": "Starting frame (JPEG, PNG or WebP). An uploaded file_url from /v1/uploads (validated for ownership) or an external image URL."
                  },
                  "end_image_url": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048,
                    "description": "Optional final frame for a transition from the start image."
                  },
                  "duration": {
                    "type": "integer",
                    "enum": [
                      5,
                      10
                    ],
                    "description": "Clip length in seconds: 5 or 10."
                  },
                  "resolution": {
                    "type": "string",
                    "enum": [
                      "4k"
                    ],
                    "description": "This capability renders at 4K — the value is fixed. For 720p or 1080p use the sibling capabilities."
                  },
                  "aspect_ratio": {
                    "type": "string",
                    "enum": [
                      "auto",
                      "21:9",
                      "16:9",
                      "4:3",
                      "1:1",
                      "3:4",
                      "9:16"
                    ],
                    "description": "Frame shape; auto (matches the image) when omitted."
                  },
                  "label": {
                    "type": "string",
                    "description": "Optional. A name for this job and every file it makes, shown on your account page and used as the download name. Never sent to the model.",
                    "pattern": "^[A-Za-z0-9._-]{1,80}$"
                  }
                }
              },
              "example": {
                "prompt": "golden-hour drone reveal of the house, slow and steady",
                "image_url": "https://example.com/frame.jpg",
                "duration": 5,
                "resolution": "4k"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Accepted. Poll GET /v1/queue/status/{ticket}, then read GET /v1/queue/result/{ticket}.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueAccepted"
                },
                "example": {
                  "ticket": "oneup_req_SuaNFGGC0b4MGIeOrp78KFRXfR",
                  "status": "QUEUED"
                }
              }
            }
          },
          "202": {
            "description": "Not yet confirmed (`UNCERTAIN`). Keep polling; you are never charged twice.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueAccepted"
                }
              }
            }
          },
          "400": {
            "description": "Error: `invalid_request`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Error: `out_of_credits`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`, `account_frozen`, `credit_debt`, `entitlement_required`, `plan_required`, `storage_quota_exceeded`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error: `unknown_model`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error: `idempotency_conflict`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Error: `model_retired`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error: `payload_too_large`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error: `invalid_input`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `daily_limit_reached`, `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Error: `upstream_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Error: `unavailable`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-output-schema": {
          "type": "object",
          "additionalProperties": true,
          "required": [
            "assets"
          ],
          "properties": {
            "assets": {
              "type": "array",
              "minItems": 1,
              "items": {
                "type": "object",
                "additionalProperties": true,
                "required": [
                  "asset_id",
                  "content_type",
                  "size_bytes",
                  "url"
                ],
                "properties": {
                  "asset_id": {
                    "type": "string"
                  },
                  "content_type": {
                    "type": "string",
                    "pattern": "^video/"
                  },
                  "size_bytes": {
                    "type": "integer",
                    "minimum": 1
                  },
                  "url": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/queue/submit/oneup/video-animate-pro-720": {
      "post": {
        "tags": [
          "Run a model (queued)"
        ],
        "operationId": "submit_video_animate_pro_720",
        "summary": "Cinematic clip (720p)",
        "description": "Cinematic image-to-video at 720p: one 5- or 10-second clip with sound. Params: prompt, image_url, duration (5|10), resolution (fixed \"720p\"), end_image_url?, aspect_ratio?. 65 credits per second. Live price: GET /v1/models. Charged when accepted; refunded if it fails.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "prompt",
                  "image_url",
                  "duration",
                  "resolution"
                ],
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2000,
                    "description": "Motion/scene description."
                  },
                  "image_url": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048,
                    "description": "Starting frame (JPEG, PNG or WebP). An uploaded file_url from /v1/uploads (validated for ownership) or an external image URL."
                  },
                  "end_image_url": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048,
                    "description": "Optional final frame for a transition from the start image."
                  },
                  "duration": {
                    "type": "integer",
                    "enum": [
                      5,
                      10
                    ],
                    "description": "Clip length in seconds: 5 or 10."
                  },
                  "resolution": {
                    "type": "string",
                    "enum": [
                      "720p"
                    ],
                    "description": "This capability renders at 720p — the value is fixed. For 1080p or 4K use the sibling capabilities."
                  },
                  "aspect_ratio": {
                    "type": "string",
                    "enum": [
                      "auto",
                      "21:9",
                      "16:9",
                      "4:3",
                      "1:1",
                      "3:4",
                      "9:16"
                    ],
                    "description": "Frame shape; auto (matches the image) when omitted."
                  },
                  "label": {
                    "type": "string",
                    "description": "Optional. A name for this job and every file it makes, shown on your account page and used as the download name. Never sent to the model.",
                    "pattern": "^[A-Za-z0-9._-]{1,80}$"
                  }
                }
              },
              "example": {
                "prompt": "golden-hour drone reveal of the house, slow and steady",
                "image_url": "https://example.com/frame.jpg",
                "duration": 5,
                "resolution": "720p"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Accepted. Poll GET /v1/queue/status/{ticket}, then read GET /v1/queue/result/{ticket}.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueAccepted"
                },
                "example": {
                  "ticket": "oneup_req_SuaNFGGC0b4MGIeOrp78KFRXfR",
                  "status": "QUEUED"
                }
              }
            }
          },
          "202": {
            "description": "Not yet confirmed (`UNCERTAIN`). Keep polling; you are never charged twice.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueAccepted"
                }
              }
            }
          },
          "400": {
            "description": "Error: `invalid_request`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Error: `out_of_credits`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`, `account_frozen`, `credit_debt`, `entitlement_required`, `plan_required`, `storage_quota_exceeded`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error: `unknown_model`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error: `idempotency_conflict`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Error: `model_retired`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error: `payload_too_large`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error: `invalid_input`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `daily_limit_reached`, `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Error: `upstream_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Error: `unavailable`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-output-schema": {
          "type": "object",
          "additionalProperties": true,
          "required": [
            "assets"
          ],
          "properties": {
            "assets": {
              "type": "array",
              "minItems": 1,
              "items": {
                "type": "object",
                "additionalProperties": true,
                "required": [
                  "asset_id",
                  "content_type",
                  "size_bytes",
                  "url"
                ],
                "properties": {
                  "asset_id": {
                    "type": "string"
                  },
                  "content_type": {
                    "type": "string",
                    "pattern": "^video/"
                  },
                  "size_bytes": {
                    "type": "integer",
                    "minimum": 1
                  },
                  "url": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/queue/submit/oneup/video-animate-standard": {
      "post": {
        "tags": [
          "Run a model (queued)"
        ],
        "operationId": "submit_video_animate_standard",
        "summary": "Photo to full-motion clip",
        "description": "Full-motion image-to-video with sound: one 5-, 10- or 15-second clip, optional end frame. Params: prompt, start_image_url, duration (5|10|15), end_image_url?, generate_audio?, negative_prompt?. 36 credits per second. Live price: GET /v1/models. Charged when accepted; refunded if it fails.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "prompt",
                  "start_image_url",
                  "duration"
                ],
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2000,
                    "description": "Motion/scene description."
                  },
                  "start_image_url": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048,
                    "description": "Starting frame. An uploaded file_url from /v1/uploads (validated for ownership) or an external image URL."
                  },
                  "end_image_url": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048,
                    "description": "Optional final frame — the clip travels from the start image to this one."
                  },
                  "duration": {
                    "type": "integer",
                    "enum": [
                      5,
                      10,
                      15
                    ],
                    "description": "Clip length in seconds: 5, 10 or 15."
                  },
                  "generate_audio": {
                    "type": "boolean",
                    "description": "Generate a soundtrack with the clip; on when omitted. Priced the same either way."
                  },
                  "negative_prompt": {
                    "type": "string",
                    "maxLength": 500,
                    "description": "What to avoid."
                  },
                  "label": {
                    "type": "string",
                    "description": "Optional. A name for this job and every file it makes, shown on your account page and used as the download name. Never sent to the model.",
                    "pattern": "^[A-Za-z0-9._-]{1,80}$"
                  }
                }
              },
              "example": {
                "prompt": "slow push-in as steam rises from the cup",
                "start_image_url": "https://example.com/frame.jpg",
                "duration": 5
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Accepted. Poll GET /v1/queue/status/{ticket}, then read GET /v1/queue/result/{ticket}.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueAccepted"
                },
                "example": {
                  "ticket": "oneup_req_SuaNFGGC0b4MGIeOrp78KFRXfR",
                  "status": "QUEUED"
                }
              }
            }
          },
          "202": {
            "description": "Not yet confirmed (`UNCERTAIN`). Keep polling; you are never charged twice.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueAccepted"
                }
              }
            }
          },
          "400": {
            "description": "Error: `invalid_request`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Error: `out_of_credits`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`, `account_frozen`, `credit_debt`, `entitlement_required`, `plan_required`, `storage_quota_exceeded`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error: `unknown_model`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error: `idempotency_conflict`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Error: `model_retired`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error: `payload_too_large`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error: `invalid_input`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `daily_limit_reached`, `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Error: `upstream_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Error: `unavailable`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-output-schema": {
          "type": "object",
          "additionalProperties": true,
          "required": [
            "assets"
          ],
          "properties": {
            "assets": {
              "type": "array",
              "minItems": 1,
              "items": {
                "type": "object",
                "additionalProperties": true,
                "required": [
                  "asset_id",
                  "content_type",
                  "size_bytes",
                  "url"
                ],
                "properties": {
                  "asset_id": {
                    "type": "string"
                  },
                  "content_type": {
                    "type": "string",
                    "pattern": "^video/"
                  },
                  "size_bytes": {
                    "type": "integer",
                    "minimum": 1
                  },
                  "url": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/queue/submit/oneup/video-camera-move": {
      "post": {
        "tags": [
          "Run a model (queued)"
        ],
        "operationId": "submit_video_camera_move",
        "summary": "Move a real camera around a photo",
        "description": "Moves a real camera around what a photograph shows: an orbit, a dolly in, a crane up or a sweep around and in, flown exactly as asked. One 5-second clip at 768p. Params: image_url, move (orbit_left|orbit_right|dolly_in|crane_up|corner_sweep), degrees|travel|rise, duration (fixed 5), resolution (fixed \"768p\"). 85 credits, charged once per photograph per move. Live price: GET /v1/models. Charged when accepted; refunded if it fails.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "image_url",
                  "move",
                  "duration",
                  "resolution"
                ],
                "properties": {
                  "image_url": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048,
                    "description": "The photograph the camera moves around: an uploaded file_url from /v1/uploads or an external image URL (https). Crop it to the frame shape you want first — the clip comes back in the picture's own shape."
                  },
                  "move": {
                    "type": "string",
                    "enum": [
                      "orbit_left",
                      "orbit_right",
                      "dolly_in",
                      "crane_up",
                      "corner_sweep"
                    ],
                    "description": "Which move to fly. orbit_left / orbit_right walk around the subject at the distance the photo was taken from; dolly_in advances into the room with a little drift, so it reads as a dolly and not a zoom; crane_up lifts; corner_sweep goes around and in at once, which is the reveal for a large room."
                  },
                  "degrees": {
                    "type": "number",
                    "minimum": 5,
                    "maximum": 45,
                    "description": "How far around the subject the camera travels, for orbit_left, orbit_right and corner_sweep. Defaults to 35 for an orbit, 26 for a sweep. Refused for the other moves."
                  },
                  "travel": {
                    "type": "number",
                    "minimum": 0.1,
                    "maximum": 0.6,
                    "description": "How far into the scene the camera advances, as a fraction of its starting distance, for dolly_in. Default 0.45. Refused for the other moves."
                  },
                  "rise": {
                    "type": "number",
                    "minimum": 2,
                    "maximum": 25,
                    "description": "How far the camera lifts, in degrees above the subject, for crane_up. Default 12. Refused for the other moves."
                  },
                  "duration": {
                    "type": "integer",
                    "enum": [
                      5
                    ],
                    "description": "Clip length in seconds. This capability renders 5-second clips — the value is fixed."
                  },
                  "resolution": {
                    "type": "string",
                    "enum": [
                      "768p"
                    ],
                    "description": "This capability renders at 768p — the value is fixed."
                  },
                  "label": {
                    "type": "string",
                    "description": "Optional. A name for this job and every file it makes, shown on your account page and used as the download name. Never sent to the model.",
                    "pattern": "^[A-Za-z0-9._-]{1,80}$"
                  }
                }
              },
              "example": {
                "image_url": "https://media.oneupai.com/u/…/uploads/oneup_upload_…",
                "move": "orbit_right",
                "degrees": 35,
                "duration": 5,
                "resolution": "768p"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Accepted. Poll GET /v1/queue/status/{ticket}, then read GET /v1/queue/result/{ticket}.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueAccepted"
                },
                "example": {
                  "ticket": "oneup_req_SuaNFGGC0b4MGIeOrp78KFRXfR",
                  "status": "QUEUED"
                }
              }
            }
          },
          "202": {
            "description": "Not yet confirmed (`UNCERTAIN`). Keep polling; you are never charged twice.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueAccepted"
                }
              }
            }
          },
          "400": {
            "description": "Error: `invalid_request`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Error: `out_of_credits`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`, `account_frozen`, `credit_debt`, `entitlement_required`, `plan_required`, `storage_quota_exceeded`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error: `unknown_model`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error: `idempotency_conflict`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Error: `model_retired`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error: `payload_too_large`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error: `invalid_input`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `daily_limit_reached`, `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Error: `upstream_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Error: `unavailable`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-output-schema": {
          "type": "object",
          "additionalProperties": true,
          "required": [
            "assets"
          ],
          "properties": {
            "assets": {
              "type": "array",
              "minItems": 1,
              "maxItems": 1,
              "items": {
                "type": "object",
                "additionalProperties": true,
                "required": [
                  "asset_id",
                  "content_type",
                  "size_bytes",
                  "url"
                ],
                "properties": {
                  "asset_id": {
                    "type": "string"
                  },
                  "content_type": {
                    "type": "string",
                    "pattern": "^video/"
                  },
                  "size_bytes": {
                    "type": "integer",
                    "minimum": 1
                  },
                  "url": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/queue/submit/oneup/video-cutout": {
      "post": {
        "tags": [
          "Run a model (queued)"
        ],
        "operationId": "submit_video_cutout",
        "summary": "Cut the person out of a clip",
        "description": "The person in one of your clips, cut out from the room, ready for a new background (a colour, a photo or the room blurred) in a render. Params: video_url (your upload or asset, up to 3 minutes). The result is a video asset you reference as a segment's background matte. Billed per started minute of the clip, once per clip; asking again for the same clip costs nothing. 2 credits per minute. Live price: GET /v1/models. Charged when accepted; refunded if it fails.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "description": "This model's input. The example shows a working body; GET /v1/models has the live details.",
                "properties": {
                  "label": {
                    "type": "string",
                    "description": "Optional. A name for this job and every file it makes, shown on your account page and used as the download name. Never sent to the model.",
                    "pattern": "^[A-Za-z0-9._-]{1,80}$"
                  }
                }
              },
              "example": {
                "video_url": "https://media.oneupai.com/u/oneup_upload_yourclip/1790000000/sig"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Accepted. Poll GET /v1/queue/status/{ticket}, then read GET /v1/queue/result/{ticket}.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueAccepted"
                },
                "example": {
                  "ticket": "oneup_req_SuaNFGGC0b4MGIeOrp78KFRXfR",
                  "status": "QUEUED"
                }
              }
            }
          },
          "202": {
            "description": "Not yet confirmed (`UNCERTAIN`). Keep polling; you are never charged twice.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueAccepted"
                }
              }
            }
          },
          "400": {
            "description": "Error: `invalid_request`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Error: `out_of_credits`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`, `account_frozen`, `credit_debt`, `entitlement_required`, `plan_required`, `storage_quota_exceeded`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error: `unknown_model`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error: `idempotency_conflict`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Error: `model_retired`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error: `payload_too_large`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error: `invalid_input`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `daily_limit_reached`, `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Error: `upstream_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Error: `unavailable`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-output-schema": {
          "type": "object",
          "description": "A video asset: the clip's frame rate and length, twice its width — the person's colours on the left, the person's coverage on the right (black = room, white = person). Referenced as `background.matte` in a schema v1.16 Timeline."
        }
      }
    },
    "/v1/queue/submit/oneup/video-cutout-pro": {
      "post": {
        "tags": [
          "Run a model (queued)"
        ],
        "operationId": "submit_video_cutout_pro",
        "summary": "Cut the person out of a clip, finest edges",
        "description": "Cuts the person out of one of your clips so it can stand on a new background (a color, a photo or the room blurred) in a render. Params: video_url (your upload or asset, up to 3 minutes). The result is two video assets, always in this order: the person's colors, then the person's coverage (black is the room, white is the person); reference them as a segment's background matte and alpha (schema v1.20). Billed per started 30 frames of the whole clip (5 credits a second at 30 frames a second), once per clip; asking again for the same upload costs nothing. 5 credits per 30 frames. Live price: GET /v1/models. Charged when accepted; refunded if it fails.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "video_url"
                ],
                "properties": {
                  "video_url": {
                    "type": "string",
                    "description": "The clip whose person is cut out: an uploaded video of yours or one of your video assets (up to 3 minutes)."
                  },
                  "label": {
                    "type": "string",
                    "description": "Optional. A name for this job and every file it makes, shown on your account page and used as the download name. Never sent to the model.",
                    "pattern": "^[A-Za-z0-9._-]{1,80}$"
                  }
                }
              },
              "example": {
                "video_url": "https://media.oneupai.com/u/oneup_upload_yourclip/1790000000/sig"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Accepted. Poll GET /v1/queue/status/{ticket}, then read GET /v1/queue/result/{ticket}.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueAccepted"
                },
                "example": {
                  "ticket": "oneup_req_SuaNFGGC0b4MGIeOrp78KFRXfR",
                  "status": "QUEUED"
                }
              }
            }
          },
          "202": {
            "description": "Not yet confirmed (`UNCERTAIN`). Keep polling; you are never charged twice.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueAccepted"
                }
              }
            }
          },
          "400": {
            "description": "Error: `invalid_request`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Error: `out_of_credits`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`, `account_frozen`, `credit_debt`, `entitlement_required`, `plan_required`, `storage_quota_exceeded`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error: `unknown_model`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error: `idempotency_conflict`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Error: `model_retired`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error: `payload_too_large`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error: `invalid_input`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `daily_limit_reached`, `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Error: `upstream_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Error: `unavailable`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-output-schema": {
          "type": "object",
          "description": "Two video assets, always in this order: the person's colors, then the person's coverage as brightness (black = room, white = person), each at the clip's resolution, frame rate and length. Referenced as `background.matte` and `background.alpha` in a schema v1.20 Timeline."
        }
      }
    },
    "/v1/queue/submit/oneup/video-lipsync-lite": {
      "post": {
        "tags": [
          "Run a model (queued)"
        ],
        "operationId": "submit_video_lipsync_lite",
        "summary": "Lip-sync a video",
        "description": "Lip-sync your uploaded video to your uploaded audio. Params: video_url, audio_url (both must be your uploads or assets). Billed per second of the longer input, rounded up, up to 60 seconds. 9 credits per second. Live price: GET /v1/models. Charged when accepted; refunded if it fails.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "video_url",
                  "audio_url"
                ],
                "properties": {
                  "video_url": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048,
                    "description": "Your video: the file_url of one of your uploads or the URL of one of your assets. Its length counts toward the billed seconds."
                  },
                  "audio_url": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048,
                    "description": "The speech to sync to: the file_url of one of your uploads or the URL of one of your assets. Its length counts toward the billed seconds."
                  },
                  "label": {
                    "type": "string",
                    "description": "Optional. A name for this job and every file it makes, shown on your account page and used as the download name. Never sent to the model.",
                    "pattern": "^[A-Za-z0-9._-]{1,80}$"
                  }
                }
              },
              "example": {
                "video_url": "https://media.oneupai.com/u/oneup_upload_yourvideo/1790000000/sig",
                "audio_url": "https://media.oneupai.com/u/oneup_upload_youraudio/1790000000/sig"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Accepted. Poll GET /v1/queue/status/{ticket}, then read GET /v1/queue/result/{ticket}.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueAccepted"
                },
                "example": {
                  "ticket": "oneup_req_SuaNFGGC0b4MGIeOrp78KFRXfR",
                  "status": "QUEUED"
                }
              }
            }
          },
          "202": {
            "description": "Not yet confirmed (`UNCERTAIN`). Keep polling; you are never charged twice.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueAccepted"
                }
              }
            }
          },
          "400": {
            "description": "Error: `invalid_request`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Error: `out_of_credits`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`, `account_frozen`, `credit_debt`, `entitlement_required`, `plan_required`, `storage_quota_exceeded`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error: `unknown_model`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error: `idempotency_conflict`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Error: `model_retired`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error: `payload_too_large`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error: `invalid_input`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `daily_limit_reached`, `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Error: `upstream_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Error: `unavailable`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-output-schema": {
          "type": "object",
          "additionalProperties": true,
          "required": [
            "assets"
          ],
          "properties": {
            "assets": {
              "type": "array",
              "minItems": 1,
              "items": {
                "type": "object",
                "additionalProperties": true,
                "required": [
                  "asset_id",
                  "content_type",
                  "size_bytes",
                  "url"
                ],
                "properties": {
                  "asset_id": {
                    "type": "string"
                  },
                  "content_type": {
                    "type": "string",
                    "pattern": "^video/"
                  },
                  "size_bytes": {
                    "type": "integer",
                    "minimum": 1
                  },
                  "url": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/queue/submit/oneup/video-lipsync-pro": {
      "post": {
        "tags": [
          "Run a model (queued)"
        ],
        "operationId": "submit_video_lipsync_pro",
        "summary": "Lip-sync a video (studio)",
        "description": "Highest-fidelity lip-sync of your uploaded video to your uploaded audio; the result is cut to the shorter input. Params: video_url, audio_url (your uploads or assets), sync_mode (fixed \"cut_off\"). Billed per second of the shorter input, rounded up, up to 60 seconds. 18 credits per second. Live price: GET /v1/models. Charged when accepted; refunded if it fails.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "video_url",
                  "audio_url"
                ],
                "properties": {
                  "video_url": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048,
                    "description": "Your video: the file_url of one of your uploads or the URL of one of your assets. The result is cut to the shorter of video and audio."
                  },
                  "audio_url": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048,
                    "description": "The speech to sync to: the file_url of one of your uploads or the URL of one of your assets."
                  },
                  "sync_mode": {
                    "type": "string",
                    "enum": [
                      "cut_off"
                    ],
                    "description": "Fixed to cut_off: the result is cut to the shorter input, which is what you are billed for."
                  },
                  "label": {
                    "type": "string",
                    "description": "Optional. A name for this job and every file it makes, shown on your account page and used as the download name. Never sent to the model.",
                    "pattern": "^[A-Za-z0-9._-]{1,80}$"
                  }
                }
              },
              "example": {
                "video_url": "https://media.oneupai.com/u/oneup_upload_yourvideo/1790000000/sig",
                "audio_url": "https://media.oneupai.com/u/oneup_upload_youraudio/1790000000/sig",
                "sync_mode": "cut_off"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Accepted. Poll GET /v1/queue/status/{ticket}, then read GET /v1/queue/result/{ticket}.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueAccepted"
                },
                "example": {
                  "ticket": "oneup_req_SuaNFGGC0b4MGIeOrp78KFRXfR",
                  "status": "QUEUED"
                }
              }
            }
          },
          "202": {
            "description": "Not yet confirmed (`UNCERTAIN`). Keep polling; you are never charged twice.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueAccepted"
                }
              }
            }
          },
          "400": {
            "description": "Error: `invalid_request`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Error: `out_of_credits`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`, `account_frozen`, `credit_debt`, `entitlement_required`, `plan_required`, `storage_quota_exceeded`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error: `unknown_model`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error: `idempotency_conflict`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Error: `model_retired`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error: `payload_too_large`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error: `invalid_input`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `daily_limit_reached`, `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Error: `upstream_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Error: `unavailable`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-output-schema": {
          "type": "object",
          "additionalProperties": true,
          "required": [
            "assets"
          ],
          "properties": {
            "assets": {
              "type": "array",
              "minItems": 1,
              "items": {
                "type": "object",
                "additionalProperties": true,
                "required": [
                  "asset_id",
                  "content_type",
                  "size_bytes",
                  "url"
                ],
                "properties": {
                  "asset_id": {
                    "type": "string"
                  },
                  "content_type": {
                    "type": "string",
                    "pattern": "^video/"
                  },
                  "size_bytes": {
                    "type": "integer",
                    "minimum": 1
                  },
                  "url": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/queue/submit/oneup/video-lipsync-standard": {
      "post": {
        "tags": [
          "Run a model (queued)"
        ],
        "operationId": "submit_video_lipsync_standard",
        "summary": "Lip-sync a short moment",
        "description": "Lip-sync your uploaded video to your uploaded audio; the video's timing is mapped onto the audio, so the result runs as long as the audio. Params: video_url, audio_url (your uploads or assets), sync_mode (fixed \"remap\"). Billed per second of the audio, rounded up, up to 60 seconds. 11 credits per second. Live price: GET /v1/models. Charged when accepted; refunded if it fails.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "video_url",
                  "audio_url"
                ],
                "properties": {
                  "video_url": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048,
                    "description": "Your video: the file_url of one of your uploads or the URL of one of your assets. Its timing is mapped onto the audio, so the result runs as long as the audio."
                  },
                  "audio_url": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048,
                    "description": "The speech to sync to: the file_url of one of your uploads or the URL of one of your assets. You are billed for its length."
                  },
                  "sync_mode": {
                    "type": "string",
                    "enum": [
                      "remap"
                    ],
                    "description": "Fixed to remap: the video's timing is mapped onto the audio, so the result runs as long as the audio, which is what you are billed for."
                  },
                  "label": {
                    "type": "string",
                    "description": "Optional. A name for this job and every file it makes, shown on your account page and used as the download name. Never sent to the model.",
                    "pattern": "^[A-Za-z0-9._-]{1,80}$"
                  }
                }
              },
              "example": {
                "video_url": "https://media.oneupai.com/u/oneup_upload_yourvideo/1790000000/sig",
                "audio_url": "https://media.oneupai.com/u/oneup_upload_youraudio/1790000000/sig",
                "sync_mode": "remap"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Accepted. Poll GET /v1/queue/status/{ticket}, then read GET /v1/queue/result/{ticket}.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueAccepted"
                },
                "example": {
                  "ticket": "oneup_req_SuaNFGGC0b4MGIeOrp78KFRXfR",
                  "status": "QUEUED"
                }
              }
            }
          },
          "202": {
            "description": "Not yet confirmed (`UNCERTAIN`). Keep polling; you are never charged twice.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueAccepted"
                }
              }
            }
          },
          "400": {
            "description": "Error: `invalid_request`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Error: `out_of_credits`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`, `account_frozen`, `credit_debt`, `entitlement_required`, `plan_required`, `storage_quota_exceeded`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error: `unknown_model`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error: `idempotency_conflict`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Error: `model_retired`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error: `payload_too_large`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error: `invalid_input`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `daily_limit_reached`, `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Error: `upstream_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Error: `unavailable`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-output-schema": {
          "type": "object",
          "additionalProperties": true,
          "required": [
            "assets"
          ],
          "properties": {
            "assets": {
              "type": "array",
              "minItems": 1,
              "items": {
                "type": "object",
                "additionalProperties": true,
                "required": [
                  "asset_id",
                  "content_type",
                  "size_bytes",
                  "url"
                ],
                "properties": {
                  "asset_id": {
                    "type": "string"
                  },
                  "content_type": {
                    "type": "string",
                    "pattern": "^video/"
                  },
                  "size_bytes": {
                    "type": "integer",
                    "minimum": 1
                  },
                  "url": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/queue/submit/oneup/video-talking-photo": {
      "post": {
        "tags": [
          "Run a model (queued)"
        ],
        "operationId": "submit_video_talking_photo",
        "summary": "Talking photo",
        "description": "A still photo that speaks your uploaded audio, at 1080p. Params: image_url (any image), audio_url (your upload or asset — sets the length), prompt?, resolution (fixed \"1080p\"). Billed per second of audio, rounded up, up to 30 seconds. 34 credits per second. Live price: GET /v1/models. Charged when accepted; refunded if it fails.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "image_url",
                  "audio_url"
                ],
                "properties": {
                  "image_url": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048,
                    "description": "The photo to animate — a person, facing the camera. An upload file_url, one of your assets, or any image URL."
                  },
                  "audio_url": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048,
                    "description": "The speech: the file_url of one of your uploads or the URL of one of your assets. Its length is what you are billed for (up to 30 seconds)."
                  },
                  "prompt": {
                    "type": "string",
                    "maxLength": 1000,
                    "description": "Optional direction for the performance (calm, animated, looking left…)."
                  },
                  "resolution": {
                    "type": "string",
                    "enum": [
                      "1080p"
                    ],
                    "description": "Fixed to 1080p."
                  },
                  "label": {
                    "type": "string",
                    "description": "Optional. A name for this job and every file it makes, shown on your account page and used as the download name. Never sent to the model.",
                    "pattern": "^[A-Za-z0-9._-]{1,80}$"
                  }
                }
              },
              "example": {
                "image_url": "https://example.com/portrait.jpg",
                "audio_url": "https://media.oneupai.com/u/oneup_upload_youraudio/1790000000/sig",
                "resolution": "1080p"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Accepted. Poll GET /v1/queue/status/{ticket}, then read GET /v1/queue/result/{ticket}.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueAccepted"
                },
                "example": {
                  "ticket": "oneup_req_SuaNFGGC0b4MGIeOrp78KFRXfR",
                  "status": "QUEUED"
                }
              }
            }
          },
          "202": {
            "description": "Not yet confirmed (`UNCERTAIN`). Keep polling; you are never charged twice.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueAccepted"
                }
              }
            }
          },
          "400": {
            "description": "Error: `invalid_request`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Error: `out_of_credits`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`, `account_frozen`, `credit_debt`, `entitlement_required`, `plan_required`, `storage_quota_exceeded`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error: `unknown_model`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error: `idempotency_conflict`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Error: `model_retired`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error: `payload_too_large`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error: `invalid_input`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `daily_limit_reached`, `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Error: `upstream_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Error: `unavailable`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-output-schema": {
          "type": "object",
          "additionalProperties": true,
          "required": [
            "assets"
          ],
          "properties": {
            "assets": {
              "type": "array",
              "minItems": 1,
              "items": {
                "type": "object",
                "additionalProperties": true,
                "required": [
                  "asset_id",
                  "content_type",
                  "size_bytes",
                  "url"
                ],
                "properties": {
                  "asset_id": {
                    "type": "string"
                  },
                  "content_type": {
                    "type": "string",
                    "pattern": "^video/"
                  },
                  "size_bytes": {
                    "type": "integer",
                    "minimum": 1
                  },
                  "url": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/renders": {
      "post": {
        "tags": [
          "Render"
        ],
        "operationId": "createRender",
        "summary": "Render a Timeline version: a free preview or a charged final",
        "description": "A final is charged when it is accepted and refunded if it fails. A preview is free and limited by an allowance.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RenderRequest"
              },
              "example": {
                "alias": "oneup/render-timeline",
                "project_id": "3f6c2a9e-8b1d-4e7a-9c5f-2d8b7a1e4c60",
                "version_id": "b7e4d2a1-5c3f-4a8e-9b6d-1f2e3c4d5a6b",
                "kind": "preview"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "A retry with the same key: the original render.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RenderAccepted"
                }
              }
            }
          },
          "202": {
            "description": "Accepted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RenderAccepted"
                },
                "example": {
                  "render_id": "8e2631f2-3e17-457f-8fa5-05d4c8b93f00",
                  "ticket": "oneup_req_7nyDXaO5sbLwWruJ2PshDL2i6D",
                  "kind": "preview",
                  "status": "QUEUED"
                }
              }
            }
          },
          "400": {
            "description": "Error: `invalid_request`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Error: `out_of_credits`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`, `account_frozen`, `credit_debt`, `entitlement_required`, `plan_required`, `preview_quota_exhausted`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error: `not_found`, `unknown_model`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error: `idempotency_conflict`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Error: `model_retired`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error: `payload_too_large`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error: `operation_unavailable`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `daily_limit_reached`, `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Error: `unavailable`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/renders/estimate": {
      "get": {
        "tags": [
          "Render"
        ],
        "operationId": "estimateRender",
        "summary": "About how long a render of this kind and length takes",
        "description": "From recent finished renders of that kind and a similar length, plus the renders waiting ahead. `seconds` is the middle time and `slow_seconds` the slow end (the 90th percentile); both are null when there are too few to say.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "kind",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "final",
                "preview"
              ]
            }
          },
          {
            "name": "duration_ms",
            "in": "query",
            "required": true,
            "description": "The video's length in milliseconds.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 3600000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The estimate.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RenderEstimate"
                },
                "example": {
                  "seconds": 95,
                  "slow_seconds": 140,
                  "queued_ahead": 0
                }
              }
            }
          },
          "400": {
            "description": "Error: `invalid_request`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/renders/{render_id}": {
      "get": {
        "tags": [
          "Render"
        ],
        "operationId": "getRender",
        "summary": "A render's status and links",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "render_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The render.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Render"
                },
                "example": {
                  "render_id": "68d46bc5-8aec-452d-9cc6-e02c953705cd",
                  "ticket": "oneup_req_SeGKfj9MtZBDnuujfWeatmFPit",
                  "kind": "final",
                  "status": "COMPLETED",
                  "progress": {},
                  "poster_url": "https://media.oneupai.com/a/oneup_asset_A06obVi1TFUVNsSuvw9qWDso2M/1791436086/WkCbUhkBLfms3A9XE37emS1oYI1O66NM2DwSXgqbtKt",
                  "asset_id": "oneup_asset_wVb59L9t3920xfZw397HeG4mnU",
                  "created_at": "2026-10-08T04:07:18.992Z",
                  "completed_at": "2026-10-08T04:08:03.414Z"
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error: `not_found`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/renders/{render_id}/cancel": {
      "post": {
        "tags": [
          "Render"
        ],
        "operationId": "cancelRender",
        "summary": "Cancel a running preview",
        "description": "Finals cannot be canceled.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "render_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Whether it was canceled.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RenderCancel"
                },
                "example": {
                  "cancelled": true
                }
              }
            }
          },
          "400": {
            "description": "Error: `invalid_request`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error: `not_found`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/run/oneup/text-post-copy": {
      "post": {
        "tags": [
          "Run a model (answer now)"
        ],
        "operationId": "run_text_post_copy",
        "summary": "Post text for your platforms",
        "description": "Writes the post text for a short video, one version per platform (YouTube, Instagram, Facebook, LinkedIn, Business Profile), written for a local market. Params: platforms, language, video, places, business, and optional topic / script / target_search / secondary_searches / cta_hint. Live price: GET /v1/models.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "platforms",
                  "language",
                  "video",
                  "places",
                  "business"
                ],
                "properties": {
                  "platforms": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 5,
                    "uniqueItems": true,
                    "items": {
                      "enum": [
                        "youtube",
                        "instagram",
                        "facebook",
                        "linkedin",
                        "googlebusiness"
                      ]
                    },
                    "description": "The platforms to write for, 1 to 5."
                  },
                  "language": {
                    "enum": [
                      "en",
                      "es"
                    ]
                  },
                  "video": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "duration_ms",
                      "aspect",
                      "agent_slug"
                    ],
                    "properties": {
                      "duration_ms": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 3600000
                      },
                      "aspect": {
                        "enum": [
                          "9:16",
                          "1:1",
                          "4:5",
                          "16:9"
                        ]
                      },
                      "agent_slug": {
                        "type": "string",
                        "pattern": "^[a-z0-9][a-z0-9-]{0,63}$",
                        "maxLength": 64
                      },
                      "recipe": {
                        "type": "object",
                        "maxProperties": 24,
                        "additionalProperties": {
                          "type": "string",
                          "maxLength": 40
                        },
                        "description": "The video's choices as option ids: at most 24, and at most 2,100 characters as sent (more is refused as recipe_too_large).",
                        "propertyNames": {
                          "maxLength": 40
                        }
                      },
                      "scenes": {
                        "type": "array",
                        "maxItems": 60,
                        "items": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 3600000
                        },
                        "description": "Optional: each scene's start in the video, in milliseconds. YouTube chapters are written only from these times, only when YouTube's rule holds (the first at 0:00, at least three, each at least 10 seconds), and never for a Short."
                      }
                    }
                  },
                  "topic": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "description": "Optional: what the video is about, in the member's words (\"What's this video about?\"). With neither a topic nor a script, the text is written from the business and the searches."
                  },
                  "script": {
                    "type": "string",
                    "maxLength": 4000,
                    "description": "The video's script, when it has one. Optional: without it the text is written from the business, the searches and the choices."
                  },
                  "target_search": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "phrase",
                      "place"
                    ],
                    "properties": {
                      "phrase": {
                        "type": "string",
                        "minLength": 2,
                        "maxLength": 80
                      },
                      "place": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 60
                      },
                      "title_hint": {
                        "type": "string",
                        "minLength": 2,
                        "maxLength": 70,
                        "description": "Optional: a title idea for this search, a hint for the YouTube title that contains the search; used only when it does and fits 70 characters."
                      }
                    }
                  },
                  "secondary_searches": {
                    "type": "array",
                    "maxItems": 3,
                    "items": {
                      "type": "string",
                      "minLength": 2,
                      "maxLength": 80
                    }
                  },
                  "places": {
                    "type": "array",
                    "maxItems": 6,
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 60
                    }
                  },
                  "business": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "name",
                      "vertical"
                    ],
                    "properties": {
                      "name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 80
                      },
                      "vertical": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 60
                      },
                      "brokerage": {
                        "type": "string",
                        "maxLength": 80
                      },
                      "phone": {
                        "type": "string",
                        "maxLength": 32
                      }
                    }
                  },
                  "cta_hint": {
                    "enum": [
                      "call",
                      "book",
                      "learn_more",
                      "dm"
                    ]
                  },
                  "label": {
                    "type": "string",
                    "description": "Optional. A name for this job and every file it makes, shown on your account page and used as the download name. Never sent to the model.",
                    "pattern": "^[A-Za-z0-9._-]{1,80}$"
                  }
                }
              },
              "example": {
                "platforms": [
                  "youtube",
                  "instagram"
                ],
                "language": "en",
                "video": {
                  "duration_ms": 34000,
                  "aspect": "9:16",
                  "agent_slug": "oneuplisting"
                },
                "target_search": {
                  "phrase": "yacht broker fort lauderdale",
                  "place": "Fort Lauderdale"
                },
                "places": [
                  "Fort Lauderdale"
                ],
                "business": {
                  "name": "Harbor Yachts",
                  "vertical": "Yacht broker"
                },
                "cta_hint": "call"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer, as `{alias, output}`. A retry with the same Idempotency-Key within 15 minutes returns the same `output` with `replayed: true`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "alias": {
                      "type": "string",
                      "description": "The model that answered."
                    },
                    "replayed": {
                      "type": "boolean",
                      "description": "Only on a retry: the first answer, sent again."
                    },
                    "output": {
                      "type": "object",
                      "additionalProperties": true,
                      "required": [
                        "notices"
                      ],
                      "properties": {
                        "youtube": {
                          "type": "object",
                          "required": [
                            "title",
                            "description",
                            "tags"
                          ],
                          "properties": {
                            "title": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 70
                            },
                            "description": {
                              "type": "string",
                              "maxLength": 471,
                              "description": "Its own text is at most 300 characters and its first line names the target search and its place; the chapter lines, when any, follow as its last lines (\"m:ss Name\", at most 5), beyond those 300."
                            },
                            "tags": {
                              "type": "array",
                              "maxItems": 6,
                              "items": {
                                "type": "string",
                                "maxLength": 25
                              },
                              "description": "At most 6, at most 120 characters together."
                            },
                            "chapters": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "at_ms",
                                  "title"
                                ],
                                "properties": {
                                  "at_ms": {
                                    "type": "integer",
                                    "minimum": 0
                                  },
                                  "title": {
                                    "type": "string",
                                    "maxLength": 25
                                  }
                                }
                              },
                              "description": "Present only when chapters were written: the same chapters as the description's last lines.",
                              "maxItems": 5
                            },
                            "thumbnail_words": {
                              "type": "string",
                              "maxLength": 30,
                              "description": "Present only for a long video: 2 to 4 words for the thumbnail."
                            }
                          }
                        },
                        "instagram": {
                          "type": "object",
                          "required": [
                            "caption",
                            "hashtags"
                          ],
                          "properties": {
                            "caption": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 180
                            },
                            "hashtags": {
                              "type": "array",
                              "maxItems": 5,
                              "items": {
                                "type": "string",
                                "maxLength": 20,
                                "pattern": "^#[^\\s#]+$"
                              },
                              "description": "3 to 5 asked for, each one #Word with no spaces; fewer are kept as written."
                            }
                          }
                        },
                        "facebook": {
                          "type": "object",
                          "required": [
                            "text"
                          ],
                          "properties": {
                            "text": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 180
                            },
                            "hashtags": {
                              "type": "array",
                              "maxItems": 5,
                              "items": {
                                "type": "string",
                                "maxLength": 20,
                                "pattern": "^#[^\\s#]+$"
                              },
                              "description": "3 to 5 asked for, each one #Word with no spaces; fewer are kept as written."
                            }
                          }
                        },
                        "linkedin": {
                          "type": "object",
                          "required": [
                            "text"
                          ],
                          "properties": {
                            "text": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 180
                            },
                            "hashtags": {
                              "type": "array",
                              "maxItems": 5,
                              "items": {
                                "type": "string",
                                "maxLength": 20,
                                "pattern": "^#[^\\s#]+$"
                              },
                              "description": "3 to 5 asked for, each one #Word with no spaces; fewer are kept as written."
                            }
                          }
                        },
                        "googlebusiness": {
                          "type": "object",
                          "required": [
                            "summary"
                          ],
                          "properties": {
                            "summary": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 180
                            }
                          }
                        },
                        "notices": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "code",
                              "platform"
                            ],
                            "properties": {
                              "code": {
                                "enum": [
                                  "search_not_in_title",
                                  "search_late_in_caption",
                                  "place_not_named",
                                  "place_tag_missing",
                                  "search_not_spoken",
                                  "search_late_in_description",
                                  "chapters_invalid",
                                  "title_too_long"
                                ]
                              },
                              "platform": {
                                "enum": [
                                  "youtube",
                                  "instagram",
                                  "facebook",
                                  "linkedin",
                                  "googlebusiness"
                                ]
                              }
                            }
                          },
                          "description": "Keyword notices for this copy; they never block. The response may also carry `alias` and `replayed`, and fields may be added later: ignore any field you don't know."
                        }
                      }
                    }
                  },
                  "required": [
                    "output"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "alias": "oneup/text-post-copy",
                  "output": {
                    "youtube": {
                      "title": "Yacht broker Fort Lauderdale: a walk-through in 34 seconds",
                      "description": "A quick tour of a listing with Harbor Yachts, a yacht broker in Fort Lauderdale. Call us to set up a sea trial.",
                      "tags": [
                        "yacht broker",
                        "fort lauderdale",
                        "yachts for sale"
                      ]
                    },
                    "instagram": {
                      "caption": "Looking for a yacht broker in Fort Lauderdale? Here is a 34-second walk-through. Call Harbor Yachts to book a sea trial.",
                      "hashtags": [
                        "#FortLauderdale",
                        "#YachtBroker",
                        "#YachtsForSale"
                      ]
                    },
                    "notices": []
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error: `invalid_request`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Error: `out_of_credits`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`, `account_frozen`, `credit_debt`, `entitlement_required`, `plan_required`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error: `not_found`, `unknown_model`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error: `idempotency_conflict`, `result_expired`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Error: `model_retired`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error: `payload_too_large`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error: `invalid_input`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `daily_limit_reached`, `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Error: `upstream_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Error: `unavailable`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/run/oneup/text-script": {
      "post": {
        "tags": [
          "Run a model (answer now)"
        ],
        "operationId": "run_text_script",
        "summary": "Script and scene direction",
        "description": "Script and scene direction writing. Params: prompt (brief), context?, target_search? (the search the script says in its first sentence), place?. Up to 16,000 input characters. Live price: GET /v1/models.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "prompt"
                ],
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 15980,
                    "description": "The brief: what to write. The prompt and the context share one budget: the whole request as sent (its JSON, where a line break or a quote counts as two characters) is capped at 16,000 characters (max_input_chars, enforced pre-spend)."
                  },
                  "context": {
                    "type": "string",
                    "maxLength": 15970,
                    "description": "Optional background the writing should honor. The prompt and the context share one budget: the whole request as sent (its JSON, where a line break or a quote counts as two characters) is capped at 16,000 characters (max_input_chars, enforced pre-spend)."
                  },
                  "target_search": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 80,
                    "description": "Optional: the search this video is for. The script says it naturally once, in its first sentence, and never lists keywords. Counts toward the 16,000-character request limit."
                  },
                  "place": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 60,
                    "description": "Optional: the place the script names. Counts toward the 16,000-character request limit."
                  },
                  "label": {
                    "type": "string",
                    "description": "Optional. A name for this job and every file it makes, shown on your account page and used as the download name. Never sent to the model.",
                    "pattern": "^[A-Za-z0-9._-]{1,80}$"
                  }
                }
              },
              "example": {
                "prompt": "Write a 3-scene product-demo script for a standing desk"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer, as `{alias, output}`. A retry with the same Idempotency-Key within 15 minutes returns the same `output` with `replayed: true`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "required": [
                    "output"
                  ],
                  "properties": {
                    "output": {
                      "type": "string",
                      "minLength": 1,
                      "description": "The written text. The response may also carry `alias` and `replayed`, and fields may be added later: ignore any field you don't know."
                    }
                  }
                },
                "example": {
                  "alias": "oneup/text-script",
                  "output": "Scene 1 — The problem (0:00–0:08)\nA tired back at a desk. Voice: “Eight hours of sitting adds up.”\n\nScene 2 — The desk (0:08–0:20)\nOne touch raises it to standing height. Voice: “Stand when you want, sit when you need.”\n\nScene 3 — The offer (0:20–0:30)\nThe desk in a bright home office. Voice: “Try it for thirty days.”"
                }
              }
            }
          },
          "400": {
            "description": "Error: `invalid_request`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Error: `out_of_credits`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`, `account_frozen`, `credit_debt`, `entitlement_required`, `plan_required`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error: `not_found`, `unknown_model`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error: `idempotency_conflict`, `result_expired`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Error: `model_retired`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error: `payload_too_large`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error: `invalid_input`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `daily_limit_reached`, `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Error: `upstream_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Error: `unavailable`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/run/oneup/text-shot-plan": {
      "post": {
        "tags": [
          "Run a model (answer now)"
        ],
        "operationId": "run_text_shot_plan",
        "summary": "Shot director for photo tours",
        "description": "A shot director for photo tours: from a manifest (the track's cut candidates, the photos' facts, the style's budgets), your vocabulary tables and up to 40 photos, it returns a structured plan — which photos, in what order, each one's move and an effect on every cut, all on the beat. Params: manifest, images, vocab, profiles, rules. 80 credits per plan. Live price: GET /v1/models.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "manifest",
                  "images",
                  "vocab",
                  "profiles",
                  "rules"
                ],
                "properties": {
                  "manifest": {
                    "type": "object",
                    "description": "The input manifest: the project and its budgets, the track's cut candidates and sections, the images' facts, same-room pairs and duplicate groups. At most 32,000 characters as JSON (more is refused as input_too_large). Listing facts are never sent."
                  },
                  "vocab": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "base_shots",
                      "cut_effects",
                      "room_types",
                      "reject_reasons"
                    ],
                    "description": "The host's vocabulary (its vocab.ts is the one source): the prefix tables AND the plan's enums are rendered from it, so the prompt and the validator cannot drift.",
                    "properties": {
                      "base_shots": {
                        "type": "array",
                        "minItems": 1,
                        "maxItems": 40,
                        "items": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "id"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "pattern": "^[a-z][a-z0-9_]*$",
                              "maxLength": 48
                            },
                            "note": {
                              "type": "string",
                              "maxLength": 200
                            }
                          }
                        }
                      },
                      "cut_effects": {
                        "type": "array",
                        "minItems": 1,
                        "maxItems": 40,
                        "items": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "id"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "pattern": "^[a-z][a-z0-9_]*$",
                              "maxLength": 48
                            },
                            "note": {
                              "type": "string",
                              "maxLength": 200
                            }
                          }
                        }
                      },
                      "room_types": {
                        "type": "array",
                        "minItems": 1,
                        "maxItems": 40,
                        "items": {
                          "type": "string",
                          "pattern": "^[a-z][a-z0-9_]*$",
                          "maxLength": 48
                        }
                      },
                      "reject_reasons": {
                        "type": "array",
                        "minItems": 1,
                        "maxItems": 40,
                        "items": {
                          "type": "string",
                          "pattern": "^[a-z][a-z0-9_]*$",
                          "maxLength": 48
                        }
                      }
                    }
                  },
                  "profiles": {
                    "type": "string",
                    "maxLength": 6000,
                    "description": "The style-profile budget table, as the calling app renders it."
                  },
                  "rules": {
                    "type": "string",
                    "maxLength": 12000,
                    "description": "The placement rules, as the calling app renders them."
                  },
                  "images": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 40,
                    "description": "The reduced listing photos (768 px long edge, JPEG, prepared by the host), each the caller's own upload or asset URL, in manifest order. More than 40 is images_too_many.",
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "image_id",
                        "url"
                      ],
                      "properties": {
                        "image_id": {
                          "type": "string",
                          "maxLength": 64
                        },
                        "url": {
                          "type": "string",
                          "maxLength": 600
                        }
                      }
                    }
                  },
                  "label": {
                    "type": "string",
                    "description": "Optional. A name for this job and every file it makes, shown on your account page and used as the download name. Never sent to the model.",
                    "pattern": "^[A-Za-z0-9._-]{1,80}$"
                  }
                }
              },
              "example": {
                "manifest": {
                  "project": {
                    "project_id": "job-1"
                  }
                },
                "images": [
                  {
                    "image_id": "img_001",
                    "url": "https://media.oneupai.com/u/x"
                  }
                ],
                "vocab": {
                  "base_shots": [
                    {
                      "id": "hero_hold"
                    }
                  ],
                  "cut_effects": [
                    {
                      "id": "hard_cut"
                    }
                  ],
                  "room_types": [
                    "exterior_front"
                  ],
                  "reject_reasons": [
                    "duplicate"
                  ]
                },
                "profiles": "| Profile | … |",
                "rules": "Sequence. …"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer, as `{alias, output}`. A retry with the same Idempotency-Key within 15 minutes returns the same `output` with `replayed: true`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "alias": {
                      "type": "string",
                      "description": "The model that answered."
                    },
                    "replayed": {
                      "type": "boolean",
                      "description": "Only on a retry: the first answer, sent again."
                    },
                    "output": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "project_id",
                        "images",
                        "timeline",
                        "cuts",
                        "journey_note"
                      ],
                      "properties": {
                        "project_id": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "images": {
                          "type": "array",
                          "minItems": 1,
                          "maxItems": 40,
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "image_id",
                              "room_type",
                              "use",
                              "hero",
                              "focal",
                              "crop_safe",
                              "direction",
                              "reject_reason"
                            ],
                            "properties": {
                              "image_id": {
                                "type": "string",
                                "maxLength": 64
                              },
                              "room_type": {
                                "type": "string",
                                "maxLength": 48
                              },
                              "use": {
                                "type": "boolean"
                              },
                              "hero": {
                                "type": "boolean"
                              },
                              "focal": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "x",
                                  "y"
                                ],
                                "properties": {
                                  "x": {
                                    "type": "number",
                                    "minimum": 0,
                                    "maximum": 1
                                  },
                                  "y": {
                                    "type": "number",
                                    "minimum": 0,
                                    "maximum": 1
                                  }
                                }
                              },
                              "crop_safe": {
                                "type": "string",
                                "enum": [
                                  "high",
                                  "medium",
                                  "low"
                                ]
                              },
                              "direction": {
                                "type": "string",
                                "enum": [
                                  "left",
                                  "right",
                                  "forward",
                                  "backward",
                                  "up",
                                  "down",
                                  "neutral"
                                ]
                              },
                              "reject_reason": {
                                "anyOf": [
                                  {
                                    "type": "null"
                                  },
                                  {
                                    "type": "string",
                                    "maxLength": 48
                                  }
                                ]
                              }
                            }
                          }
                        },
                        "timeline": {
                          "type": "array",
                          "minItems": 1,
                          "maxItems": 40,
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "seq",
                              "image_id",
                              "base_shot",
                              "cut_in",
                              "cut_out"
                            ],
                            "properties": {
                              "seq": {
                                "type": "integer",
                                "minimum": 1
                              },
                              "image_id": {
                                "type": "string",
                                "maxLength": 64
                              },
                              "base_shot": {
                                "type": "string",
                                "maxLength": 48
                              },
                              "cut_in": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "cut_out": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "scale_start": {
                                "type": "number",
                                "minimum": 1,
                                "maximum": 1.12
                              },
                              "scale_end": {
                                "type": "number",
                                "minimum": 1,
                                "maximum": 1.12
                              }
                            }
                          }
                        },
                        "cuts": {
                          "type": "array",
                          "maxItems": 40,
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "from_seq",
                              "to_seq",
                              "at",
                              "effect"
                            ],
                            "properties": {
                              "from_seq": {
                                "type": "integer",
                                "minimum": 1
                              },
                              "to_seq": {
                                "type": "integer",
                                "minimum": 1
                              },
                              "at": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "effect": {
                                "type": "string",
                                "maxLength": 48
                              },
                              "rotation_degrees": {
                                "type": "integer",
                                "minimum": 1,
                                "maximum": 45
                              },
                              "prompt": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 600
                              }
                            }
                          }
                        },
                        "journey_note": {
                          "type": "string",
                          "maxLength": 240
                        }
                      }
                    }
                  },
                  "required": [
                    "output"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "alias": "oneup/text-shot-plan",
                  "output": {
                    "project_id": "job-1",
                    "images": [
                      {
                        "image_id": "img_001",
                        "room_type": "exterior_front",
                        "use": true,
                        "hero": true,
                        "focal": {
                          "x": 0.5,
                          "y": 0.42
                        },
                        "crop_safe": "high",
                        "direction": "neutral",
                        "reject_reason": null
                      }
                    ],
                    "timeline": [
                      {
                        "seq": 1,
                        "image_id": "img_001",
                        "base_shot": "hero_hold",
                        "cut_in": 0,
                        "cut_out": 2,
                        "scale_start": 1,
                        "scale_end": 1.06
                      }
                    ],
                    "cuts": [],
                    "journey_note": "Opens on the front of the house and holds on it."
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error: `invalid_request`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Error: `out_of_credits`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`, `account_frozen`, `credit_debt`, `entitlement_required`, `plan_required`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error: `not_found`, `unknown_model`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error: `idempotency_conflict`, `result_expired`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Error: `model_retired`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error: `payload_too_large`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error: `invalid_input`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `daily_limit_reached`, `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Error: `upstream_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Error: `unavailable`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/run/oneup/text-shot-plan-repair": {
      "post": {
        "tags": [
          "Run a model (answer now)"
        ],
        "operationId": "run_text_shot_plan_repair",
        "summary": "Shot director, second pass",
        "description": "The shot director's second pass, text only: the same manifest and vocabulary, the failing plan and your validator's errors in — a corrected plan out. No photos are sent. 30 credits per call. Live price: GET /v1/models.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "manifest",
                  "vocab",
                  "profiles",
                  "rules",
                  "repair"
                ],
                "properties": {
                  "manifest": {
                    "type": "object",
                    "description": "The input manifest: the project and its budgets, the track's cut candidates and sections, the images' facts, same-room pairs and duplicate groups. At most 32,000 characters as JSON (more is refused as input_too_large). Listing facts are never sent."
                  },
                  "vocab": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "base_shots",
                      "cut_effects",
                      "room_types",
                      "reject_reasons"
                    ],
                    "description": "The host's vocabulary (its vocab.ts is the one source): the prefix tables AND the plan's enums are rendered from it, so the prompt and the validator cannot drift.",
                    "properties": {
                      "base_shots": {
                        "type": "array",
                        "minItems": 1,
                        "maxItems": 40,
                        "items": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "id"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "pattern": "^[a-z][a-z0-9_]*$",
                              "maxLength": 48
                            },
                            "note": {
                              "type": "string",
                              "maxLength": 200
                            }
                          }
                        }
                      },
                      "cut_effects": {
                        "type": "array",
                        "minItems": 1,
                        "maxItems": 40,
                        "items": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "id"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "pattern": "^[a-z][a-z0-9_]*$",
                              "maxLength": 48
                            },
                            "note": {
                              "type": "string",
                              "maxLength": 200
                            }
                          }
                        }
                      },
                      "room_types": {
                        "type": "array",
                        "minItems": 1,
                        "maxItems": 40,
                        "items": {
                          "type": "string",
                          "pattern": "^[a-z][a-z0-9_]*$",
                          "maxLength": 48
                        }
                      },
                      "reject_reasons": {
                        "type": "array",
                        "minItems": 1,
                        "maxItems": 40,
                        "items": {
                          "type": "string",
                          "pattern": "^[a-z][a-z0-9_]*$",
                          "maxLength": 48
                        }
                      }
                    }
                  },
                  "profiles": {
                    "type": "string",
                    "maxLength": 6000,
                    "description": "The style-profile budget table, as the calling app renders it."
                  },
                  "rules": {
                    "type": "string",
                    "maxLength": 12000,
                    "description": "The placement rules, as the calling app renders them."
                  },
                  "repair": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "plan",
                      "errors"
                    ],
                    "properties": {
                      "plan": {
                        "type": "object",
                        "description": "The failing plan (≤ 32,000 characters as JSON)."
                      },
                      "errors": {
                        "type": "array",
                        "minItems": 1,
                        "maxItems": 40,
                        "items": {
                          "type": "string",
                          "maxLength": 400
                        },
                        "description": "The host validator's errors, one sentence each."
                      }
                    }
                  },
                  "label": {
                    "type": "string",
                    "description": "Optional. A name for this job and every file it makes, shown on your account page and used as the download name. Never sent to the model.",
                    "pattern": "^[A-Za-z0-9._-]{1,80}$"
                  }
                }
              },
              "example": {
                "manifest": {
                  "project": {
                    "project_id": "job-1"
                  }
                },
                "vocab": {
                  "base_shots": [
                    {
                      "id": "hero_hold"
                    }
                  ],
                  "cut_effects": [
                    {
                      "id": "hard_cut"
                    }
                  ],
                  "room_types": [
                    "exterior_front"
                  ],
                  "reject_reasons": [
                    "duplicate"
                  ]
                },
                "profiles": "| Profile | … |",
                "rules": "Sequence. …",
                "repair": {
                  "plan": {
                    "project_id": "job-1"
                  },
                  "errors": [
                    "cut 3: at mismatch"
                  ]
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer, as `{alias, output}`. A retry with the same Idempotency-Key within 15 minutes returns the same `output` with `replayed: true`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "alias": {
                      "type": "string",
                      "description": "The model that answered."
                    },
                    "replayed": {
                      "type": "boolean",
                      "description": "Only on a retry: the first answer, sent again."
                    },
                    "output": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "project_id",
                        "images",
                        "timeline",
                        "cuts",
                        "journey_note"
                      ],
                      "properties": {
                        "project_id": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "images": {
                          "type": "array",
                          "minItems": 1,
                          "maxItems": 40,
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "image_id",
                              "room_type",
                              "use",
                              "hero",
                              "focal",
                              "crop_safe",
                              "direction",
                              "reject_reason"
                            ],
                            "properties": {
                              "image_id": {
                                "type": "string",
                                "maxLength": 64
                              },
                              "room_type": {
                                "type": "string",
                                "maxLength": 48
                              },
                              "use": {
                                "type": "boolean"
                              },
                              "hero": {
                                "type": "boolean"
                              },
                              "focal": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "x",
                                  "y"
                                ],
                                "properties": {
                                  "x": {
                                    "type": "number",
                                    "minimum": 0,
                                    "maximum": 1
                                  },
                                  "y": {
                                    "type": "number",
                                    "minimum": 0,
                                    "maximum": 1
                                  }
                                }
                              },
                              "crop_safe": {
                                "type": "string",
                                "enum": [
                                  "high",
                                  "medium",
                                  "low"
                                ]
                              },
                              "direction": {
                                "type": "string",
                                "enum": [
                                  "left",
                                  "right",
                                  "forward",
                                  "backward",
                                  "up",
                                  "down",
                                  "neutral"
                                ]
                              },
                              "reject_reason": {
                                "anyOf": [
                                  {
                                    "type": "null"
                                  },
                                  {
                                    "type": "string",
                                    "maxLength": 48
                                  }
                                ]
                              }
                            }
                          }
                        },
                        "timeline": {
                          "type": "array",
                          "minItems": 1,
                          "maxItems": 40,
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "seq",
                              "image_id",
                              "base_shot",
                              "cut_in",
                              "cut_out"
                            ],
                            "properties": {
                              "seq": {
                                "type": "integer",
                                "minimum": 1
                              },
                              "image_id": {
                                "type": "string",
                                "maxLength": 64
                              },
                              "base_shot": {
                                "type": "string",
                                "maxLength": 48
                              },
                              "cut_in": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "cut_out": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "scale_start": {
                                "type": "number",
                                "minimum": 1,
                                "maximum": 1.12
                              },
                              "scale_end": {
                                "type": "number",
                                "minimum": 1,
                                "maximum": 1.12
                              }
                            }
                          }
                        },
                        "cuts": {
                          "type": "array",
                          "maxItems": 40,
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "from_seq",
                              "to_seq",
                              "at",
                              "effect"
                            ],
                            "properties": {
                              "from_seq": {
                                "type": "integer",
                                "minimum": 1
                              },
                              "to_seq": {
                                "type": "integer",
                                "minimum": 1
                              },
                              "at": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "effect": {
                                "type": "string",
                                "maxLength": 48
                              },
                              "rotation_degrees": {
                                "type": "integer",
                                "minimum": 1,
                                "maximum": 45
                              },
                              "prompt": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 600
                              }
                            }
                          }
                        },
                        "journey_note": {
                          "type": "string",
                          "maxLength": 240
                        }
                      }
                    }
                  },
                  "required": [
                    "output"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "alias": "oneup/text-shot-plan-repair",
                  "output": {
                    "project_id": "job-1",
                    "images": [
                      {
                        "image_id": "img_001",
                        "room_type": "exterior_front",
                        "use": true,
                        "hero": true,
                        "focal": {
                          "x": 0.5,
                          "y": 0.42
                        },
                        "crop_safe": "high",
                        "direction": "neutral",
                        "reject_reason": null
                      }
                    ],
                    "timeline": [
                      {
                        "seq": 1,
                        "image_id": "img_001",
                        "base_shot": "hero_hold",
                        "cut_in": 0,
                        "cut_out": 2,
                        "scale_start": 1,
                        "scale_end": 1.06
                      }
                    ],
                    "cuts": [],
                    "journey_note": "Opens on the front of the house and holds on it."
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error: `invalid_request`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Error: `out_of_credits`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`, `account_frozen`, `credit_debt`, `entitlement_required`, `plan_required`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error: `not_found`, `unknown_model`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error: `idempotency_conflict`, `result_expired`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Error: `model_retired`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error: `payload_too_large`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error: `invalid_input`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `daily_limit_reached`, `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Error: `upstream_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Error: `unavailable`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/run/oneup/text-video-ideas": {
      "post": {
        "tags": [
          "Run a model (answer now)"
        ],
        "operationId": "run_text_video_ideas",
        "summary": "Get five video ideas",
        "description": "Suggests 5 short-video ideas for a local business, each with a structure map (beats on a timeline), fitted to its business type, places and searches. The picked idea's script is included. Params: language, agent, business, places, month, and optional searches / ranking / recent_topics / results / best_topics. Live price: GET /v1/models.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "language",
                  "agent",
                  "business",
                  "places",
                  "month"
                ],
                "properties": {
                  "language": {
                    "enum": [
                      "en",
                      "es"
                    ]
                  },
                  "agent": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "slug",
                      "kind",
                      "lengths"
                    ],
                    "properties": {
                      "slug": {
                        "type": "string",
                        "pattern": "^[a-z0-9][a-z0-9-]{0,63}$",
                        "maxLength": 64
                      },
                      "kind": {
                        "type": "string",
                        "maxLength": 80,
                        "minLength": 1
                      },
                      "lengths": {
                        "type": "array",
                        "minItems": 0,
                        "maxItems": 6,
                        "items": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 3600
                        }
                      }
                    }
                  },
                  "business": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "name",
                      "vertical"
                    ],
                    "properties": {
                      "name": {
                        "type": "string",
                        "maxLength": 80,
                        "minLength": 1
                      },
                      "vertical": {
                        "type": "string",
                        "maxLength": 60,
                        "minLength": 1
                      }
                    }
                  },
                  "places": {
                    "type": "array",
                    "maxItems": 6,
                    "items": {
                      "type": "string",
                      "maxLength": 60,
                      "minLength": 1
                    }
                  },
                  "searches": {
                    "type": "array",
                    "maxItems": 10,
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "phrase"
                      ],
                      "properties": {
                        "phrase": {
                          "type": "string",
                          "maxLength": 80,
                          "minLength": 2
                        },
                        "volume": {
                          "type": "integer",
                          "minimum": 0
                        }
                      }
                    }
                  },
                  "ranking": {
                    "type": "array",
                    "maxItems": 10,
                    "items": {
                      "type": "string",
                      "maxLength": 100,
                      "minLength": 1
                    }
                  },
                  "recent_topics": {
                    "type": "array",
                    "maxItems": 10,
                    "items": {
                      "type": "string",
                      "maxLength": 200,
                      "minLength": 1
                    }
                  },
                  "month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 12
                  },
                  "results": {
                    "type": "array",
                    "maxItems": 20,
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "kind_id",
                        "hook_type",
                        "length",
                        "posts",
                        "views",
                        "link_clicks"
                      ],
                      "properties": {
                        "kind_id": {
                          "enum": [
                            "tips",
                            "market_update",
                            "day_in_the_life",
                            "listing",
                            "myth_or_fact",
                            "question",
                            "story",
                            "offer",
                            "other"
                          ]
                        },
                        "hook_type": {
                          "enum": [
                            "question",
                            "bold_claim",
                            "local_callout",
                            "warning",
                            "surprise",
                            "list",
                            "story",
                            "other"
                          ]
                        },
                        "length": {
                          "type": "string",
                          "maxLength": 20,
                          "minLength": 1
                        },
                        "cta_kind": {
                          "type": "string",
                          "maxLength": 20
                        },
                        "posts": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 999999999999
                        },
                        "views": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 999999999999
                        },
                        "link_clicks": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 999999999999
                        }
                      }
                    }
                  },
                  "best_topics": {
                    "type": "array",
                    "maxItems": 3,
                    "items": {
                      "type": "string",
                      "maxLength": 200,
                      "minLength": 1
                    }
                  },
                  "label": {
                    "type": "string",
                    "description": "Optional. A name for this job and every file it makes, shown on your account page and used as the download name. Never sent to the model.",
                    "pattern": "^[A-Za-z0-9._-]{1,80}$"
                  }
                }
              },
              "example": {
                "language": "en",
                "agent": {
                  "slug": "oneuplisting",
                  "kind": "Property walk-through",
                  "lengths": [
                    30,
                    60
                  ]
                },
                "business": {
                  "name": "Harbor Yachts",
                  "vertical": "Yacht broker"
                },
                "places": [
                  "Fort Lauderdale"
                ],
                "searches": [
                  {
                    "phrase": "yacht broker fort lauderdale",
                    "volume": 480
                  }
                ],
                "month": 10
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer, as `{alias, output}`. A retry with the same Idempotency-Key within 15 minutes returns the same `output` with `replayed: true`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "alias": {
                      "type": "string",
                      "description": "The model that answered."
                    },
                    "replayed": {
                      "type": "boolean",
                      "description": "Only on a retry: the first answer, sent again."
                    },
                    "output": {
                      "type": "object",
                      "required": [
                        "batch_id",
                        "ideas"
                      ],
                      "properties": {
                        "batch_id": {
                          "type": "string",
                          "pattern": "^ib_[A-Za-z0-9_-]{16}$"
                        },
                        "ideas": {
                          "type": "array",
                          "minItems": 2,
                          "maxItems": 5,
                          "items": {
                            "type": "object",
                            "required": [
                              "topic",
                              "why",
                              "kind",
                              "kind_id",
                              "hook_type",
                              "seconds",
                              "beats"
                            ],
                            "properties": {
                              "topic": {
                                "type": "string",
                                "maxLength": 90,
                                "minLength": 1
                              },
                              "why": {
                                "type": "string",
                                "maxLength": 100
                              },
                              "kind": {
                                "type": "string",
                                "maxLength": 30
                              },
                              "kind_id": {
                                "enum": [
                                  "tips",
                                  "market_update",
                                  "day_in_the_life",
                                  "listing",
                                  "myth_or_fact",
                                  "question",
                                  "story",
                                  "offer",
                                  "other"
                                ]
                              },
                              "hook_type": {
                                "enum": [
                                  "question",
                                  "bold_claim",
                                  "local_callout",
                                  "warning",
                                  "surprise",
                                  "list",
                                  "story",
                                  "other"
                                ]
                              },
                              "seconds": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "minimum": 1
                              },
                              "beats": {
                                "type": "array",
                                "minItems": 3,
                                "maxItems": 5,
                                "items": {
                                  "type": "object",
                                  "required": [
                                    "label",
                                    "at_s",
                                    "direction"
                                  ],
                                  "properties": {
                                    "label": {
                                      "enum": [
                                        "hook",
                                        "build",
                                        "rehook",
                                        "proof",
                                        "payoff",
                                        "cta"
                                      ]
                                    },
                                    "at_s": {
                                      "type": [
                                        "integer",
                                        "null"
                                      ],
                                      "minimum": 0
                                    },
                                    "direction": {
                                      "type": "string",
                                      "maxLength": 50,
                                      "minLength": 1
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "output"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "alias": "oneup/text-video-ideas",
                  "output": {
                    "batch_id": "ib_Vq7Lx2Nc9Rt4Kb1W",
                    "ideas": [
                      {
                        "topic": "Three questions to ask before you buy a used yacht",
                        "why": "Buyers in Fort Lauderdale search for this every fall.",
                        "kind": "Tips",
                        "kind_id": "tips",
                        "hook_type": "question",
                        "seconds": 30,
                        "beats": [
                          {
                            "label": "hook",
                            "at_s": 0,
                            "direction": "Ask the first question to camera"
                          },
                          {
                            "label": "proof",
                            "at_s": 10,
                            "direction": "Show the survey report on deck"
                          },
                          {
                            "label": "cta",
                            "at_s": 25,
                            "direction": "Invite viewers to call for a tour"
                          }
                        ]
                      },
                      {
                        "topic": "What a yacht broker does on a sea trial",
                        "why": "Shows the work behind a sale, which builds trust.",
                        "kind": "Day in the life",
                        "kind_id": "day_in_the_life",
                        "hook_type": "surprise",
                        "seconds": 60,
                        "beats": [
                          {
                            "label": "hook",
                            "at_s": 0,
                            "direction": "Engine starts; say what most miss"
                          },
                          {
                            "label": "build",
                            "at_s": 15,
                            "direction": "Walk the checklist at the helm"
                          },
                          {
                            "label": "payoff",
                            "at_s": 45,
                            "direction": "Hand over the keys at the dock"
                          }
                        ]
                      }
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error: `invalid_request`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Error: `out_of_credits`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`, `account_frozen`, `credit_debt`, `entitlement_required`, `plan_required`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error: `not_found`, `unknown_model`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error: `idempotency_conflict`, `result_expired`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Error: `model_retired`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error: `payload_too_large`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error: `invalid_input`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `daily_limit_reached`, `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Error: `upstream_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Error: `unavailable`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/run/oneup/web-read-article": {
      "post": {
        "tags": [
          "Run a model (answer now)"
        ],
        "operationId": "run_web_read_article",
        "summary": "Read a web article",
        "description": "Reads a public web article and returns its title, site, byline and readable text (up to 16,000 characters). Params: url. Listing sites go through the property-listing reader instead. Live price: GET /v1/models.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "url"
                ],
                "properties": {
                  "url": {
                    "type": "string",
                    "maxLength": 500,
                    "description": "The public article's address (https). A listing site is refused by name (use the listing reader); anything unreadable is refunded."
                  },
                  "label": {
                    "type": "string",
                    "description": "Optional. A name for this job and every file it makes, shown on your account page and used as the download name. Never sent to the model.",
                    "pattern": "^[A-Za-z0-9._-]{1,80}$"
                  }
                }
              },
              "example": {
                "url": "https://www.example.com/news/2026/09/15/a-public-article"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer, as `{alias, output}`. A retry with the same Idempotency-Key within 15 minutes returns the same `output` with `replayed: true`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "alias": {
                      "type": "string",
                      "description": "The model that answered."
                    },
                    "replayed": {
                      "type": "boolean",
                      "description": "Only on a retry: the first answer, sent again."
                    },
                    "output": {
                      "type": "object",
                      "additionalProperties": true,
                      "required": [
                        "title",
                        "site",
                        "text",
                        "images",
                        "extraction_id"
                      ],
                      "properties": {
                        "title": {
                          "type": "string"
                        },
                        "site": {
                          "type": "string"
                        },
                        "byline": {
                          "type": "string"
                        },
                        "published": {
                          "type": "string"
                        },
                        "text": {
                          "type": "string"
                        },
                        "images": {
                          "type": "array",
                          "maxItems": 8,
                          "items": {
                            "type": "object",
                            "additionalProperties": true,
                            "required": [
                              "url"
                            ],
                            "properties": {
                              "url": {
                                "type": "string"
                              },
                              "width": {
                                "type": "integer"
                              },
                              "height": {
                                "type": "integer"
                              },
                              "alt": {
                                "type": "string"
                              }
                            }
                          },
                          "description": "The page's own pictures, the lead first, small furniture dropped; bring the ones you keep into your custody with POST /v1/uploads/from-extraction."
                        },
                        "extraction_id": {
                          "type": "string",
                          "description": "Binds these picture addresses to you for an hour for POST /v1/uploads/from-extraction."
                        }
                      }
                    }
                  },
                  "required": [
                    "output"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "alias": "oneup/web-read-article",
                  "output": {
                    "title": "City opens a new riverside park",
                    "site": "Example News",
                    "byline": "Jordan Lee",
                    "published": "2026-09-15",
                    "text": "The city opened its new riverside park on Saturday, with two miles of trail, a playground and a boat launch. …",
                    "images": [
                      {
                        "url": "https://www.example.com/images/park-lead.jpg",
                        "width": 1600,
                        "height": 900,
                        "alt": "Families walking on the new riverside trail"
                      }
                    ],
                    "extraction_id": "oneup_extract_Tb7Kq2Wm9Rx4Nc1Vz8Ld3Hp6Gs"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error: `invalid_request`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Error: `out_of_credits`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`, `account_frozen`, `credit_debt`, `entitlement_required`, `plan_required`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error: `not_found`, `unknown_model`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error: `idempotency_conflict`, `result_expired`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Error: `model_retired`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error: `payload_too_large`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error: `invalid_input`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `daily_limit_reached`, `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Error: `upstream_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Error: `unavailable`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/run/oneup/web-read-listing": {
      "post": {
        "tags": [
          "Run a model (answer now)"
        ],
        "operationId": "run_web_read_listing",
        "summary": "Read a property listing",
        "description": "Reads a public property listing (Zillow, Realtor.com, Redfin, FurnishedFinder) and returns its facts, description and photo addresses. Params: url. Photos are not fetched by this capability. Live price: GET /v1/models.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "url"
                ],
                "properties": {
                  "url": {
                    "type": "string",
                    "maxLength": 500,
                    "description": "The public listing address (https) on Zillow, Realtor.com, Redfin or FurnishedFinder. Supported sources are resolved from the host; anything else is refused by name before any charge."
                  },
                  "label": {
                    "type": "string",
                    "description": "Optional. A name for this job and every file it makes, shown on your account page and used as the download name. Never sent to the model.",
                    "pattern": "^[A-Za-z0-9._-]{1,80}$"
                  }
                }
              },
              "example": {
                "url": "https://www.zillow.com/homedetails/205-Spanton-Cres-Pooler-GA-31322/248662806_zpid/"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer, as `{alias, output}`. A retry with the same Idempotency-Key within 15 minutes returns the same `output` with `replayed: true`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "alias": {
                      "type": "string",
                      "description": "The model that answered."
                    },
                    "replayed": {
                      "type": "boolean",
                      "description": "Only on a retry: the first answer, sent again."
                    },
                    "output": {
                      "type": "object",
                      "additionalProperties": true,
                      "required": [
                        "facts",
                        "description",
                        "photos",
                        "extraction_id"
                      ],
                      "properties": {
                        "facts": {
                          "type": "object",
                          "additionalProperties": true,
                          "required": [
                            "address",
                            "price",
                            "beds",
                            "baths"
                          ],
                          "properties": {
                            "address": {
                              "type": "string"
                            },
                            "price": {
                              "type": "string"
                            },
                            "beds": {
                              "type": "string"
                            },
                            "baths": {
                              "type": "string"
                            },
                            "sqft": {
                              "type": "number"
                            }
                          }
                        },
                        "description": {
                          "type": "string"
                        },
                        "photos": {
                          "type": "array",
                          "minItems": 1,
                          "items": {
                            "type": "object",
                            "additionalProperties": true,
                            "required": [
                              "url"
                            ],
                            "properties": {
                              "url": {
                                "type": "string"
                              },
                              "width": {
                                "type": "number"
                              },
                              "height": {
                                "type": "number"
                              }
                            }
                          }
                        },
                        "extraction_id": {
                          "type": "string",
                          "description": "Names this result for POST /v1/uploads/from-extraction for one hour; only the photo addresses in this result may be ingested with it."
                        }
                      }
                    }
                  },
                  "required": [
                    "output"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "alias": "oneup/web-read-listing",
                  "output": {
                    "facts": {
                      "address": "205 Spanton Cres, Pooler, GA 31322",
                      "price": "$389,900",
                      "beds": "4",
                      "baths": "3",
                      "sqft": 2456
                    },
                    "description": "Bright four-bedroom home on a quiet crescent, with an open kitchen, a screened porch and a fenced back yard.",
                    "photos": [
                      {
                        "url": "https://photos.example.com/205-spanton/1.jpg",
                        "width": 1536,
                        "height": 1024
                      },
                      {
                        "url": "https://photos.example.com/205-spanton/2.jpg",
                        "width": 1536,
                        "height": 1024
                      }
                    ],
                    "extraction_id": "oneup_extract_Hq3Nw8Zr1Kt6Vb4Xm9Lc2Pd7Sy"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error: `invalid_request`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Error: `out_of_credits`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`, `account_frozen`, `credit_debt`, `entitlement_required`, `plan_required`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error: `not_found`, `unknown_model`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error: `idempotency_conflict`, `result_expired`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Error: `model_retired`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error: `payload_too_large`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error: `invalid_input`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `daily_limit_reached`, `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Error: `upstream_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Error: `unavailable`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/transcripts": {
      "post": {
        "tags": [
          "Projects"
        ],
        "operationId": "createTranscript",
        "summary": "Upload a word-timed transcript for captions",
        "security": [
          {
            "apiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Transcript"
              },
              "example": {
                "words": [
                  {
                    "text": "Welcome",
                    "from": 0,
                    "to": 420
                  },
                  {
                    "text": "home.",
                    "from": 420,
                    "to": 900
                  },
                  {
                    "text": "Three",
                    "from": 1100,
                    "to": 1420
                  },
                  {
                    "text": "bedrooms.",
                    "from": 1420,
                    "to": 2050
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Stored.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranscriptStored"
                },
                "example": {
                  "annotation_id": "5a1d7c3e-2b9f-4e6a-8d4c-7f1b3e5a9c20",
                  "words": 4,
                  "bytes": 167
                }
              }
            }
          },
          "400": {
            "description": "Error: `invalid_request`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`, `account_frozen`, `credit_debt`, `entitlement_required`, `plan_required`, `storage_quota_exceeded`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error: `payload_too_large`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Error: `unavailable`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/transcripts/{annotation_id}": {
      "get": {
        "tags": [
          "Projects"
        ],
        "operationId": "getTranscript",
        "summary": "Read a transcript",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "annotation_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The transcript.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranscriptRead"
                },
                "example": {
                  "annotation_id": "5a1d7c3e-2b9f-4e6a-8d4c-7f1b3e5a9c20",
                  "words": [
                    {
                      "text": "Welcome",
                      "from": 0,
                      "to": 420
                    },
                    {
                      "text": "home.",
                      "from": 420,
                      "to": 900
                    },
                    {
                      "text": "Three",
                      "from": 1100,
                      "to": 1420
                    },
                    {
                      "text": "bedrooms.",
                      "from": 1420,
                      "to": 2050
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error: `not_found`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Error: `unavailable`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Projects"
        ],
        "operationId": "deleteTranscript",
        "summary": "Delete a transcript",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "annotation_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Deleted"
                },
                "example": {
                  "deleted": true
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error: `not_found`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/uploads": {
      "get": {
        "tags": [
          "Uploads"
        ],
        "operationId": "listUploads",
        "summary": "Your uploaded files, newest first",
        "description": "Your stored uploads with their size, length and sound where measured. No links here; ask POST /v1/uploads/urls for them.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Limit"
          },
          {
            "$ref": "#/components/parameters/Cursor"
          },
          {
            "$ref": "#/components/parameters/Origin"
          },
          {
            "$ref": "#/components/parameters/UploadKind"
          }
        ],
        "responses": {
          "200": {
            "description": "A page of uploads.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UploadList"
                },
                "example": {
                  "uploads": [
                    {
                      "upload_id": "oneup_upload_4Rk8TzQ1mWc7Yp2NvLx9Bf3HsD",
                      "content_type": "video/mp4",
                      "size_bytes": 8412330,
                      "created_at": "2026-10-08T13:58:40.112Z",
                      "width": 1080,
                      "height": 1920,
                      "duration_ms": 14520,
                      "has_audio": true
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Error: `invalid_request`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/uploads/from-extraction": {
      "post": {
        "tags": [
          "Uploads"
        ],
        "operationId": "uploadFromExtraction",
        "summary": "Keep pictures from a page you read",
        "description": "No credits. Only addresses from your own page read are accepted.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FromExtraction"
              },
              "example": {
                "extraction_id": "oneup_extract_Hq3Nw8Zr1Kt6Vb4Xm9Lc2Pd7Sy",
                "urls": [
                  "https://photos.example.com/205-spanton/1.jpg",
                  "https://photos.example.com/205-spanton/2.jpg"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "What was imported and what was skipped.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImportResult"
                },
                "example": {
                  "uploads": [
                    {
                      "url": "https://photos.example.com/205-spanton/1.jpg",
                      "upload_id": "oneup_upload_4Rk8TzQ1mWc7Yp2NvLx9Bf3HsD",
                      "file_url": "https://media.oneupai.com/u/oneup_upload_4Rk8TzQ1mWc7Yp2NvLx9Bf3HsD/1791523800/Wq4zR7cN2vB9xL1kT6mP3sY8dF5gH0jA7eU2iO9nZ4c",
                      "bytes": 486112,
                      "content_type": "image/jpeg"
                    }
                  ],
                  "skipped": [
                    {
                      "url": "https://photos.example.com/205-spanton/2.jpg",
                      "reason": "source_gone"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Error: `invalid_request`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`, `account_frozen`, `credit_debt`, `entitlement_required`, `plan_required`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error: `payload_too_large`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Error: `unavailable`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/uploads/from-url": {
      "post": {
        "tags": [
          "Uploads"
        ],
        "operationId": "uploadFromUrl",
        "summary": "Import pictures by address",
        "description": "No credits. https on the standard port only; the bytes count toward your storage.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FromUrl"
              },
              "example": {
                "urls": [
                  "https://photos.example.com/kitchen.jpg"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "What was imported and what was skipped.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImportResult"
                },
                "example": {
                  "uploads": [
                    {
                      "url": "https://photos.example.com/kitchen.jpg",
                      "upload_id": "oneup_upload_9Jd2LqV6tHn4Xw8ZbR1cMk5PyG",
                      "file_url": "https://media.oneupai.com/u/oneup_upload_9Jd2LqV6tHn4Xw8ZbR1cMk5PyG/1791523800/Wq4zR7cN2vB9xL1kT6mP3sY8dF5gH0jA7eU2iO9nZ4c",
                      "bytes": 352871,
                      "content_type": "image/jpeg"
                    }
                  ],
                  "skipped": []
                }
              }
            }
          },
          "400": {
            "description": "Error: `invalid_request`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`, `account_frozen`, `credit_debt`, `entitlement_required`, `plan_required`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error: `payload_too_large`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Error: `unavailable`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/uploads/holds/{hold}": {
      "put": {
        "tags": [
          "Uploads"
        ],
        "operationId": "holdUploads",
        "summary": "Keep uploads past 30 days under a name",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "hold",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UploadIds"
              },
              "example": {
                "upload_ids": [
                  "oneup_upload_4Rk8TzQ1mWc7Yp2NvLx9Bf3HsD",
                  "oneup_upload_9Jd2LqV6tHn4Xw8ZbR1cMk5PyG"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Held, and any id that is not yours or no longer exists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HoldResult"
                },
                "example": {
                  "held": [
                    "oneup_upload_4Rk8TzQ1mWc7Yp2NvLx9Bf3HsD",
                    "oneup_upload_9Jd2LqV6tHn4Xw8ZbR1cMk5PyG"
                  ],
                  "missing": []
                }
              }
            }
          },
          "400": {
            "description": "Error: `invalid_request`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`, `account_frozen`, `credit_debt`, `entitlement_required`, `plan_required`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error: `payload_too_large`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Error: `unavailable`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Uploads"
        ],
        "operationId": "releaseHold",
        "summary": "Release a hold",
        "description": "Always 204; touches only your own holds.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "hold",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Released."
          },
          "400": {
            "description": "Error: `invalid_request`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/uploads/initiate": {
      "post": {
        "tags": [
          "Uploads"
        ],
        "operationId": "initiateUpload",
        "summary": "Get an address to upload a file to",
        "description": "No credits. PUT the bytes to `upload_url`, then use `file_url` in a submit. Uploads count toward your storage and stay until you delete them.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UploadInitiate"
              },
              "example": {
                "content_type": "image/jpeg",
                "file_name": "before.jpg",
                "size_bytes": 2450000
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Where to put the file.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UploadTarget"
                },
                "example": {
                  "upload_id": "oneup_upload_4Rk8TzQ1mWc7Yp2NvLx9Bf3HsD",
                  "upload_url": "https://media.oneupai.com/o/oneup_upload_4Rk8TzQ1mWc7Yp2NvLx9Bf3HsD/1791437600/2450000/Qm7yT2vX9kL4pR1sW8nB3cZ6dF0gH5jK2aE7uY9iO4q",
                  "file_url": "https://media.oneupai.com/u/oneup_upload_4Rk8TzQ1mWc7Yp2NvLx9Bf3HsD/1791523800/Wq4zR7cN2vB9xL1kT6mP3sY8dF5gH0jA7eU2iO9nZ4c"
                }
              }
            }
          },
          "400": {
            "description": "Error: `invalid_request`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`, `account_frozen`, `credit_debt`, `entitlement_required`, `plan_required`, `storage_quota_exceeded`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error: `payload_too_large`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Error: `unavailable`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/uploads/urls": {
      "post": {
        "tags": [
          "Uploads"
        ],
        "operationId": "uploadUrls",
        "summary": "Fresh addresses for uploads you kept",
        "security": [
          {
            "apiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UploadIds"
              },
              "example": {
                "upload_ids": [
                  "oneup_upload_4Rk8TzQ1mWc7Yp2NvLx9Bf3HsD"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "A fresh 24-hour address for each of your uploads.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UploadUrls"
                },
                "example": {
                  "uploads": [
                    {
                      "upload_id": "oneup_upload_4Rk8TzQ1mWc7Yp2NvLx9Bf3HsD",
                      "file_url": "https://media.oneupai.com/u/oneup_upload_4Rk8TzQ1mWc7Yp2NvLx9Bf3HsD/1791523800/Wq4zR7cN2vB9xL1kT6mP3sY8dF5gH0jA7eU2iO9nZ4c",
                      "content_type": "image/jpeg",
                      "size_bytes": 2450000,
                      "duration_ms": null
                    }
                  ],
                  "missing": []
                }
              }
            }
          },
          "400": {
            "description": "Error: `invalid_request`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error: `payload_too_large`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/uploads/{upload_id}": {
      "delete": {
        "tags": [
          "Uploads"
        ],
        "operationId": "deleteUpload",
        "summary": "Delete one of your uploads, for good",
        "description": "No credits. Refused with `upload_in_use`, and nothing deleted, while a hold, your Brand Kit or a job still running names the upload. `release` names your own holds that go with it; a hold not named still refuses.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "upload_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "release",
            "in": "query",
            "required": false,
            "description": "Your own hold names that go with the upload, comma separated (at most 100).",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Deleted (or already gone).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "ok": true
                }
              }
            }
          },
          "400": {
            "description": "Error: `invalid_request`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error: `not_found`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error: `upload_in_use`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Error: `unavailable`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/uploads/{upload_id}/uses": {
      "get": {
        "tags": [
          "Uploads"
        ],
        "operationId": "uploadUses",
        "summary": "What still uses one of your uploads",
        "description": "No credits. The uses a delete would refuse on, read without deleting, and your hold names that keep it.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "upload_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Its uses (none: it can be deleted).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reasons": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "held",
                          "brand_kit",
                          "in_progress"
                        ]
                      }
                    },
                    "holds": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "reasons",
                    "holds"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "reasons": [],
                  "holds": []
                }
              }
            }
          },
          "401": {
            "description": "Error: `invalid_key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error: `account_disabled`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error: `not_found`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error: `rate_limited`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error: `internal_error`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Error: `unavailable`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "apiKey": {
        "type": "http",
        "scheme": "bearer",
        "description": "Your API key, sent as `Authorization: Bearer <key>`. Only a key from a plan with API access (Concierge or Concierge Plus) can call the API. Keep it on your server; it is shown once."
      }
    },
    "headers": {
      "RetryAfter": {
        "description": "Seconds to wait. Retry with the same Idempotency-Key.",
        "schema": {
          "type": "integer"
        }
      }
    },
    "parameters": {
      "IdempotencyKey": {
        "name": "Idempotency-Key",
        "in": "header",
        "required": true,
        "description": "A unique value you make for each new job (a UUID works). Sending the same key with the same body again returns the same job and never charges twice; the same key with a different body is `idempotency_conflict`.",
        "schema": {
          "type": "string",
          "minLength": 1
        }
      },
      "Ticket": {
        "name": "ticket",
        "in": "path",
        "required": true,
        "schema": {
          "type": "string"
        }
      },
      "Limit": {
        "name": "limit",
        "in": "query",
        "required": false,
        "schema": {
          "type": "integer",
          "minimum": 1,
          "maximum": 50
        }
      },
      "Offset": {
        "name": "offset",
        "in": "query",
        "required": false,
        "schema": {
          "type": "integer",
          "minimum": 0
        }
      },
      "Cursor": {
        "name": "cursor",
        "in": "query",
        "required": false,
        "schema": {
          "type": "string"
        }
      },
      "Origin": {
        "name": "origin",
        "in": "query",
        "required": false,
        "description": "`member`: only what you uploaded or made, never a file made for you by the service itself.",
        "schema": {
          "type": "string",
          "enum": [
            "member"
          ]
        }
      },
      "UploadKind": {
        "name": "kind",
        "in": "query",
        "required": false,
        "description": "`audio`, `video` or `image`: only uploads of that kind, so a page and its cursor count those only.",
        "schema": {
          "type": "string",
          "enum": [
            "audio",
            "video",
            "image"
          ]
        }
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "description": "Branch on `error`, never on `message`. Codes never change and are never translated.",
        "properties": {
          "error": {
            "type": "string",
            "description": "A stable code.",
            "enum": [
              "invalid_request",
              "invalid_key",
              "out_of_credits",
              "entitlement_required",
              "plan_required",
              "account_frozen",
              "account_disabled",
              "credit_debt",
              "storage_quota_exceeded",
              "unknown_model",
              "not_found",
              "idempotency_conflict",
              "result_expired",
              "model_retired",
              "payload_too_large",
              "invalid_input",
              "rate_limited",
              "daily_limit_reached",
              "internal_error",
              "upstream_error",
              "unavailable",
              "version_conflict",
              "operation_unavailable",
              "preview_quota_exhausted",
              "allowance_exhausted",
              "territory_reserved",
              "upload_in_use",
              "content_quarantined",
              "team_access_unavailable",
              "team_access_not_allowed",
              "team_access_ended"
            ]
          },
          "message": {
            "type": "string",
            "description": "A short English explanation."
          },
          "detail": {
            "type": "string",
            "description": "More about what was wrong, when we can say."
          }
        },
        "required": [
          "error",
          "message"
        ],
        "additionalProperties": true
      },
      "Status": {
        "type": "string",
        "description": "PENDING and UNCERTAIN mean keep polling: we are confirming the job was accepted, and you are never charged twice. FAILED means any charge was refunded.",
        "enum": [
          "PENDING",
          "UNCERTAIN",
          "QUEUED",
          "IN_PROGRESS",
          "FINALIZING",
          "COMPLETED",
          "FAILED"
        ]
      },
      "Page": {
        "type": "object",
        "properties": {
          "limit": {
            "type": "integer"
          },
          "offset": {
            "type": "integer"
          },
          "has_more": {
            "type": "boolean"
          }
        },
        "required": [
          "limit",
          "offset",
          "has_more"
        ],
        "additionalProperties": false
      },
      "Me": {
        "type": "object",
        "properties": {
          "entitlement": {
            "type": "string",
            "enum": [
              "active",
              "grace",
              "lapsed",
              "frozen"
            ]
          },
          "plan": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "credits": {
            "type": "object",
            "properties": {
              "period": {
                "type": "integer",
                "description": "Credits from this month's plan."
              },
              "promo": {
                "type": "integer"
              },
              "topup": {
                "type": "integer"
              },
              "total": {
                "type": "integer"
              }
            },
            "required": [
              "period",
              "promo",
              "topup",
              "total"
            ],
            "additionalProperties": false
          },
          "credit_debt": {
            "type": "integer"
          },
          "period_end": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "cancel_at_period_end": {
            "type": "boolean",
            "description": "True when the plan is set to end at `period_end` instead of renewing."
          },
          "grace_expires_at": {
            "type": "string",
            "format": "date-time"
          },
          "storage": {
            "type": "object",
            "properties": {
              "used_bytes": {
                "type": "integer"
              },
              "quota_gb": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "used_bytes",
              "quota_gb"
            ],
            "additionalProperties": false
          },
          "used_this_period": {
            "type": "object",
            "properties": {
              "credits": {
                "type": "integer",
                "description": "Charged this billing period, net of refunds."
              },
              "jobs": {
                "type": "integer"
              }
            },
            "required": [
              "credits",
              "jobs"
            ],
            "additionalProperties": false
          },
          "plan_name": {
            "anyOf": [
              {
                "type": "string",
                "description": "The plan's name; `plan` is its id."
              },
              {
                "type": "null"
              }
            ]
          },
          "perks": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "A code for something the plan includes: `email_support`, `content_help`, `account_manager` or `monthly_call`. Empty when the account has no active plan."
            }
          },
          "support": {
            "type": "object",
            "properties": {
              "contact_url": {
                "type": "string",
                "description": "Where to reach us."
              },
              "whatsapp_url": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Always null. Kept so older clients keep working."
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "contact_url",
              "whatsapp_url"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "entitlement",
          "plan",
          "credits",
          "credit_debt",
          "period_end",
          "storage"
        ],
        "additionalProperties": false
      },
      "PlanList": {
        "type": "object",
        "properties": {
          "plans": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "Never renamed."
                },
                "name": {
                  "type": "string"
                },
                "price_cents": {
                  "type": "integer"
                },
                "monthly_credits": {
                  "type": "integer"
                },
                "storage_gb": {
                  "type": "integer"
                },
                "api_access": {
                  "type": "boolean",
                  "description": "The plan can make API keys."
                },
                "social_accounts": {
                  "type": "integer",
                  "description": "How many social accounts the plan can connect."
                },
                "perks": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "description": "A code for something the plan includes: `email_support`, `content_help`, `account_manager` or `monthly_call`."
                  }
                },
                "offered": {
                  "type": "boolean",
                  "description": "The plan is sold to new members. A plan no longer offered stays on the list for the members already on it."
                }
              },
              "required": [
                "id",
                "name",
                "price_cents",
                "monthly_credits"
              ],
              "additionalProperties": false
            }
          },
          "packs": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "price_cents": {
                  "type": "integer"
                },
                "credits": {
                  "type": "integer"
                },
                "on_sale": {
                  "type": "boolean",
                  "description": "The pack can be bought now."
                }
              },
              "required": [
                "price_cents",
                "credits"
              ],
              "additionalProperties": false
            },
            "description": "The credit packs, smallest first."
          }
        },
        "required": [
          "plans"
        ],
        "additionalProperties": false
      },
      "ModelList": {
        "type": "object",
        "properties": {
          "models": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Model"
            }
          }
        },
        "required": [
          "models"
        ],
        "additionalProperties": false,
        "description": "Building blocks first, then render, then Agent steps; by name within each group."
      },
      "Model": {
        "type": "object",
        "properties": {
          "alias": {
            "type": "string",
            "description": "The model's name. Use it in the path of a submit."
          },
          "name": {
            "type": "object",
            "properties": {
              "en": {
                "type": "string"
              },
              "es": {
                "type": "string"
              }
            },
            "required": [
              "en",
              "es"
            ],
            "additionalProperties": false,
            "description": "The model's display name."
          },
          "group": {
            "type": "string",
            "description": "`building_block`: makes or changes media. `render`: assembles a finished video from a Timeline. `agent_step`: a text or planning step built for a specific recipe.",
            "enum": [
              "building_block",
              "render",
              "agent_step"
            ]
          },
          "status": {
            "type": "string",
            "description": "`active`, or `deprecated` with `replaced_by` and `deprecated_until`.",
            "enum": [
              "active",
              "deprecated"
            ]
          },
          "replaced_by": {
            "type": "string",
            "description": "Deprecated only: the model to move to."
          },
          "deprecated_until": {
            "type": "string",
            "description": "Deprecated only: until then it keeps working; after, it answers 410 model_retired.",
            "format": "date-time"
          },
          "previously": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Names this model had before, for search."
          },
          "version": {
            "type": "integer"
          },
          "category": {
            "type": "string"
          },
          "execution": {
            "type": "string",
            "description": "`queue`: submit and poll. `sync`: the answer comes back in the response. `render`: use POST /v1/renders.",
            "enum": [
              "queue",
              "sync",
              "render"
            ]
          },
          "description": {
            "type": "object",
            "properties": {
              "en": {
                "type": "string"
              },
              "es": {
                "type": "string"
              }
            },
            "required": [
              "en",
              "es"
            ],
            "additionalProperties": false
          },
          "example_input": {},
          "input_schema": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "output_schema": {
            "anyOf": [
              {
                "type": "object",
                "description": "What a finished job returns."
              },
              {
                "type": "null"
              }
            ]
          },
          "input_modalities": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "text",
                "image",
                "video",
                "audio",
                "json"
              ]
            },
            "description": "What you send."
          },
          "output_modalities": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "text",
                "image",
                "video",
                "audio",
                "json"
              ]
            },
            "description": "What comes back."
          },
          "limits": {
            "type": "object",
            "properties": {
              "request_chars": {
                "type": "integer",
                "description": "The whole request, as sent, in characters."
              },
              "chars": {
                "type": "object",
                "description": "Text inputs by name: characters.",
                "additionalProperties": {
                  "type": "object",
                  "properties": {
                    "min": {
                      "type": "number"
                    },
                    "max": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "max"
                  ],
                  "additionalProperties": false
                }
              },
              "items": {
                "type": "object",
                "description": "List inputs by name: how many items.",
                "additionalProperties": {
                  "type": "object",
                  "properties": {
                    "min": {
                      "type": "number"
                    },
                    "max": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "max"
                  ],
                  "additionalProperties": false
                }
              },
              "duration_s": {
                "description": "Clip lengths you may ask for, in seconds: a list of choices or a range.",
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "number"
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "min": {
                        "type": "number"
                      },
                      "max": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "max"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "image_side_px": {
                "type": "object",
                "properties": {
                  "min": {
                    "type": "number"
                  },
                  "max": {
                    "type": "number"
                  }
                },
                "required": [
                  "max"
                ],
                "additionalProperties": false,
                "description": "Picture width and height, in pixels."
              },
              "megapixels": {
                "type": "object",
                "properties": {
                  "min": {
                    "type": "number"
                  },
                  "max": {
                    "type": "number"
                  }
                },
                "required": [
                  "max"
                ],
                "additionalProperties": false,
                "description": "Billed megapixels."
              },
              "aspect_ratios": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "resolutions": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "media_s": {
                "type": "object",
                "properties": {
                  "min": {
                    "type": "number"
                  },
                  "max": {
                    "type": "number"
                  }
                },
                "required": [
                  "max"
                ],
                "additionalProperties": false,
                "description": "Your media input's measured length, in seconds."
              },
              "media_minutes": {
                "type": "object",
                "properties": {
                  "min": {
                    "type": "number"
                  },
                  "max": {
                    "type": "number"
                  }
                },
                "required": [
                  "max"
                ],
                "additionalProperties": false,
                "description": "Your media input's measured length, in started minutes."
              },
              "upload_bytes_max": {
                "type": "integer",
                "description": "The largest file one upload may be."
              },
              "output_s": {
                "type": "object",
                "properties": {
                  "min": {
                    "type": "number"
                  },
                  "max": {
                    "type": "number"
                  }
                },
                "required": [
                  "max"
                ],
                "additionalProperties": false,
                "description": "A final's length, in seconds."
              },
              "fps": {
                "type": "object",
                "properties": {
                  "min": {
                    "type": "number"
                  },
                  "max": {
                    "type": "number"
                  }
                },
                "required": [
                  "max"
                ],
                "additionalProperties": false,
                "description": "Frame rates a Timeline may ask for."
              }
            },
            "additionalProperties": false,
            "description": "Machine-readable bounds; only those that apply are present."
          },
          "output": {
            "type": "object",
            "properties": {
              "summary": {
                "type": "object",
                "properties": {
                  "en": {
                    "type": "string"
                  },
                  "es": {
                    "type": "string"
                  }
                },
                "required": [
                  "en",
                  "es"
                ],
                "additionalProperties": false,
                "description": "What comes back, in words."
              },
              "delivery": {
                "type": "string",
                "description": "`file`: files on signed links. `annotation`: JSON on a signed link, named by id. `json`: in the response.",
                "enum": [
                  "file",
                  "annotation",
                  "json"
                ]
              },
              "type": {
                "type": "string",
                "description": "Media type (`image/*` when only the kind of file is fixed)."
              },
              "type_options": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Other types you may ask for."
              },
              "resolution": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "A fixed height (`720p`, `1080p`, `4k`…), or `as_requested`, `twice_input`, `same_as_input`, `double_width_of_input`."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "preview_resolution": {
                "type": "string",
                "description": "Render models: a Preview's resolution."
              },
              "fps": {
                "anyOf": [
                  {
                    "description": "Frames per second: a number, `same_as_input` or `as_timeline`.",
                    "type": [
                      "number",
                      "string"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "sound": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "link_expires_in_s": {
                "type": "integer",
                "description": "Seconds a link in the answer works; read it again for a fresh one."
              },
              "preview_kept_s": {
                "type": "integer",
                "description": "Render models: how long a finished Preview is kept."
              },
              "extraction_id_expires_in_s": {
                "type": "integer",
                "description": "How long the answer's extraction_id can be used."
              }
            },
            "required": [
              "summary",
              "delivery",
              "type"
            ],
            "additionalProperties": false,
            "description": "What comes back. A key is absent when it does not apply, and null when it is not fixed."
          },
          "run_time": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "p50_s": {
                    "type": "number",
                    "description": "Typical seconds from accepted to finished."
                  },
                  "p95_s": {
                    "type": "number",
                    "description": "Slow-case seconds: 95 in 100 finish sooner."
                  }
                },
                "required": [
                  "p50_s",
                  "p95_s"
                ],
                "additionalProperties": false,
                "description": "Over the last 30 days of finished jobs. null means not measured yet: fewer than 50 have finished, or the figures are being read again after a restart."
              },
              {
                "type": "null"
              }
            ]
          },
          "best_for": {
            "type": "object",
            "properties": {
              "en": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "es": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "en",
              "es"
            ],
            "additionalProperties": false,
            "description": "Two to four things it is built for."
          },
          "not_for": {
            "type": "object",
            "properties": {
              "en": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "es": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "en",
              "es"
            ],
            "additionalProperties": false,
            "description": "Two or three things it is not for, and what to use instead."
          },
          "example": {
            "type": "object",
            "properties": {
              "input": {
                "description": "The example input."
              },
              "output_url": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "A real result OneUpAI made with it.",
                    "format": "uri"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "response": {
                "anyOf": [
                  {
                    "type": "object",
                    "description": "The full response that came back."
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "input",
              "output_url",
              "response"
            ],
            "additionalProperties": false,
            "description": "A real example. `output_url` and `response` are null until the model's sample is published."
          },
          "price_examples": {
            "type": "object",
            "properties": {
              "en": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "es": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "en",
              "es"
            ],
            "additionalProperties": false,
            "description": "Worked cases in credits and dollars, at the Concierge plan's rate."
          },
          "changelog": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "version": {
                  "type": "integer"
                },
                "date": {
                  "type": "string",
                  "format": "date"
                },
                "change": {
                  "type": "object",
                  "properties": {
                    "en": {
                      "type": "string"
                    },
                    "es": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "en",
                    "es"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "version",
                "date",
                "change"
              ],
              "additionalProperties": false
            },
            "description": "This model's changes, newest first."
          },
          "supported_operations": {
            "type": "object",
            "description": "Render models only: every Timeline operation and whether it is available now.",
            "additionalProperties": {
              "type": "boolean"
            }
          },
          "text_fonts": {
            "type": "object",
            "description": "Render models only: the typefaces a text label may name, with their weights and styles."
          },
          "engine_version": {
            "type": "string",
            "description": "Render models only: the rendering version. A new one may draw the same Timeline differently."
          },
          "pricing": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "flat",
                  "per_unit",
                  "per_megapixel"
                ]
              },
              "credit_cost": {
                "type": "integer"
              },
              "unit_credit_cost": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit_param": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit_min": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit_max": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit_source": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "param",
                      "megapixels",
                      "media_duration",
                      "media_frames"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit_media": {
                "type": "object",
                "description": "The inputs whose measured length is billed, rounded up."
              },
              "pending_effective_at": {
                "type": "string",
                "format": "date-time"
              },
              "pending_credit_cost": {
                "type": "integer"
              }
            },
            "required": [
              "type",
              "credit_cost",
              "unit_credit_cost",
              "unit_param",
              "unit_min",
              "unit_max",
              "unit_source"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "alias",
          "name",
          "group",
          "status",
          "previously",
          "version",
          "category",
          "execution",
          "description",
          "example_input",
          "input_schema",
          "output_schema",
          "input_modalities",
          "output_modalities",
          "limits",
          "output",
          "run_time",
          "best_for",
          "not_for",
          "example",
          "price_examples",
          "changelog",
          "pricing"
        ],
        "additionalProperties": false
      },
      "QueueAccepted": {
        "type": "object",
        "properties": {
          "ticket": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          }
        },
        "required": [
          "ticket",
          "status"
        ],
        "additionalProperties": false
      },
      "GenerationStatus": {
        "type": "object",
        "properties": {
          "ticket": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          },
          "refunded": {
            "type": "boolean",
            "description": "FAILED only: whether the charge was refunded."
          },
          "refusal": {
            "type": "string",
            "description": "FAILED only, when the input was the reason: `no_person` or `no_speech`."
          },
          "failure": {
            "type": "string",
            "description": "FAILED and refunded only, when no `refusal` applies: why, as a fixed code: `not_saved` (the result could not be saved), `result_unusable`, `service_failed`, `input_rejected`, `storage_full` or `service_unavailable` (the service is briefly unavailable on our side; never the input)."
          },
          "credits_billed": {
            "type": "integer",
            "description": "COMPLETED only: the credits this job was billed."
          }
        },
        "required": [
          "ticket",
          "status"
        ],
        "additionalProperties": false
      },
      "GenerationResult": {
        "type": "object",
        "properties": {
          "ticket": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "const": "COMPLETED"
          },
          "alias": {
            "type": "string"
          },
          "assets": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "asset_id": {
                  "type": "string"
                },
                "content_type": {
                  "type": "string"
                },
                "size_bytes": {
                  "type": "integer"
                },
                "url": {
                  "type": "string",
                  "description": "A signed link to the file, good for one hour.",
                  "format": "uri"
                }
              },
              "required": [
                "asset_id",
                "content_type",
                "size_bytes",
                "url"
              ],
              "additionalProperties": false
            }
          },
          "annotation": {
            "type": "object",
            "properties": {
              "annotation_id": {
                "type": "string",
                "description": "A transcript or a beat analysis. Use it in a Timeline as { \"$annotation\": \"<id>\" }."
              },
              "size_bytes": {
                "type": "integer"
              },
              "url": {
                "type": "string",
                "description": "A signed link to the JSON.",
                "format": "uri"
              }
            },
            "required": [
              "annotation_id",
              "size_bytes",
              "url"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "ticket",
          "status",
          "alias",
          "assets"
        ],
        "additionalProperties": false
      },
      "GenerationList": {
        "type": "object",
        "properties": {
          "generations": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "ticket": {
                  "type": "string"
                },
                "alias": {
                  "type": "string"
                },
                "status": {
                  "$ref": "#/components/schemas/Status"
                },
                "credits": {
                  "type": "integer"
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time"
                },
                "refunded": {
                  "type": "boolean"
                },
                "label": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "ticket",
                "alias",
                "status",
                "credits",
                "created_at",
                "refunded",
                "label"
              ],
              "additionalProperties": false
            }
          },
          "page": {
            "$ref": "#/components/schemas/Page"
          }
        },
        "required": [
          "generations",
          "page"
        ],
        "additionalProperties": false
      },
      "AssetList": {
        "type": "object",
        "properties": {
          "assets": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "content_type": {
                  "type": "string"
                },
                "size_bytes": {
                  "type": "integer"
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time"
                },
                "url": {
                  "type": "string",
                  "description": "A signed link to the file, good for one hour.",
                  "format": "uri"
                },
                "width": {
                  "type": "integer",
                  "description": "Pixels, where measured."
                },
                "height": {
                  "type": "integer",
                  "description": "Pixels, where measured."
                },
                "duration_ms": {
                  "type": "integer",
                  "description": "Audio and video, where measured."
                },
                "has_audio": {
                  "type": "boolean",
                  "description": "Whether the file has sound, where known."
                },
                "via": {
                  "type": "string",
                  "enum": [
                    "generated",
                    "render"
                  ],
                  "description": "Made by a model, or rendered from a Timeline."
                }
              },
              "required": [
                "id",
                "content_type",
                "size_bytes",
                "created_at",
                "url"
              ],
              "additionalProperties": false
            }
          },
          "page": {
            "$ref": "#/components/schemas/Page"
          }
        },
        "required": [
          "assets",
          "page"
        ],
        "additionalProperties": false
      },
      "UploadList": {
        "type": "object",
        "properties": {
          "uploads": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "upload_id": {
                  "type": "string"
                },
                "content_type": {
                  "type": "string"
                },
                "size_bytes": {
                  "type": "integer"
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time"
                },
                "width": {
                  "type": "integer",
                  "description": "Pixels, where measured."
                },
                "height": {
                  "type": "integer",
                  "description": "Pixels, where measured."
                },
                "duration_ms": {
                  "type": "integer",
                  "description": "Audio and video, where measured."
                },
                "has_audio": {
                  "type": "boolean",
                  "description": "Whether the file has sound, where known."
                }
              },
              "required": [
                "upload_id",
                "content_type",
                "size_bytes",
                "created_at"
              ],
              "additionalProperties": false
            }
          },
          "next_cursor": {
            "type": "string",
            "description": "Pass as `cursor` for the next page; absent on the last."
          }
        },
        "required": [
          "uploads"
        ],
        "additionalProperties": false
      },
      "AssetUrl": {
        "type": "object",
        "properties": {
          "asset_id": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "description": "A signed link to the file, good for one hour.",
            "format": "uri"
          },
          "content_type": {
            "type": "string",
            "description": "The link has no file extension; use this."
          },
          "download_url": {
            "type": "string",
            "description": "The same file, answered as a download.",
            "format": "uri"
          },
          "duration_ms": {
            "anyOf": [
              {
                "type": "integer",
                "description": "Audio and video only."
              },
              {
                "type": "null"
              }
            ]
          },
          "poster_url": {
            "type": "string",
            "description": "A rendered video only: one still from it.",
            "format": "uri"
          },
          "thumb_url": {
            "type": "string",
            "description": "A picture, or a clip once its small still is made: a small WebP for a grid or a card, its shorter side 320 px. Absent for a clip with no still yet.",
            "format": "uri"
          }
        },
        "required": [
          "asset_id",
          "url",
          "content_type",
          "download_url",
          "duration_ms"
        ],
        "additionalProperties": false
      },
      "AssetIds": {
        "type": "object",
        "properties": {
          "asset_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{1,128}$"
            },
            "minItems": 1,
            "maxItems": 50
          }
        },
        "required": [
          "asset_ids"
        ],
        "additionalProperties": false
      },
      "AssetUrls": {
        "type": "object",
        "properties": {
          "urls": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AssetUrl"
            }
          },
          "refused": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "asset_id": {
                  "type": "string"
                },
                "code": {
                  "type": "string",
                  "enum": [
                    "not_found"
                  ]
                }
              },
              "required": [
                "asset_id",
                "code"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "urls",
          "refused"
        ],
        "additionalProperties": false
      },
      "UploadInitiate": {
        "type": "object",
        "properties": {
          "content_type": {
            "type": "string",
            "description": "An image, video or audio type.",
            "pattern": "^(image|video|audio)/"
          },
          "file_name": {
            "type": "string"
          },
          "size_bytes": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2000000000
          },
          "origin": {
            "type": "string",
            "description": "`system` for a file your own service makes for the person (a card, a code), so their lists leave it out.",
            "enum": [
              "system"
            ]
          }
        },
        "required": [
          "content_type",
          "size_bytes"
        ],
        "additionalProperties": false
      },
      "UploadTarget": {
        "type": "object",
        "properties": {
          "upload_id": {
            "type": "string"
          },
          "upload_url": {
            "type": "string",
            "description": "PUT your bytes here (one hour; longer for a file sent in parts).",
            "format": "uri"
          },
          "file_url": {
            "type": "string",
            "description": "Use this in any submit body once the bytes are up. It works for 24 hours.",
            "format": "uri"
          },
          "parts": {
            "type": "object",
            "properties": {
              "part_bytes": {
                "type": "integer",
                "description": "Files over 8388608 bytes go up in parts of this size (8388608 bytes, larger only for a file that would need more than 64 parts; at most 67108864). A part may be sent again under the same upload."
              }
            },
            "required": [
              "part_bytes"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "upload_id",
          "upload_url",
          "file_url"
        ],
        "additionalProperties": false
      },
      "FromExtraction": {
        "type": "object",
        "properties": {
          "extraction_id": {
            "type": "string",
            "description": "From a page read by a web model."
          },
          "urls": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 2048
            },
            "maxItems": 40
          }
        },
        "required": [
          "extraction_id",
          "urls"
        ],
        "additionalProperties": false
      },
      "FromUrl": {
        "type": "object",
        "properties": {
          "urls": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 2048
            },
            "minItems": 1,
            "maxItems": 8
          }
        },
        "required": [
          "urls"
        ],
        "additionalProperties": false
      },
      "ImportResult": {
        "type": "object",
        "properties": {
          "uploads": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "description": "The address you sent."
                },
                "upload_id": {
                  "type": "string"
                },
                "file_url": {
                  "type": "string",
                  "description": "Use this in any submit body. It works for 24 hours.",
                  "format": "uri"
                },
                "bytes": {
                  "type": "integer"
                },
                "content_type": {
                  "type": "string"
                }
              },
              "required": [
                "url",
                "upload_id",
                "file_url",
                "bytes",
                "content_type"
              ],
              "additionalProperties": false
            }
          },
          "skipped": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string"
                },
                "reason": {
                  "type": "string",
                  "description": "Why this address was not imported."
                }
              },
              "required": [
                "url",
                "reason"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "uploads",
          "skipped"
        ],
        "additionalProperties": false
      },
      "UploadIds": {
        "type": "object",
        "properties": {
          "upload_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^oneup_upload_"
            },
            "minItems": 1,
            "maxItems": 100
          }
        },
        "required": [
          "upload_ids"
        ],
        "additionalProperties": false
      },
      "HoldResult": {
        "type": "object",
        "properties": {
          "held": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "missing": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "held",
          "missing"
        ],
        "additionalProperties": false
      },
      "UploadUrls": {
        "type": "object",
        "properties": {
          "uploads": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "upload_id": {
                  "type": "string"
                },
                "file_url": {
                  "type": "string",
                  "description": "Good for 24 hours.",
                  "format": "uri"
                },
                "content_type": {
                  "type": "string"
                },
                "size_bytes": {
                  "type": "integer"
                },
                "duration_ms": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "Audio and video only."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "thumb_url": {
                  "type": "string",
                  "description": "A photo, or a clip once its small still is made: a small WebP for a grid or a card, its shorter side 320 px. Absent for a clip with no still yet.",
                  "format": "uri"
                }
              },
              "required": [
                "upload_id",
                "file_url",
                "content_type",
                "size_bytes",
                "duration_ms"
              ],
              "additionalProperties": false
            }
          },
          "missing": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "uploads",
          "missing"
        ],
        "additionalProperties": false
      },
      "ProjectCreate": {
        "type": "object",
        "properties": {
          "agent_slug": {
            "type": "string",
            "description": "The render model the Project is for, for example a render model's name.",
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._/-]{0,127}$"
          },
          "title": {
            "type": "string",
            "description": "Optional. Stored privately; never kept as text."
          }
        },
        "required": [
          "agent_slug"
        ],
        "additionalProperties": false
      },
      "ProjectCreated": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "string"
          }
        },
        "required": [
          "project_id"
        ],
        "additionalProperties": false
      },
      "ProjectList": {
        "type": "object",
        "properties": {
          "projects": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "project_id": {
                  "type": "string"
                },
                "agent_slug": {
                  "type": "string"
                },
                "current_version_id": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "missing_inputs": {},
                "title_url": {
                  "type": "string",
                  "format": "uri"
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time"
                }
              },
              "required": [
                "project_id",
                "agent_slug",
                "current_version_id",
                "missing_inputs",
                "created_at"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "projects"
        ],
        "additionalProperties": false
      },
      "Project": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "string"
          },
          "current_version_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "title_url": {
            "type": "string",
            "format": "uri"
          }
        },
        "required": [
          "project_id",
          "current_version_id"
        ],
        "additionalProperties": false
      },
      "TimelineVersion": {
        "type": "object",
        "properties": {
          "version_id": {
            "type": "string"
          },
          "parent_version_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "timeline_hash": {
            "type": "string"
          },
          "segment_hashes": {},
          "timeline_url": {
            "type": "string",
            "description": "A signed link to the Timeline JSON.",
            "format": "uri"
          },
          "edit_spec_url": {
            "type": "string",
            "format": "uri"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "version_id",
          "parent_version_id",
          "timeline_hash",
          "timeline_url",
          "created_at"
        ],
        "additionalProperties": false
      },
      "TimelinePut": {
        "type": "object",
        "properties": {
          "timeline": {
            "type": "object",
            "description": "The Timeline: the edit, as JSON. See /docs/render for the operations and an example."
          },
          "parent_version_id": {
            "type": "string",
            "description": "The version you edited from. Omit it only for the first version."
          },
          "edit_spec": {
            "type": "object",
            "description": "Optional. Your own plan for this version, a JSON object of at most 64 KB, stored with it."
          }
        },
        "required": [
          "timeline"
        ],
        "additionalProperties": false
      },
      "TimelineSaved": {
        "type": "object",
        "properties": {
          "version_id": {
            "type": "string"
          },
          "parent_version_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "timeline_hash": {
            "type": "string"
          }
        },
        "required": [
          "version_id",
          "parent_version_id",
          "timeline_hash"
        ],
        "additionalProperties": false
      },
      "Deleted": {
        "type": "object",
        "properties": {
          "deleted": {
            "type": "boolean"
          }
        },
        "required": [
          "deleted"
        ],
        "additionalProperties": false
      },
      "Transcript": {
        "type": "object",
        "properties": {
          "words": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TranscriptWord"
            },
            "minItems": 1,
            "maxItems": 20000
          }
        },
        "required": [
          "words"
        ],
        "additionalProperties": false,
        "description": "Words in order, not overlapping, in whole milliseconds."
      },
      "TranscriptStored": {
        "type": "object",
        "properties": {
          "annotation_id": {
            "type": "string"
          },
          "words": {
            "type": "integer"
          },
          "bytes": {
            "type": "integer"
          }
        },
        "required": [
          "annotation_id",
          "words",
          "bytes"
        ],
        "additionalProperties": false
      },
      "TranscriptWord": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "from": {
            "type": "integer",
            "description": "Milliseconds.",
            "minimum": 0
          },
          "to": {
            "type": "integer",
            "description": "Milliseconds, not before `from`.",
            "minimum": 0
          },
          "speaker": {
            "type": "string",
            "minLength": 1,
            "maxLength": 32
          }
        },
        "required": [
          "text",
          "from",
          "to"
        ],
        "additionalProperties": false
      },
      "TranscriptRead": {
        "type": "object",
        "properties": {
          "annotation_id": {
            "type": "string"
          },
          "words": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TranscriptWord"
            }
          }
        },
        "required": [
          "annotation_id",
          "words"
        ],
        "additionalProperties": false
      },
      "RenderRequest": {
        "type": "object",
        "properties": {
          "alias": {
            "type": "string",
            "description": "A render model.",
            "enum": [
              "oneup/render-captions",
              "oneup/render-timeline"
            ]
          },
          "project_id": {
            "type": "string"
          },
          "version_id": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "description": "`preview`: free, quick, kept 72 hours. `final`: full quality, charged, cannot be canceled. `frame`: one picture of a segment's first or last frame.",
            "enum": [
              "preview",
              "final",
              "frame"
            ]
          },
          "auto_initial": {
            "type": "boolean",
            "description": "Mark the one automatic first preview of a Project. Previews only."
          },
          "label": {
            "type": "string",
            "description": "Optional. A name for this job and every file it makes, shown on your account page and used as the download name. Never sent to the model.",
            "pattern": "^[A-Za-z0-9._-]{1,80}$"
          },
          "segment_id": {
            "type": "string",
            "description": "`frame` only: the segment."
          },
          "at": {
            "type": "string",
            "description": "`frame` only.",
            "enum": [
              "first",
              "last"
            ]
          },
          "from_ms": {
            "type": "integer",
            "description": "`preview` only, with `to_ms`: a preview of just this span of the Timeline, from this millisecond. At most 10 seconds long, inside the video; drawn at full quality without the preview mark; counts its started seconds of preview time."
          },
          "to_ms": {
            "type": "integer",
            "description": "`preview` only, with `from_ms`: the span's end (not included)."
          }
        },
        "required": [
          "alias",
          "project_id",
          "version_id",
          "kind"
        ],
        "additionalProperties": false
      },
      "RenderAccepted": {
        "type": "object",
        "properties": {
          "render_id": {
            "type": "string"
          },
          "ticket": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          }
        },
        "required": [
          "render_id",
          "ticket",
          "status"
        ],
        "additionalProperties": false
      },
      "Render": {
        "type": "object",
        "properties": {
          "render_id": {
            "type": "string"
          },
          "ticket": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "preview",
              "final",
              "frame"
            ]
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          },
          "progress": {
            "type": "object",
            "description": "What the render has reported so far, as numbers; empty until it reports.",
            "additionalProperties": {
              "type": "number"
            }
          },
          "preview_url": {
            "type": "string",
            "description": "A finished preview, until it expires.",
            "format": "uri"
          },
          "preview_expires_at": {
            "type": "string",
            "format": "date-time"
          },
          "preview_window_ms": {
            "type": "integer",
            "description": "A preview of a Timeline longer than 3 minutes covers only its first minute: the milliseconds it covers (60000). Absent when the preview covers the whole Timeline."
          },
          "preview_span": {
            "type": "object",
            "properties": {
              "from_ms": {
                "type": "integer"
              },
              "to_ms": {
                "type": "integer"
              }
            },
            "required": [
              "from_ms",
              "to_ms"
            ],
            "additionalProperties": false
          },
          "poster_url": {
            "type": "string",
            "description": "One still from the video.",
            "format": "uri"
          },
          "asset_id": {
            "type": "string",
            "description": "A finished final or frame: the file it made."
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "completed_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "render_id",
          "ticket",
          "kind",
          "status",
          "progress",
          "created_at"
        ],
        "additionalProperties": false
      },
      "RenderEstimate": {
        "type": "object",
        "properties": {
          "seconds": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 1
          },
          "slow_seconds": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 1
          },
          "queued_ahead": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "seconds",
          "slow_seconds",
          "queued_ahead"
        ],
        "additionalProperties": false
      },
      "RenderCancel": {
        "type": "object",
        "properties": {
          "cancelled": {
            "type": "boolean"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          }
        },
        "required": [
          "cancelled"
        ],
        "additionalProperties": false
      },
      "BrandKit": {
        "type": "object",
        "properties": {
          "kit_v": {
            "type": "integer",
            "const": 1
          },
          "headshot_upload": {
            "type": "string",
            "description": "One of your uploads.",
            "pattern": "^oneup_upload_[A-Za-z0-9]{1,48}$"
          },
          "logo_upload": {
            "type": "string",
            "description": "One of your uploads.",
            "pattern": "^oneup_upload_[A-Za-z0-9]{1,48}$"
          },
          "name": {
            "type": "string",
            "maxLength": 80
          },
          "phone": {
            "type": "string",
            "maxLength": 32
          },
          "brokerage": {
            "type": "string",
            "maxLength": 80
          },
          "cta": {
            "type": "string",
            "maxLength": 80
          },
          "link": {
            "type": "string",
            "description": "A web address (http or https) or a mailto: address with one email.",
            "maxLength": 512
          },
          "accent": {
            "type": "string",
            "description": "One of gold, rose, silver, teal, plum, white, or a #rrggbb color."
          },
          "card_type": {
            "type": "string",
            "enum": [
              "serif",
              "sans",
              "editorial",
              "geometric"
            ]
          },
          "logo_corner": {
            "type": "string",
            "enum": [
              "tl",
              "tr",
              "bl",
              "br"
            ]
          },
          "logo_size": {
            "type": "integer",
            "minimum": 6,
            "maximum": 30
          },
          "headshot_size": {
            "type": "integer",
            "description": "Percent of the default size.",
            "minimum": 70,
            "maximum": 130
          },
          "headshot_shape": {
            "type": "string",
            "enum": [
              "circle",
              "square"
            ]
          },
          "auto_logo": {
            "type": "boolean",
            "description": "Add the logo to every new video. Absent means off."
          },
          "auto_card": {
            "type": "boolean",
            "description": "Add the closing card to every new video. Absent means off."
          },
          "auto_contact": {
            "type": "boolean",
            "description": "Add the contact details to every new video. Absent means off."
          },
          "logo_place": {
            "type": "object",
            "properties": {
              "x": {
                "type": "number",
                "minimum": 0,
                "maximum": 1
              },
              "y": {
                "type": "number",
                "minimum": 0,
                "maximum": 1
              }
            },
            "required": [
              "x",
              "y"
            ],
            "additionalProperties": false,
            "description": "The logo's centre, as shares of the frame, when it was placed anywhere instead of in a corner."
          },
          "logo_edge": {
            "type": "integer",
            "description": "Distance from the edge; the middle is the default.",
            "minimum": 0,
            "maximum": 20
          },
          "card_bg": {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "enum": [
                  "color",
                  "see"
                ]
              },
              "color": {
                "type": "string",
                "description": "A #rrggbb color."
              },
              "shade": {
                "type": "string",
                "enum": [
                  "none",
                  "light",
                  "dark"
                ]
              }
            },
            "required": [
              "kind"
            ],
            "additionalProperties": false
          },
          "card_text": {
            "type": "object",
            "properties": {
              "font": {
                "type": "string",
                "enum": [
                  "DejaVu Sans",
                  "Plus Jakarta Sans",
                  "Playfair Display",
                  "Oswald",
                  "Caveat",
                  "Albert Sans SemiBold",
                  "Instrument Serif",
                  "Barlow Medium",
                  "Barlow Semi Condensed",
                  "DM Serif Display",
                  "Montserrat ExtraBold",
                  "Montserrat Black",
                  "Anton",
                  "Space Mono",
                  "Bebas Neue",
                  "Montserrat",
                  "Poppins",
                  "Inter",
                  "Archivo Black",
                  "Roboto",
                  "Bangers",
                  "Luckiest Guy",
                  "Permanent Marker"
                ]
              },
              "size": {
                "type": "string",
                "enum": [
                  "small",
                  "medium",
                  "large"
                ]
              },
              "color": {
                "type": "string",
                "description": "A #rrggbb color."
              },
              "weight": {
                "type": "string",
                "enum": [
                  "regular",
                  "bold"
                ]
              },
              "case": {
                "type": "string",
                "enum": [
                  "typed",
                  "upper",
                  "title"
                ]
              }
            },
            "additionalProperties": false
          },
          "card_logo": {
            "type": "object",
            "properties": {
              "x": {
                "type": "number",
                "minimum": 0,
                "maximum": 1
              },
              "y": {
                "type": "number",
                "minimum": 0,
                "maximum": 1
              },
              "size": {
                "type": "integer",
                "minimum": 6,
                "maximum": 30
              }
            },
            "required": [
              "x",
              "y",
              "size"
            ],
            "additionalProperties": false,
            "description": "The logo on the closing card: its centre and size."
          }
        },
        "required": [
          "kit_v"
        ],
        "additionalProperties": false
      },
      "BrandKitView": {
        "type": "object",
        "properties": {
          "version": {
            "type": "integer"
          },
          "kit": {
            "type": "object",
            "properties": {
              "kit_v": {
                "type": "integer",
                "const": 1
              },
              "headshot_upload": {
                "type": "string",
                "description": "One of your uploads.",
                "pattern": "^oneup_upload_[A-Za-z0-9]{1,48}$"
              },
              "logo_upload": {
                "type": "string",
                "description": "One of your uploads.",
                "pattern": "^oneup_upload_[A-Za-z0-9]{1,48}$"
              },
              "name": {
                "type": "string",
                "maxLength": 80
              },
              "phone": {
                "type": "string",
                "maxLength": 32
              },
              "brokerage": {
                "type": "string",
                "maxLength": 80
              },
              "cta": {
                "type": "string",
                "maxLength": 80
              },
              "link": {
                "type": "string",
                "description": "A web address (http or https) or a mailto: address with one email.",
                "maxLength": 512
              },
              "accent": {
                "type": "string",
                "description": "One of gold, rose, silver, teal, plum, white, or a #rrggbb color."
              },
              "card_type": {
                "type": "string",
                "enum": [
                  "serif",
                  "sans",
                  "editorial",
                  "geometric"
                ]
              },
              "logo_corner": {
                "type": "string",
                "enum": [
                  "tl",
                  "tr",
                  "bl",
                  "br"
                ]
              },
              "logo_size": {
                "type": "integer",
                "minimum": 6,
                "maximum": 30
              },
              "headshot_size": {
                "type": "integer",
                "description": "Percent of the default size.",
                "minimum": 70,
                "maximum": 130
              },
              "headshot_shape": {
                "type": "string",
                "enum": [
                  "circle",
                  "square"
                ]
              },
              "auto_logo": {
                "type": "boolean",
                "description": "Add the logo to every new video. Absent means off."
              },
              "auto_card": {
                "type": "boolean",
                "description": "Add the closing card to every new video. Absent means off."
              },
              "auto_contact": {
                "type": "boolean",
                "description": "Add the contact details to every new video. Absent means off."
              },
              "logo_place": {
                "type": "object",
                "properties": {
                  "x": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1
                  },
                  "y": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1
                  }
                },
                "required": [
                  "x",
                  "y"
                ],
                "additionalProperties": false,
                "description": "The logo's centre, as shares of the frame, when it was placed anywhere instead of in a corner."
              },
              "logo_edge": {
                "type": "integer",
                "description": "Distance from the edge; the middle is the default.",
                "minimum": 0,
                "maximum": 20
              },
              "card_bg": {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "color",
                      "see"
                    ]
                  },
                  "color": {
                    "type": "string",
                    "description": "A #rrggbb color."
                  },
                  "shade": {
                    "type": "string",
                    "enum": [
                      "none",
                      "light",
                      "dark"
                    ]
                  }
                },
                "required": [
                  "kind"
                ],
                "additionalProperties": false
              },
              "card_text": {
                "type": "object",
                "properties": {
                  "font": {
                    "type": "string",
                    "enum": [
                      "DejaVu Sans",
                      "Plus Jakarta Sans",
                      "Playfair Display",
                      "Oswald",
                      "Caveat",
                      "Albert Sans SemiBold",
                      "Instrument Serif",
                      "Barlow Medium",
                      "Barlow Semi Condensed",
                      "DM Serif Display",
                      "Montserrat ExtraBold",
                      "Montserrat Black",
                      "Anton",
                      "Space Mono",
                      "Bebas Neue",
                      "Montserrat",
                      "Poppins",
                      "Inter",
                      "Archivo Black",
                      "Roboto",
                      "Bangers",
                      "Luckiest Guy",
                      "Permanent Marker"
                    ]
                  },
                  "size": {
                    "type": "string",
                    "enum": [
                      "small",
                      "medium",
                      "large"
                    ]
                  },
                  "color": {
                    "type": "string",
                    "description": "A #rrggbb color."
                  },
                  "weight": {
                    "type": "string",
                    "enum": [
                      "regular",
                      "bold"
                    ]
                  },
                  "case": {
                    "type": "string",
                    "enum": [
                      "typed",
                      "upper",
                      "title"
                    ]
                  }
                },
                "additionalProperties": false
              },
              "card_logo": {
                "type": "object",
                "properties": {
                  "x": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1
                  },
                  "y": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1
                  },
                  "size": {
                    "type": "integer",
                    "minimum": 6,
                    "maximum": 30
                  }
                },
                "required": [
                  "x",
                  "y",
                  "size"
                ],
                "additionalProperties": false,
                "description": "The logo on the closing card: its centre and size."
              }
            },
            "required": [
              "kit_v"
            ],
            "additionalProperties": false
          },
          "files": {
            "type": "object",
            "properties": {
              "headshot": {
                "type": "object",
                "properties": {
                  "file_url": {
                    "type": "string",
                    "description": "Good for 24 hours.",
                    "format": "uri"
                  },
                  "bytes": {
                    "type": "integer"
                  },
                  "content_type": {
                    "type": "string"
                  }
                },
                "required": [
                  "file_url",
                  "bytes",
                  "content_type"
                ],
                "additionalProperties": false
              },
              "logo": {
                "type": "object",
                "properties": {
                  "file_url": {
                    "type": "string",
                    "description": "Good for 24 hours.",
                    "format": "uri"
                  },
                  "bytes": {
                    "type": "integer"
                  },
                  "content_type": {
                    "type": "string"
                  }
                },
                "required": [
                  "file_url",
                  "bytes",
                  "content_type"
                ],
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "missing_assets": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "headshot",
                "logo"
              ]
            }
          }
        },
        "required": [
          "version",
          "kit",
          "files",
          "missing_assets"
        ],
        "additionalProperties": false
      },
      "BrandKitPut": {
        "type": "object",
        "properties": {
          "expected_version": {
            "type": "integer",
            "description": "The version you last read; 0 for the first save.",
            "minimum": 0
          },
          "kit": {
            "type": "object",
            "properties": {
              "kit_v": {
                "type": "integer",
                "const": 1
              },
              "headshot_upload": {
                "type": "string",
                "description": "One of your uploads.",
                "pattern": "^oneup_upload_[A-Za-z0-9]{1,48}$"
              },
              "logo_upload": {
                "type": "string",
                "description": "One of your uploads.",
                "pattern": "^oneup_upload_[A-Za-z0-9]{1,48}$"
              },
              "name": {
                "type": "string",
                "maxLength": 80
              },
              "phone": {
                "type": "string",
                "maxLength": 32
              },
              "brokerage": {
                "type": "string",
                "maxLength": 80
              },
              "cta": {
                "type": "string",
                "maxLength": 80
              },
              "link": {
                "type": "string",
                "description": "A web address (http or https) or a mailto: address with one email.",
                "maxLength": 512
              },
              "accent": {
                "type": "string",
                "description": "One of gold, rose, silver, teal, plum, white, or a #rrggbb color."
              },
              "card_type": {
                "type": "string",
                "enum": [
                  "serif",
                  "sans",
                  "editorial",
                  "geometric"
                ]
              },
              "logo_corner": {
                "type": "string",
                "enum": [
                  "tl",
                  "tr",
                  "bl",
                  "br"
                ]
              },
              "logo_size": {
                "type": "integer",
                "minimum": 6,
                "maximum": 30
              },
              "headshot_size": {
                "type": "integer",
                "description": "Percent of the default size.",
                "minimum": 70,
                "maximum": 130
              },
              "headshot_shape": {
                "type": "string",
                "enum": [
                  "circle",
                  "square"
                ]
              },
              "auto_logo": {
                "type": "boolean",
                "description": "Add the logo to every new video. Absent means off."
              },
              "auto_card": {
                "type": "boolean",
                "description": "Add the closing card to every new video. Absent means off."
              },
              "auto_contact": {
                "type": "boolean",
                "description": "Add the contact details to every new video. Absent means off."
              },
              "logo_place": {
                "type": "object",
                "properties": {
                  "x": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1
                  },
                  "y": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1
                  }
                },
                "required": [
                  "x",
                  "y"
                ],
                "additionalProperties": false,
                "description": "The logo's centre, as shares of the frame, when it was placed anywhere instead of in a corner."
              },
              "logo_edge": {
                "type": "integer",
                "description": "Distance from the edge; the middle is the default.",
                "minimum": 0,
                "maximum": 20
              },
              "card_bg": {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "color",
                      "see"
                    ]
                  },
                  "color": {
                    "type": "string",
                    "description": "A #rrggbb color."
                  },
                  "shade": {
                    "type": "string",
                    "enum": [
                      "none",
                      "light",
                      "dark"
                    ]
                  }
                },
                "required": [
                  "kind"
                ],
                "additionalProperties": false
              },
              "card_text": {
                "type": "object",
                "properties": {
                  "font": {
                    "type": "string",
                    "enum": [
                      "DejaVu Sans",
                      "Plus Jakarta Sans",
                      "Playfair Display",
                      "Oswald",
                      "Caveat",
                      "Albert Sans SemiBold",
                      "Instrument Serif",
                      "Barlow Medium",
                      "Barlow Semi Condensed",
                      "DM Serif Display",
                      "Montserrat ExtraBold",
                      "Montserrat Black",
                      "Anton",
                      "Space Mono",
                      "Bebas Neue",
                      "Montserrat",
                      "Poppins",
                      "Inter",
                      "Archivo Black",
                      "Roboto",
                      "Bangers",
                      "Luckiest Guy",
                      "Permanent Marker"
                    ]
                  },
                  "size": {
                    "type": "string",
                    "enum": [
                      "small",
                      "medium",
                      "large"
                    ]
                  },
                  "color": {
                    "type": "string",
                    "description": "A #rrggbb color."
                  },
                  "weight": {
                    "type": "string",
                    "enum": [
                      "regular",
                      "bold"
                    ]
                  },
                  "case": {
                    "type": "string",
                    "enum": [
                      "typed",
                      "upper",
                      "title"
                    ]
                  }
                },
                "additionalProperties": false
              },
              "card_logo": {
                "type": "object",
                "properties": {
                  "x": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1
                  },
                  "y": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1
                  },
                  "size": {
                    "type": "integer",
                    "minimum": 6,
                    "maximum": 30
                  }
                },
                "required": [
                  "x",
                  "y",
                  "size"
                ],
                "additionalProperties": false,
                "description": "The logo on the closing card: its centre and size."
              }
            },
            "required": [
              "kit_v"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "expected_version",
          "kit"
        ],
        "additionalProperties": false
      }
    }
  }
}
