BobaBanana API: generate consistent images, videos and voices from references
The BobaBanana API is a REST API that turns reference images and reference voices into new images, videos, speech and sound effects, keeping characters, products and places consistent from one result to the next. Send a prompt plus up to 10 reference pictures and get an image. Send a start frame, or let BobaBanana make one, and get a video. Add a voice sample and a script, and the character speaks with lip sync.
It is built for two kinds of callers: apps that need media generation behind a simple HTTP call, and AI agents (LLM agents and assistants with tool use) that need a tool with predictable JSON in and out.
- Base URL:
https://bobabanana.com/api/v1 - Auth:
Authorization: Bearer bb_...(how to get a key) - Format: JSON in, JSON out; every generation is an asynchronous job
- Machine-readable: OpenAPI 3.1 spec · llms.txt · llms-full.txt
What you can build with the BobaBanana API#
- Reference-consistent image generation. Keep the same face, outfit, product or room across many pictures by passing reference images. Image API →
- Video in four modes. Image to video (optional last frame), text to video (optionally with references), motion transfer and extend: 2 to 10 seconds at standard quality, 3 to 15 at 1080p and 4K; a motion transfer is as long as its clip (1 to 15 seconds). Video API →
- Text to video, motion transfer and extend. Describe a scene with references and BobaBanana generates the first frame and animates it in one job; copy the movement of a 1 to 15 second clip onto a picture or library character; or continue an uploaded clip of up to 15 seconds from its last frame.
- Talking videos with a cloned voice. Upload 5 to 30 seconds of a voice, write a script, and get a lip-synced talking clip.
- Audio-driven video. Supply your own speech or soundtrack and the clip is driven by it.
- Voice cloning and text-to-speech. Turn a short sample into new speech in that voice. Speech API →
- Sound effects from text. "Rain on a tin roof with distant thunder", 2 to 20 seconds. Sound effects →
- Reusable library assets. Reference approved characters, objects, places and voices from your BobaBanana workspace by
@handle. Assets →
Endpoints at a glance#
| Method | Path | What it does |
|---|---|---|
POST |
/v1/files |
Upload a reference image or voice/audio file |
POST |
/v1/images |
Generate an image from a prompt and references |
POST |
/v1/videos |
Generate a video (start frame or generated frame, optional last frame, motion transfer, extend; optional voice, audio, sound effect) |
POST |
/v1/videos/estimate |
Price a motion transfer before you send it: its scenes, price multiplier and credits |
POST |
/v1/speech |
Speak text in a saved or cloned voice |
POST |
/v1/sound-effects |
Generate a sound effect from text |
GET |
/v1/jobs/{id} |
Job status and result URLs (?wait=30 long-polls) |
GET |
/v1/jobs |
List your jobs |
POST |
/v1/jobs/{id}/upscale |
Upscale a finished image or video job (2x, 2.25x, 4x) |
GET |
/v1/jobs/{id}/upscale-options |
The sizes a job can be upscaled to, with prices |
POST |
/v1/jobs/{id}/cancel |
Cancel a job |
DELETE |
/v1/jobs/{id} |
Delete a finished job and its results |
POST |
/v1/jobs/{id}/webhook/replay |
Send a finished job's webhook again |
GET, DELETE |
/v1/files/{id} |
Look up or delete an uploaded file |
GET |
/v1/assets, /v1/voices |
List approved library assets and voices |
GET |
/v1/balance |
Your workspace's credits |
GET |
/v1/prices |
What each kind of job costs (credits) |
GET |
/v1/status |
Engine availability, your queue, typical durations and prices |
A first request in 30 seconds#
curl https://bobabanana.com/api/v1/images \
-H "Authorization: Bearer $BOBABANANA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "the sofa in a sunlit loft, morning light",
"reference_images": [{"url": "https://example.com/sofa.jpg", "label": "a mustard yellow three-seat sofa"}],
"aspect_ratio": "16:9"
}'
The response is a job with "status": "queued". Poll GET /v1/jobs/{id}?wait=30 or pass a webhook_url; when status is succeeded, download output.image.url. The full walkthrough is in the quickstart.
How the BobaBanana API works#
- You send a request. Inputs can be uploaded files, public
https://URLs or base64 data. - BobaBanana queues a job and answers immediately with
202 Acceptedand a job ID. - The studio makes it in steps: first frame, speech, sound effect, then animation.
- You collect the result by polling, long-polling or a signed webhook. Result links are signed and valid for 24 hours.
Jobs made through the API also appear in the BobaBanana studio, so a person can review what an agent created.
Frequently asked questions#
What is the BobaBanana API?#
A REST API for generating images, videos, speech and sound effects that stay consistent with the reference images and voices you provide. It is designed for both apps and AI agents.
Can the API keep the same character across many images and videos?#
Yes. Pass the same reference images (or a saved library asset by @handle) in each request. References are labelled in the prompt, so several characters, products and places can appear together.
Does it support image-to-video and text-to-video?#
Both. Give image to animate an existing picture, or give prompt plus optional references and BobaBanana generates the first frame, then animates it. /v1/videos also does motion transfer (motion_video) and extends a clip (extend_video).
Can a video speak with a cloned voice?#
Yes. Send voice (a 5 to 30 second sample, with voice_consent: true) and a script. The speech is generated in that voice and the video is lip-synced to it.
Is there an OpenAPI spec for agents and code generators?#
Yes, at https://bobabanana.com/docs/openapi.json (also served live at /api/v1/openapi.json). The agents guide has ready-made tool definitions.
How long does a job take?#
Typically one to three minutes for an image, under a minute for speech or a sound effect, and several minutes for a video. GET /v1/status reports current typical durations, and each queued job carries an eta_seconds estimate.
How do I get an API key?#
API access is in early access. Keys are created in a BobaBanana workspace under Settings → API keys. See authentication.
Last updated 2026-12-02 · View as Markdown