BobaBanana API

BobaBanana API reference: every endpoint, parameter and object

The BobaBanana API has 21 operations under https://bobabanana.com/api/v1, grouped below by what they do. Each page lists the parameters, body fields, an example in curl, Python and JavaScript, the response and the errors. All of it is generated from the OpenAPI 3.1 spec.

View as Markdown

At a glance

Base URL
https://bobabanana.com/api/v1
Auth
Authorization: Bearer bb_...
Format
JSON in and out; uploads are multipart

Generate#

Create jobs.

Generate
Method Path What it does
POST /v1/images Create an image job
POST /v1/videos Create a video job
POST /v1/videos/estimate Price a motion transfer before you send it
POST /v1/speech Create a speech job
POST /v1/sound-effects Create a sound effect job
GET /v1/jobs/{job_id}/upscale-options List upscale sizes and prices for a job
POST /v1/jobs/{job_id}/upscale Upscale a finished image or video job

Jobs#

Follow and manage jobs.

Jobs
Method Path What it does
GET /v1/jobs List your jobs, newest first
GET /v1/jobs/{job_id} Get a job, or wait for it to finish
DELETE /v1/jobs/{job_id} Delete a finished job and its results
POST /v1/jobs/{job_id}/cancel Cancel a queued or running job
POST /v1/jobs/{job_id}/webhook/replay Send a finished job's webhook again

Files#

Uploads.

Files
Method Path What it does
POST /v1/files Upload a reference image or audio file
GET /v1/files/{file_id} Get an uploaded file
DELETE /v1/files/{file_id} Delete an uploaded file

Library#

Assets and voices.

Library
Method Path What it does
GET /v1/assets List approved library assets
GET /v1/assets/{handle} Get one library asset
GET /v1/voices List saved voices

Account#

Credits, prices and status.

Account
Method Path What it does
GET /v1/status Check availability, your queue and prices
GET /v1/balance Get your workspace's credit balance
GET /v1/prices List the price of each kind of job

Webhook#

jobFinished: the event BobaBanana POSTs to your webhook_url when a job finishes. See Webhooks.