{
 "openapi": "3.1.0",
 "info": {
  "title": "BobaBanana API",
  "description": "Generate consistent images, videos, cloned-voice speech and sound effects from reference images and voices. Every job is paid for with your workspace's credits. Docs: https://bobabanana.com/docs/api/",
  "version": "1.1.0",
  "contact": {
   "name": "BobaBanana",
   "url": "https://bobabanana.com/docs/api/"
  }
 },
 "servers": [
  {
   "url": "https://bobabanana.com/api/v1"
  }
 ],
 "paths": {
  "/status": {
   "get": {
    "summary": "Engine availability, your queue and prices",
    "operationId": "status_status_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Status"
        }
       }
      }
     },
     "401": {
      "description": "Missing or invalid API key",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "Workspace suspended",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "Not found in your workspace",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "A limit was reached; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearer": []
     },
     {
      "apiKey": []
     }
    ]
   }
  },
  "/balance": {
   "get": {
    "summary": "Your workspace's credits",
    "operationId": "balance_balance_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Balance"
        }
       }
      }
     },
     "401": {
      "description": "Missing or invalid API key",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "Workspace suspended",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "Not found in your workspace",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "A limit was reached; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearer": []
     },
     {
      "apiKey": []
     }
    ]
   }
  },
  "/prices": {
   "get": {
    "summary": "What each kind of job costs, in credits",
    "operationId": "prices_prices_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PriceList"
        }
       }
      }
     },
     "401": {
      "description": "Missing or invalid API key",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "Workspace suspended",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "Not found in your workspace",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "A limit was reached; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearer": []
     },
     {
      "apiKey": []
     }
    ]
   }
  },
  "/files": {
   "post": {
    "summary": "Upload a reference image or voice/audio file",
    "operationId": "upload_files_post",
    "requestBody": {
     "content": {
      "multipart/form-data": {
       "schema": {
        "$ref": "#/components/schemas/Body_upload_files_post"
       }
      }
     },
     "required": true
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/FileObject"
        }
       }
      }
     },
     "400": {
      "description": "Invalid request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "Missing or invalid API key",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "Workspace suspended",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "413": {
      "description": "Request body too large",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "A limit was reached; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "507": {
      "description": "Workspace storage is full",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "Invalid field or idempotency key reused",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearer": []
     },
     {
      "apiKey": []
     }
    ]
   }
  },
  "/files/{file_id}": {
   "get": {
    "summary": "Look up an uploaded file",
    "operationId": "file_get_files__file_id__get",
    "security": [
     {
      "bearer": []
     },
     {
      "apiKey": []
     }
    ],
    "parameters": [
     {
      "name": "file_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "File Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/FileObject"
        }
       }
      }
     },
     "401": {
      "description": "Missing or invalid API key",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "Workspace suspended",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "Not found in your workspace",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "A limit was reached; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "Invalid field or idempotency key reused",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   },
   "delete": {
    "summary": "Delete an uploaded file",
    "operationId": "file_delete_files__file_id__delete",
    "security": [
     {
      "bearer": []
     },
     {
      "apiKey": []
     }
    ],
    "parameters": [
     {
      "name": "file_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "File Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Deleted"
        }
       }
      }
     },
     "401": {
      "description": "Missing or invalid API key",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "Workspace suspended",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "Not found in your workspace",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "A limit was reached; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Conflict with the current state",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "Invalid field or idempotency key reused",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/images": {
   "post": {
    "summary": "Generate an image from a prompt and reference images",
    "operationId": "create_image_images_post",
    "security": [
     {
      "bearer": []
     },
     {
      "apiKey": []
     }
    ],
    "parameters": [
     {
      "name": "idempotency-key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Idempotency-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ImageRequest"
       }
      }
     }
    },
    "responses": {
     "202": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Job"
        }
       }
      }
     },
     "400": {
      "description": "Invalid request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "Missing or invalid API key",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "402": {
      "description": "Not enough credits",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "Workspace suspended",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "Not found in your workspace",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Conflict with the current state",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "413": {
      "description": "Request body too large",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "Invalid field or idempotency key reused",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "A limit was reached; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "503": {
      "description": "Engine unavailable; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "507": {
      "description": "Workspace storage is full",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/videos": {
   "post": {
    "summary": "Generate a video: image to video (optional last frame), text to video (optionally with references), motion transfer or extend; optional lip sync in a saved or cloned voice at 720p (not with motion transfer)",
    "operationId": "create_video_videos_post",
    "security": [
     {
      "bearer": []
     },
     {
      "apiKey": []
     }
    ],
    "parameters": [
     {
      "name": "idempotency-key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Idempotency-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/VideoRequest"
       }
      }
     }
    },
    "responses": {
     "202": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Job"
        }
       }
      }
     },
     "400": {
      "description": "Invalid request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "Missing or invalid API key",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "402": {
      "description": "Not enough credits",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "Workspace suspended",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "Not found in your workspace",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Conflict with the current state",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "413": {
      "description": "Request body too large",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "Invalid field or idempotency key reused",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "A limit was reached; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "503": {
      "description": "Engine unavailable; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "507": {
      "description": "Workspace storage is full",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/videos/estimate": {
   "post": {
    "summary": "Price a motion transfer before you send it: its scenes, price multiplier and credits",
    "description": "The same request body as POST /v1/videos with `motion_video`: nothing is queued, held or stored. Finds the\nclip's cuts and answers what the job would hold now (`credits_estimate`), how many scenes the clip has and how many\nwould be made, and the price multiplier; a clip whose scenes cannot be made answers 400 motion_scenes, as a create\nwould.",
    "operationId": "estimate_video_videos_estimate_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/VideoRequest"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/VideoEstimate"
        }
       }
      }
     },
     "400": {
      "description": "Invalid request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "Missing or invalid API key",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "Workspace suspended",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "413": {
      "description": "Request body too large",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "Invalid field or idempotency key reused",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "A limit was reached; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearer": []
     },
     {
      "apiKey": []
     }
    ]
   }
  },
  "/speech": {
   "post": {
    "summary": "Text to speech in a saved or cloned voice",
    "operationId": "create_speech_speech_post",
    "security": [
     {
      "bearer": []
     },
     {
      "apiKey": []
     }
    ],
    "parameters": [
     {
      "name": "idempotency-key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Idempotency-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/SpeechRequest"
       }
      }
     }
    },
    "responses": {
     "202": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Job"
        }
       }
      }
     },
     "400": {
      "description": "Invalid request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "Missing or invalid API key",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "402": {
      "description": "Not enough credits",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "Workspace suspended",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "Not found in your workspace",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Conflict with the current state",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "413": {
      "description": "Request body too large",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "Invalid field or idempotency key reused",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "A limit was reached; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "503": {
      "description": "Engine unavailable; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "507": {
      "description": "Workspace storage is full",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/sound-effects": {
   "post": {
    "summary": "Generate a sound effect from a text prompt",
    "operationId": "create_sfx_sound_effects_post",
    "security": [
     {
      "bearer": []
     },
     {
      "apiKey": []
     }
    ],
    "parameters": [
     {
      "name": "idempotency-key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Idempotency-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/SoundEffectRequest"
       }
      }
     }
    },
    "responses": {
     "202": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Job"
        }
       }
      }
     },
     "400": {
      "description": "Invalid request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "Missing or invalid API key",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "402": {
      "description": "Not enough credits",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "Workspace suspended",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "Not found in your workspace",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Conflict with the current state",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "413": {
      "description": "Request body too large",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "Invalid field or idempotency key reused",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "A limit was reached; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "503": {
      "description": "Engine unavailable; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "507": {
      "description": "Workspace storage is full",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/jobs": {
   "get": {
    "summary": "List your jobs, newest first",
    "description": "Filters run in SQL and the cursor is a keyset on (created, id), so pages are exact (F28).",
    "operationId": "list_jobs_jobs_get",
    "security": [
     {
      "bearer": []
     },
     {
      "apiKey": []
     }
    ],
    "parameters": [
     {
      "name": "status",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "enum": [
          "queued",
          "running",
          "succeeded",
          "failed",
          "canceled"
         ],
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Status"
      }
     },
     {
      "name": "type",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "enum": [
          "image",
          "video",
          "speech",
          "sound_effect",
          "image_upscale",
          "video_upscale"
         ],
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Type"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 100,
       "minimum": 1,
       "default": 20,
       "title": "Limit"
      }
     },
     {
      "name": "before",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "A job id from the previous page (next_cursor)",
       "title": "Before"
      },
      "description": "A job id from the previous page (next_cursor)"
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobList"
        }
       }
      }
     },
     "400": {
      "description": "Invalid request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "Missing or invalid API key",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "Workspace suspended",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "Not found in your workspace",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "A limit was reached; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "Invalid field or idempotency key reused",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/jobs/{job_id}": {
   "get": {
    "summary": "Get a job; wait up to 30 seconds for it to finish with ?wait=30",
    "operationId": "get_job_jobs__job_id__get",
    "security": [
     {
      "bearer": []
     },
     {
      "apiKey": []
     }
    ],
    "parameters": [
     {
      "name": "job_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Job Id"
      }
     },
     {
      "name": "wait",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 30,
       "minimum": 0,
       "default": 0,
       "title": "Wait"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Job"
        }
       }
      }
     },
     "401": {
      "description": "Missing or invalid API key",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "Workspace suspended",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "Not found in your workspace",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "A limit was reached; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "Invalid field or idempotency key reused",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   },
   "delete": {
    "summary": "Delete a finished job and its results",
    "description": "A soft delete (F11): the record stays, so the key's daily count is unchanged; the result files are removed.",
    "operationId": "delete_job_jobs__job_id__delete",
    "security": [
     {
      "bearer": []
     },
     {
      "apiKey": []
     }
    ],
    "parameters": [
     {
      "name": "job_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Job Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Deleted"
        }
       }
      }
     },
     "401": {
      "description": "Missing or invalid API key",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "Workspace suspended",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "Not found in your workspace",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "A limit was reached; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Conflict with the current state",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "Invalid field or idempotency key reused",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/jobs/{job_id}/cancel": {
   "post": {
    "summary": "Cancel a queued or running job",
    "operationId": "cancel_job_jobs__job_id__cancel_post",
    "security": [
     {
      "bearer": []
     },
     {
      "apiKey": []
     }
    ],
    "parameters": [
     {
      "name": "job_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Job Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Job"
        }
       }
      }
     },
     "401": {
      "description": "Missing or invalid API key",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "Workspace suspended",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "Not found in your workspace",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "A limit was reached; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "Invalid field or idempotency key reused",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/jobs/{job_id}/upscale-options": {
   "get": {
    "summary": "The sizes a finished image or video job can be upscaled to, with prices",
    "operationId": "upscale_options_jobs__job_id__upscale_options_get",
    "security": [
     {
      "bearer": []
     },
     {
      "apiKey": []
     }
    ],
    "parameters": [
     {
      "name": "job_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Job Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/UpscaleOptions"
        }
       }
      }
     },
     "400": {
      "description": "Invalid request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "Missing or invalid API key",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "Workspace suspended",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "Not found in your workspace",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "A limit was reached; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "Invalid field or idempotency key reused",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/jobs/{job_id}/upscale": {
   "post": {
    "summary": "Upscale a finished image or video job: a new job with a sharper, larger result",
    "description": "The source job is untouched; the new job's `source_job_id` names it. Videos keep their own sound. With nothing\nable to start it yet the job is accepted and waits (`notice`). Every body field is optional (factor 2).",
    "operationId": "upscale_job_jobs__job_id__upscale_post",
    "security": [
     {
      "bearer": []
     },
     {
      "apiKey": []
     }
    ],
    "parameters": [
     {
      "name": "job_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Job Id"
      }
     },
     {
      "name": "idempotency-key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Idempotency-Key"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "anyOf": [
         {
          "$ref": "#/components/schemas/UpscaleRequest"
         },
         {
          "type": "null"
         }
        ],
        "title": "Body"
       }
      }
     }
    },
    "responses": {
     "202": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Job"
        }
       }
      }
     },
     "400": {
      "description": "Invalid request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "Missing or invalid API key",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "402": {
      "description": "Not enough credits",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "Workspace suspended",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "Not found in your workspace",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Conflict with the current state",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "413": {
      "description": "Request body too large",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "Invalid field or idempotency key reused",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "A limit was reached; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "503": {
      "description": "Engine unavailable; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "507": {
      "description": "Workspace storage is full",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/jobs/{job_id}/webhook/replay": {
   "post": {
    "summary": "Send a finished job's webhook again",
    "operationId": "replay_webhook_jobs__job_id__webhook_replay_post",
    "security": [
     {
      "bearer": []
     },
     {
      "apiKey": []
     }
    ],
    "parameters": [
     {
      "name": "job_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Job Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobWebhook"
        }
       }
      }
     },
     "401": {
      "description": "Missing or invalid API key",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "Workspace suspended",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "Not found in your workspace",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "A limit was reached; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Conflict with the current state",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "Invalid field or idempotency key reused",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/assets": {
   "get": {
    "summary": "List approved library assets (characters, objects, places, scenes, voices) by @handle",
    "description": "Most recently used first; search and the keyset cursor run in SQL (F28).",
    "operationId": "list_assets_assets_get",
    "security": [
     {
      "bearer": []
     },
     {
      "apiKey": []
     }
    ],
    "parameters": [
     {
      "name": "kind",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Kind"
      }
     },
     {
      "name": "search",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "maxLength": 100
        },
        {
         "type": "null"
        }
       ],
       "title": "Search"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 200,
       "minimum": 1,
       "default": 50,
       "title": "Limit"
      }
     },
     {
      "name": "before",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "next_cursor of the previous page",
       "title": "Before"
      },
      "description": "next_cursor of the previous page"
     },
     {
      "name": "include",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "const": "sample",
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Include"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AssetList"
        }
       }
      }
     },
     "400": {
      "description": "Invalid request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "Missing or invalid API key",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "Workspace suspended",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "Not found in your workspace",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "A limit was reached; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "Invalid field or idempotency key reused",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/assets/{handle}": {
   "get": {
    "summary": "Get one asset by @handle or id",
    "operationId": "get_asset_assets__handle__get",
    "security": [
     {
      "bearer": []
     },
     {
      "apiKey": []
     }
    ],
    "parameters": [
     {
      "name": "handle",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Handle"
      }
     },
     {
      "name": "include",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "const": "sample",
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Include"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Asset"
        }
       }
      }
     },
     "401": {
      "description": "Missing or invalid API key",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "Workspace suspended",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "Not found in your workspace",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "A limit was reached; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "Invalid field or idempotency key reused",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/voices": {
   "get": {
    "summary": "List saved voices usable as '@handle' in speech and video",
    "operationId": "list_voices_voices_get",
    "security": [
     {
      "bearer": []
     },
     {
      "apiKey": []
     }
    ],
    "parameters": [
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 200,
       "minimum": 1,
       "default": 200,
       "title": "Limit"
      }
     },
     {
      "name": "before",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Before"
      }
     },
     {
      "name": "include",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "const": "sample",
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Include"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AssetList"
        }
       }
      }
     },
     "400": {
      "description": "Invalid request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "Missing or invalid API key",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "Workspace suspended",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "Not found in your workspace",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "A limit was reached; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "Invalid field or idempotency key reused",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  }
 },
 "components": {
  "schemas": {
   "Asset": {
    "properties": {
     "id": {
      "type": "string",
      "title": "Id"
     },
     "object": {
      "type": "string",
      "const": "asset",
      "title": "Object"
     },
     "handle": {
      "type": "string",
      "title": "Handle"
     },
     "name": {
      "type": "string",
      "title": "Name"
     },
     "kind": {
      "type": "string",
      "title": "Kind"
     },
     "description": {
      "type": "string",
      "title": "Description"
     },
     "tags": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Tags"
     },
     "version": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Version"
     },
     "preview_url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Preview Url"
     },
     "sample_url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Sample Url",
      "description": "Voices only, with ?include=sample"
     }
    },
    "additionalProperties": true,
    "type": "object",
    "required": [
     "id",
     "object",
     "handle",
     "name",
     "kind",
     "description",
     "tags",
     "version"
    ],
    "title": "Asset"
   },
   "AssetList": {
    "properties": {
     "object": {
      "type": "string",
      "const": "list",
      "title": "Object"
     },
     "data": {
      "items": {
       "$ref": "#/components/schemas/Asset"
      },
      "type": "array",
      "title": "Data"
     },
     "has_more": {
      "type": "boolean",
      "title": "Has More"
     },
     "next_cursor": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Next Cursor"
     }
    },
    "type": "object",
    "required": [
     "object",
     "data",
     "has_more"
    ],
    "title": "AssetList"
   },
   "Balance": {
    "properties": {
     "object": {
      "type": "string",
      "const": "balance",
      "title": "Object"
     },
     "credits_available": {
      "type": "integer",
      "title": "Credits Available",
      "description": "Balance minus credits held for unfinished jobs"
     },
     "credits_held": {
      "type": "integer",
      "title": "Credits Held"
     },
     "billing_mode": {
      "type": "string",
      "enum": [
       "credits",
       "exempt"
      ],
      "title": "Billing Mode"
     }
    },
    "type": "object",
    "required": [
     "object",
     "credits_available",
     "credits_held",
     "billing_mode"
    ],
    "title": "Balance"
   },
   "Body_upload_files_post": {
    "properties": {
     "file": {
      "type": "string",
      "contentMediaType": "application/octet-stream",
      "title": "File"
     }
    },
    "type": "object",
    "required": [
     "file"
    ],
    "title": "Body_upload_files_post"
   },
   "Deleted": {
    "properties": {
     "id": {
      "type": "string",
      "title": "Id"
     },
     "object": {
      "type": "string",
      "title": "Object"
     },
     "deleted": {
      "type": "boolean",
      "const": true,
      "title": "Deleted"
     }
    },
    "type": "object",
    "required": [
     "id",
     "object",
     "deleted"
    ],
    "title": "Deleted"
   },
   "Engine": {
    "properties": {
     "available": {
      "type": "boolean",
      "title": "Available"
     },
     "reason": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Reason"
     }
    },
    "type": "object",
    "required": [
     "available",
     "reason"
    ],
    "title": "Engine"
   },
   "Error": {
    "properties": {
     "error": {
      "$ref": "#/components/schemas/ErrorDetail"
     }
    },
    "type": "object",
    "required": [
     "error"
    ],
    "title": "Error"
   },
   "ErrorDetail": {
    "properties": {
     "code": {
      "type": "string",
      "title": "Code",
      "description": "Stable code for programs to read, e.g. insufficient_credits"
     },
     "message": {
      "type": "string",
      "title": "Message"
     },
     "param": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Param",
      "description": "The request field at fault, when there is one"
     },
     "docs": {
      "type": "string",
      "title": "Docs"
     }
    },
    "additionalProperties": true,
    "type": "object",
    "required": [
     "code",
     "message",
     "docs"
    ],
    "title": "ErrorDetail"
   },
   "FileObject": {
    "properties": {
     "id": {
      "type": "string",
      "title": "Id"
     },
     "object": {
      "type": "string",
      "const": "file",
      "title": "Object"
     },
     "type": {
      "type": "string",
      "enum": [
       "image",
       "audio"
      ],
      "title": "Type"
     },
     "name": {
      "type": "string",
      "title": "Name"
     },
     "bytes": {
      "type": "integer",
      "title": "Bytes"
     },
     "created": {
      "type": "integer",
      "title": "Created"
     },
     "expires_at": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Expires At",
      "description": "Deleted after this unless a job uses it"
     },
     "width": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Width"
     },
     "height": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Height"
     },
     "duration": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ],
      "title": "Duration"
     },
     "warnings": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Warnings",
      "default": []
     },
     "url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Url"
     }
    },
    "additionalProperties": true,
    "type": "object",
    "required": [
     "id",
     "object",
     "type",
     "name",
     "bytes",
     "created"
    ],
    "title": "FileObject"
   },
   "ImageRequest": {
    "properties": {
     "webhook_url": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 500
       },
       {
        "type": "null"
       }
      ],
      "title": "Webhook Url",
      "description": "https:// URL that receives a signed POST when the job finishes"
     },
     "metadata": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Metadata",
      "description": "Up to 16 string keys you want echoed back on the job"
     },
     "name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 80
       },
       {
        "type": "null"
       }
      ],
      "title": "Name",
      "description": "Label shown in the BobaBanana studio"
     },
     "max_credits": {
      "anyOf": [
       {
        "type": "integer",
        "minimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Max Credits",
      "description": "Refuse the job (400 cost_above_max) if it would cost more than this"
     },
     "prompt": {
      "type": "string",
      "maxLength": 1500,
      "minLength": 1,
      "title": "Prompt",
      "description": "What to create"
     },
     "reference_images": {
      "items": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "$ref": "#/components/schemas/Media"
        }
       ]
      },
      "type": "array",
      "maxItems": 10,
      "title": "Reference Images",
      "description": "Up to 10 pictures to keep consistent: characters, products, places, styles"
     },
     "assets": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "maxItems": 10,
      "title": "Assets",
      "description": "Approved library assets by handle, e.g. ['@maya', '@red_sofa']"
     },
     "aspect_ratio": {
      "type": "string",
      "enum": [
       "16:9",
       "9:16",
       "1:1",
       "4:3",
       "3:4"
      ],
      "title": "Aspect Ratio",
      "default": "16:9"
     }
    },
    "type": "object",
    "required": [
     "prompt"
    ],
    "title": "ImageRequest"
   },
   "Job": {
    "properties": {
     "id": {
      "type": "string",
      "title": "Id"
     },
     "object": {
      "type": "string",
      "const": "job",
      "title": "Object"
     },
     "type": {
      "type": "string",
      "enum": [
       "image",
       "video",
       "speech",
       "sound_effect",
       "image_upscale",
       "video_upscale"
      ],
      "title": "Type"
     },
     "status": {
      "type": "string",
      "enum": [
       "queued",
       "running",
       "succeeded",
       "failed",
       "canceled"
      ],
      "title": "Status"
     },
     "created": {
      "type": "integer",
      "title": "Created"
     },
     "finished": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Finished"
     },
     "input": {
      "additionalProperties": true,
      "type": "object",
      "title": "Input"
     },
     "output": {
      "additionalProperties": {
       "$ref": "#/components/schemas/Link"
      },
      "type": "object",
      "title": "Output"
     },
     "error": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/JobError"
       },
       {
        "type": "null"
       }
      ]
     },
     "cost": {
      "$ref": "#/components/schemas/JobCost"
     },
     "webhook": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/JobWebhook"
       },
       {
        "type": "null"
       }
      ]
     },
     "eta_seconds": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Eta Seconds"
     },
     "poll_after_seconds": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Poll After Seconds"
     },
     "warnings": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Warnings"
     },
     "metadata": {
      "anyOf": [
       {
        "additionalProperties": {
         "type": "string"
        },
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Metadata"
     }
    },
    "additionalProperties": true,
    "type": "object",
    "required": [
     "id",
     "object",
     "type",
     "status",
     "created",
     "finished",
     "input",
     "output",
     "error",
     "cost",
     "webhook"
    ],
    "title": "Job"
   },
   "JobCost": {
    "properties": {
     "credits_estimate": {
      "type": "integer",
      "title": "Credits Estimate",
      "description": "Credits reserved when the job was accepted"
     },
     "credits_charged": {
      "type": "integer",
      "title": "Credits Charged"
     },
     "credits_released": {
      "type": "integer",
      "title": "Credits Released",
      "description": "Credits returned for steps that did not deliver"
     },
     "status": {
      "type": "string",
      "enum": [
       "held",
       "charged",
       "released",
       "partly_charged",
       "exempt"
      ],
      "title": "Status"
     },
     "video_price_key": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Video Price Key",
      "description": "Videos: the price used, e.g. video, video_ref (references), video_frames (first + last frame), video_1080 or video_2160"
     },
     "resolution": {
      "anyOf": [
       {
        "type": "string",
        "enum": [
         "720p",
         "1080p",
         "2160p"
        ]
       },
       {
        "type": "null"
       }
      ],
      "title": "Resolution",
      "description": "Videos: the resolution the job was quoted and is made at"
     }
    },
    "additionalProperties": true,
    "type": "object",
    "required": [
     "credits_estimate",
     "credits_charged",
     "credits_released",
     "status"
    ],
    "title": "JobCost"
   },
   "JobError": {
    "properties": {
     "code": {
      "type": "string",
      "title": "Code"
     },
     "message": {
      "type": "string",
      "title": "Message"
     }
    },
    "additionalProperties": true,
    "type": "object",
    "required": [
     "code",
     "message"
    ],
    "title": "JobError"
   },
   "JobList": {
    "properties": {
     "object": {
      "type": "string",
      "const": "list",
      "title": "Object"
     },
     "data": {
      "items": {
       "$ref": "#/components/schemas/Job"
      },
      "type": "array",
      "title": "Data"
     },
     "has_more": {
      "type": "boolean",
      "title": "Has More"
     },
     "next_cursor": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Next Cursor",
      "description": "Pass as ?before= to get the next page"
     }
    },
    "type": "object",
    "required": [
     "object",
     "data",
     "has_more"
    ],
    "title": "JobList"
   },
   "JobWebhook": {
    "properties": {
     "status": {
      "type": "string",
      "enum": [
       "pending",
       "delivered",
       "failed",
       "suppressed"
      ],
      "title": "Status"
     },
     "attempts": {
      "type": "integer",
      "title": "Attempts"
     },
     "last_status": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Status",
      "description": "HTTP status your endpoint returned on the last attempt"
     }
    },
    "type": "object",
    "required": [
     "status",
     "attempts"
    ],
    "title": "JobWebhook"
   },
   "Link": {
    "properties": {
     "url": {
      "type": "string",
      "title": "Url",
      "description": "Signed download URL, valid for at least 24 hours; fetch the job again for a fresh one"
     },
     "content_type": {
      "type": "string",
      "title": "Content Type"
     }
    },
    "type": "object",
    "required": [
     "url",
     "content_type"
    ],
    "title": "Link"
   },
   "Media": {
    "properties": {
     "file_id": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 64
       },
       {
        "type": "null"
       }
      ],
      "title": "File Id",
      "description": "ID from POST /v1/files, e.g. file_3f9c2a1b7d4e"
     },
     "url": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 2000
       },
       {
        "type": "null"
       }
      ],
      "title": "Url",
      "description": "Public https:// URL to download"
     },
     "data": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Data",
      "description": "Base64 file contents, or a data: URI (about 25 MB at most)"
     },
     "label": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 200
       },
       {
        "type": "null"
       }
      ],
      "title": "Label",
      "description": "What this reference shows, e.g. 'the red leather sofa'. Improves results with several references."
     }
    },
    "type": "object",
    "title": "Media",
    "description": "One input file. Give exactly one of file_id, url or data."
   },
   "Price": {
    "properties": {
     "key": {
      "type": "string",
      "title": "Key"
     },
     "base_credits": {
      "type": "integer",
      "title": "Base Credits"
     },
     "per_second_credits": {
      "type": "integer",
      "title": "Per Second Credits"
     },
     "per_100_chars_credits": {
      "type": "integer",
      "title": "Per 100 Chars Credits"
     },
     "pricing": {
      "type": "string",
      "enum": [
       "fixed",
       "live_quote"
      ],
      "title": "Pricing",
      "description": "live_quote: 1080p and 2160p videos are priced from the live premium rendering price when the job is accepted (see the job's cost.credits_estimate); the credits shown are the most they cost at the regular premium rate",
      "default": "fixed"
     }
    },
    "type": "object",
    "required": [
     "key",
     "base_credits",
     "per_second_credits",
     "per_100_chars_credits"
    ],
    "title": "Price"
   },
   "PriceList": {
    "properties": {
     "object": {
      "type": "string",
      "const": "list",
      "title": "Object"
     },
     "data": {
      "items": {
       "$ref": "#/components/schemas/Price"
      },
      "type": "array",
      "title": "Data"
     }
    },
    "type": "object",
    "required": [
     "object",
     "data"
    ],
    "title": "PriceList"
   },
   "SoundEffect": {
    "properties": {
     "prompt": {
      "type": "string",
      "maxLength": 300,
      "minLength": 1,
      "title": "Prompt"
     },
     "duration_seconds": {
      "type": "number",
      "maximum": 20.0,
      "minimum": 2.0,
      "title": "Duration Seconds",
      "default": 8
     }
    },
    "type": "object",
    "required": [
     "prompt"
    ],
    "title": "SoundEffect"
   },
   "SoundEffectRequest": {
    "properties": {
     "webhook_url": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 500
       },
       {
        "type": "null"
       }
      ],
      "title": "Webhook Url",
      "description": "https:// URL that receives a signed POST when the job finishes"
     },
     "metadata": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Metadata",
      "description": "Up to 16 string keys you want echoed back on the job"
     },
     "name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 80
       },
       {
        "type": "null"
       }
      ],
      "title": "Name",
      "description": "Label shown in the BobaBanana studio"
     },
     "max_credits": {
      "anyOf": [
       {
        "type": "integer",
        "minimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Max Credits",
      "description": "Refuse the job (400 cost_above_max) if it would cost more than this"
     },
     "prompt": {
      "type": "string",
      "maxLength": 300,
      "minLength": 1,
      "title": "Prompt",
      "description": "e.g. 'rain on a tin roof with distant thunder'"
     },
     "duration_seconds": {
      "type": "number",
      "maximum": 20.0,
      "minimum": 2.0,
      "title": "Duration Seconds",
      "default": 8
     }
    },
    "type": "object",
    "required": [
     "prompt"
    ],
    "title": "SoundEffectRequest"
   },
   "SpeechRequest": {
    "properties": {
     "webhook_url": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 500
       },
       {
        "type": "null"
       }
      ],
      "title": "Webhook Url",
      "description": "https:// URL that receives a signed POST when the job finishes"
     },
     "metadata": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Metadata",
      "description": "Up to 16 string keys you want echoed back on the job"
     },
     "name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 80
       },
       {
        "type": "null"
       }
      ],
      "title": "Name",
      "description": "Label shown in the BobaBanana studio"
     },
     "max_credits": {
      "anyOf": [
       {
        "type": "integer",
        "minimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Max Credits",
      "description": "Refuse the job (400 cost_above_max) if it would cost more than this"
     },
     "text": {
      "type": "string",
      "maxLength": 600,
      "minLength": 1,
      "title": "Text"
     },
     "voice": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "$ref": "#/components/schemas/VoiceSample"
       }
      ],
      "title": "Voice"
     },
     "voice_consent": {
      "type": "boolean",
      "title": "Voice Consent",
      "default": false
     }
    },
    "type": "object",
    "required": [
     "text",
     "voice"
    ],
    "title": "SpeechRequest"
   },
   "Status": {
    "properties": {
     "object": {
      "type": "string",
      "const": "status",
      "title": "Object"
     },
     "your_queue_length": {
      "type": "integer",
      "title": "Your Queue Length",
      "description": "Your workspace's unfinished steps"
     },
     "engines": {
      "additionalProperties": {
       "$ref": "#/components/schemas/Engine"
      },
      "type": "object",
      "title": "Engines"
     },
     "typical_seconds": {
      "additionalProperties": {
       "type": "integer"
      },
      "type": "object",
      "title": "Typical Seconds"
     },
     "prices": {
      "items": {
       "$ref": "#/components/schemas/Price"
      },
      "type": "array",
      "title": "Prices"
     }
    },
    "type": "object",
    "required": [
     "object",
     "your_queue_length",
     "engines",
     "typical_seconds",
     "prices"
    ],
    "title": "Status"
   },
   "UpscaleOption": {
    "properties": {
     "factor": {
      "type": "number",
      "title": "Factor"
     },
     "available": {
      "type": "boolean",
      "title": "Available"
     },
     "reason": {
      "type": "string",
      "title": "Reason",
      "description": "Why this size cannot be made for this job ('' when it can)",
      "default": ""
     },
     "width": {
      "type": "integer",
      "title": "Width"
     },
     "height": {
      "type": "integer",
      "title": "Height"
     },
     "credits": {
      "type": "integer",
      "title": "Credits",
      "description": "What this upscale costs your workspace"
     }
    },
    "type": "object",
    "required": [
     "factor",
     "available",
     "width",
     "height",
     "credits"
    ],
    "title": "UpscaleOption"
   },
   "UpscaleOptions": {
    "properties": {
     "object": {
      "type": "string",
      "const": "upscale_options",
      "title": "Object",
      "default": "upscale_options"
     },
     "job_id": {
      "type": "string",
      "title": "Job Id"
     },
     "media": {
      "type": "string",
      "enum": [
       "image",
       "video"
      ],
      "title": "Media"
     },
     "width": {
      "type": "integer",
      "title": "Width"
     },
     "height": {
      "type": "integer",
      "title": "Height"
     },
     "seconds": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ],
      "title": "Seconds"
     },
     "available": {
      "type": "boolean",
      "title": "Available"
     },
     "reason": {
      "type": "string",
      "title": "Reason",
      "default": ""
     },
     "notice": {
      "type": "string",
      "title": "Notice",
      "description": "Set while upscaling cannot start yet: the job is accepted and waits",
      "default": ""
     },
     "estimate_seconds": {
      "type": "integer",
      "title": "Estimate Seconds"
     },
     "options": {
      "items": {
       "$ref": "#/components/schemas/UpscaleOption"
      },
      "type": "array",
      "title": "Options"
     }
    },
    "type": "object",
    "required": [
     "job_id",
     "media",
     "width",
     "height",
     "available",
     "estimate_seconds",
     "options"
    ],
    "title": "UpscaleOptions"
   },
   "UpscaleRequest": {
    "properties": {
     "webhook_url": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 500
       },
       {
        "type": "null"
       }
      ],
      "title": "Webhook Url",
      "description": "https:// URL that receives a signed POST when the job finishes"
     },
     "metadata": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Metadata",
      "description": "Up to 16 string keys you want echoed back on the job"
     },
     "name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 80
       },
       {
        "type": "null"
       }
      ],
      "title": "Name",
      "description": "Label shown in the BobaBanana studio"
     },
     "max_credits": {
      "anyOf": [
       {
        "type": "integer",
        "minimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Max Credits",
      "description": "Refuse the job (400 cost_above_max) if it would cost more than this"
     },
     "factor": {
      "type": "number",
      "title": "Factor",
      "description": "How much larger: 2 or 4 for an image job; 2, 2.25 (480p to 1080p) or 4 for a video job. GET /v1/jobs/{job_id}/upscale-options lists what a job allows and costs",
      "default": 2
     }
    },
    "type": "object",
    "title": "UpscaleRequest"
   },
   "VideoEstimate": {
    "properties": {
     "object": {
      "type": "string",
      "const": "estimate",
      "title": "Object"
     },
     "credits_estimate": {
      "type": "integer",
      "title": "Credits Estimate",
      "description": "What the job would hold now: the most it can cost"
     },
     "duration_seconds": {
      "type": "integer",
      "title": "Duration Seconds"
     },
     "scenes": {
      "type": "integer",
      "title": "Scenes",
      "description": "How many scenes (shots between cuts) the clip has; 1 for a continuous clip"
     },
     "scenes_made": {
      "type": "integer",
      "title": "Scenes Made",
      "description": "How many of them are made: all of them, or 1 with first_shot_only"
     },
     "scene_seconds": {
      "items": {
       "type": "number"
      },
      "type": "array",
      "title": "Scene Seconds",
      "description": "Each scene's length in seconds, in order"
     },
     "price_multiplier": {
      "type": "number",
      "title": "Price Multiplier",
      "description": "1.5 when several scenes are made (each is made on its own and joined), else 1"
     },
     "normal_credits": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Normal Credits",
      "description": "What one continuous clip of the same length costs, before the multiplier"
     },
     "first_shot_only": {
      "type": "boolean",
      "title": "First Shot Only"
     },
     "reason": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Reason",
      "description": "Why the price is higher, e.g. 'This clip has 3 scenes'"
     }
    },
    "additionalProperties": true,
    "type": "object",
    "required": [
     "object",
     "credits_estimate",
     "duration_seconds",
     "scenes",
     "scenes_made",
     "scene_seconds",
     "price_multiplier",
     "first_shot_only"
    ],
    "title": "VideoEstimate"
   },
   "VideoRequest": {
    "properties": {
     "webhook_url": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 500
       },
       {
        "type": "null"
       }
      ],
      "title": "Webhook Url",
      "description": "https:// URL that receives a signed POST when the job finishes"
     },
     "metadata": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Metadata",
      "description": "Up to 16 string keys you want echoed back on the job"
     },
     "name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 80
       },
       {
        "type": "null"
       }
      ],
      "title": "Name",
      "description": "Label shown in the BobaBanana studio"
     },
     "max_credits": {
      "anyOf": [
       {
        "type": "integer",
        "minimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Max Credits",
      "description": "Refuse the job (400 cost_above_max) if it would cost more than this"
     },
     "prompt": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 1500
       },
       {
        "type": "null"
       }
      ],
      "title": "Prompt",
      "description": "The scene. Used to make the first frame when no image is given, and as the motion prompt when motion is empty."
     },
     "image": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "$ref": "#/components/schemas/Media"
       },
       {
        "type": "null"
       }
      ],
      "title": "Image",
      "description": "Start frame to animate. If omitted, a first frame is generated from prompt + references."
     },
     "last_frame": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "$ref": "#/components/schemas/Media"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Frame",
      "description": "Last frame: the video moves from the first frame to this picture. Priced as a first + last frame video."
     },
     "extend_video": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "$ref": "#/components/schemas/Media"
       },
       {
        "type": "null"
       }
      ],
      "title": "Extend Video",
      "description": "Extend a clip: an mp4, mov or webm video of 15 seconds at most (url, or data up to about 25 MB). Its last frame becomes the start frame. Instead of image; priced as plain video unless last_frame is given."
     },
     "motion_video": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "$ref": "#/components/schemas/Media"
       },
       {
        "type": "null"
       }
      ],
      "title": "Motion Video",
      "description": "Motion transfer: a clip whose motion, performance and camera move are copied onto the subject in 'image' (or one asset in 'assets'). An mp4 or mov (H.264 or H.265), 1-15 seconds, 23.976-60 fps, each side at least 256 px, at most 50 MB (url, or data up to about 25 MB). The video is as long as the clip; duration_seconds is ignored. Made in the studio when it can be made in time, else with premium rendering; check cost.credits_estimate (the most it costs) or send max_credits."
     },
     "match_pose": {
      "type": "boolean",
      "title": "Match Pose",
      "description": "Motion transfer only: first redraw the subject in the poses, framing and shape of the clip's opening, middle and closing frames (the opening frame only for clips under 2 s; one opening-frame picture when the studio makes it; each a picture step at the picture price), and guide the video with those pictures. false sends the subject as it is (then only premium rendering can make it).",
      "default": true
     },
     "keep_sound": {
      "type": "boolean",
      "title": "Keep Sound",
      "description": "Motion transfer only: put the clip's own sound on the result when the clip has sound.",
      "default": true
     },
     "first_shot_only": {
      "type": "boolean",
      "title": "First Shot Only",
      "description": "Motion transfer only: when the clip has cuts (several scenes), make only its first shot, at the normal price of a clip that long. Without it every scene is made and joined under the clip's own sound, at 1.5x the normal price (see POST /v1/videos/estimate).",
      "default": false
     },
     "reference_images": {
      "items": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "$ref": "#/components/schemas/Media"
        }
       ]
      },
      "type": "array",
      "maxItems": 10,
      "title": "Reference Images"
     },
     "assets": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "maxItems": 10,
      "title": "Assets"
     },
     "motion": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 400
       },
       {
        "type": "null"
       }
      ],
      "title": "Motion",
      "description": "How things move, e.g. 'slow push-in, she turns and smiles'"
     },
     "duration_seconds": {
      "type": "number",
      "maximum": 15.0,
      "minimum": 2.0,
      "title": "Duration Seconds",
      "description": "2-10 s at 720p; 3-15 s at 1080p and 2160p (10 s at most with last_frame)",
      "default": 5
     },
     "aspect_ratio": {
      "type": "string",
      "enum": [
       "16:9",
       "9:16",
       "1:1",
       "4:3",
       "3:4"
      ],
      "title": "Aspect Ratio",
      "default": "16:9"
     },
     "resolution": {
      "type": "string",
      "enum": [
       "720p",
       "1080p",
       "2160p"
      ],
      "title": "Resolution",
      "description": "720p (standard), 1080p or 2160p (4K, made with premium rendering and priced from its live quote; 16:9 or 9:16; no voice or audio). Check cost.credits_estimate, or send max_credits.",
      "default": "720p"
     },
     "voice": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "$ref": "#/components/schemas/VoiceSample"
       },
       {
        "type": "null"
       }
      ],
      "title": "Voice",
      "description": "Voice to speak the script: '@handle' of a saved voice, or a sample to clone"
     },
     "voice_consent": {
      "type": "boolean",
      "title": "Voice Consent",
      "description": "Required with an uploaded voice sample",
      "default": false
     },
     "script": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 600
       },
       {
        "type": "null"
       }
      ],
      "title": "Script",
      "description": "Words the character says, lip-synced"
     },
     "audio": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "$ref": "#/components/schemas/Media"
       },
       {
        "type": "null"
       }
      ],
      "title": "Audio",
      "description": "Pre-recorded speech or soundtrack that drives the clip (instead of voice + script)"
     },
     "sound_effect": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/SoundEffect"
       },
       {
        "type": "null"
       }
      ]
     }
    },
    "type": "object",
    "title": "VideoRequest"
   },
   "VoiceSample": {
    "properties": {
     "file_id": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 64
       },
       {
        "type": "null"
       }
      ],
      "title": "File Id"
     },
     "url": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 2000
       },
       {
        "type": "null"
       }
      ],
      "title": "Url"
     },
     "data": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Data"
     },
     "transcript": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 1000
       },
       {
        "type": "null"
       }
      ],
      "title": "Transcript",
      "description": "Exact words spoken in the sample. If omitted, BobaBanana transcribes it first."
     }
    },
    "type": "object",
    "title": "VoiceSample",
    "description": "A recording of the voice to clone: 5 to 30 seconds, one speaker, no music."
   }
  },
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer",
    "description": "API key starting with bb_"
   },
   "apiKey": {
    "type": "apiKey",
    "in": "header",
    "name": "X-API-Key"
   }
  }
 },
 "externalDocs": {
  "description": "BobaBanana API docs",
  "url": "https://bobabanana.com/docs/api/"
 },
 "security": [
  {
   "bearer": []
  }
 ]
}