One API for every model
bvibe API runs everything the platform can make — text, images, video, music, sound and 3D — from your own code. Same models, same credits, one key. Stream text, track every job's progress live and know the price before you run.
Introduction
The bvibe API runs every model on the platform from your code: text through an OpenAI-compatible endpoint, and images, video, music, sound and 3D as asynchronous generations you can follow live. Requests and responses are JSON; every call is billed in bvibe credits from your account balance.
https://bvibe.ai/api/v1Authentication
Create a key on the Keys & usage tab and send it in the Authorization header (or X-API-Key). Keys start with bv_live_, are shown once, and can have a monthly credit limit. Keep them on your server — never ship a key to a browser or mobile app.
Authorization: Bearer bv_live_••••••••••••••••••••••••••••Every answer carries x-request-id — quote it when you contact support.
Generations
/v1/generations— Create a generationRuns any image, video, music, sound or 3D model. The exact price is charged up front; failed and canceled generations are refunded automatically. Send an Idempotency-Key header to make retries safe.
| model* | string | Model id from GET /models |
| input* | object | The model's params, exactly as GET /models/{id} lists them (camelCase) |
| operation | string | generate (default), edit, upscale, motion, texture — see the model's operations |
| source | file id | Image edit / upscale: the image to change |
| mask | data URL | Image edit: PNG mask, white = area to change |
| expand | object | Image edit: { left, top, right, bottom } pixels of new canvas (outpainting) |
| factor | 2 | 4 | Image upscale factor |
{
"model": "flux.2-pro",
"input": { "prompt": "A glass greenhouse on a cliff at sunset", "numImages": 2 }
}{
"id": "01a1c10f-68c3-7674-9045-7e9153d7b1b3",
"object": "generation",
"type": "image",
"model": "flux.2-pro",
"operation": "generate",
"status": "queued",
"progress": { "stage": "queued", "percent": 0, "queue_position": 1, "elapsed_seconds": 0, "eta_seconds": 22, "detail": null },
"credits": 16,
"output": null,
"error": null,
"created_at": "2026-11-09T16:06:14.979Z"
}/v1/generations/{id}— Get a generationStatus, progress and results. Poll every 2–5 seconds, or use the stream below. Result files have absolute URLs and are also saved in your bvibe library.
{
"id": "01a1c10f-…",
"status": "succeeded",
"progress": { "stage": "succeeded", "percent": 100, "elapsed_seconds": 18.4, "eta_seconds": 0 },
"credits": 16,
"output": {
"files": [
{ "id": "01a1c10f-71e4-…", "type": "image", "url": "https://bvibe.ai/files/…/1.png", "mime": "image/png", "width": 1536, "height": 1024 }
]
}
}/v1/generations/{id}/stream— Stream progressServer-sent events: "progress" with the full generation object whenever the stage or percent changes, then one of "succeeded", "failed" or "canceled" — and the stream ends. Percent is estimated from the model's typical run time and reaches 100 only when files are saved.
event: progress
data: {"id":"…","status":"running","progress":{"percent":42,"eta_seconds":12}, …}
event: succeeded
data: {"id":"…","status":"succeeded","output":{"files":[…]}, …}/v1/generations— List generationsYour API generations, newest first. Query: type, status, limit (≤ 100), cursor (from next_cursor).
/v1/generations/{id}/cancel— Cancel a generationCancels a generation that is still queued and refunds it. Started generations run to the end (409 not_cancelable).
Text
/v1/chat/completions— Chat completionsOpenAI-compatible: point any OpenAI SDK at the bvibe base URL. With "stream": true the answer arrives as chat.completion.chunk events; the last chunk carries usage with the credits charged. Billing: an estimate is held when the request starts and settled to the real token cost at the end.
| model* | string | A text model id (GET /models?type=text) |
| messages* | array | [{ role: system | user | assistant, content: string | parts }]; images as image_url parts for vision models |
| stream | boolean | Server-sent events (default false) |
| max_tokens | integer | Answer limit, default 4096 |
| temperature / top_p / stop / seed | — | As in the OpenAI API |
| response_format | object | { "type": "json_object" } for JSON answers |
| reasoning | string | off | low | medium | high for reasoning models |
{
"id": "01a1c10f-9959-…",
"object": "chat.completion",
"model": "claude-sonnet-5.5",
"choices": [{ "index": 0, "message": { "role": "assistant", "content": "Salt wind on the dunes…" }, "finish_reason": "stop" }],
"usage": { "prompt_tokens": 14, "completion_tokens": 22, "total_tokens": 36, "credits": 0.31 }
}Prices & account
/v1/estimate— Estimate the costSend the same body you would send to /generations (or /chat/completions) — nothing runs and nothing is charged. Generations get the exact price; text gets an estimate for a ~1k-token answer plus the maximum for max_tokens.
{ "object": "estimate", "model": "kling-4", "type": "video", "credits": 410, "exact": true, "balance": 2950, "affordable": true }/v1/account— Account & balanceYour credit balance, and the calling key with its monthly limit and what it spent this month.
/v1/usage— UsageRequests and credits per day, type and model over the last N days (query: days ≤ 90). With a key: that key; from the playground: the whole account.
curl https://bvibe.ai/api/v1/estimate \
-H "Authorization: Bearer $BVIBE_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "model": "kling-4", "input": { "prompt": "Paper boat in the rain", "duration": 10 } }'
# → { "credits": 410, "exact": true, "balance": 2950, "affordable": true }Models, files & tools
/v1/models— List modelsEvery model the API can run, with operations and pricing. Query: type = text | image | video | music | audio | 3d. No key needed.
/v1/models/{id}— Get a modelInput params (type, required, default, allowed values, ranges, file inputs), operations, pricing and a ready-to-send example body.
/v1/files— Upload a fileReference images, video, audio or 3D for generations. Multipart field "file", or JSON { "url": "https://…" } (up to 6 MB) or { "data": "data:image/png;base64,…", "name": "ref.png" }. Pass the returned id in a model's file params or as "source". Files count against your library storage.
{ "id": "01a1c10f-d5f1-…", "object": "file", "type": "image", "mime": "image/png", "url": "https://bvibe.ai/files/…", "width": 1024, "height": 1024 }/v1/voices— List voicesVoice ids for voiceId (and lines[].voiceId) of voice models: built-in voices and the ones you designed.
/v1/tools/remove-background— ToolsServer tools billed at their own price: POST /tools/remove-background { source } → { file } (transparent PNG); POST /tools/translate { text, target, source? } → { text }. GET /tools lists them with prices.
Billing & limits
- Generations are charged their exact price (the same as
/estimate) when created. Failed and canceled ones are refunded automatically. - Text holds an estimate when the request starts and settles to the real token cost when the answer ends — the difference is charged or refunded.
usage.creditsis the final amount. - Key budgets: a key with a monthly limit refuses requests that would exceed it (
402 key_limit_reached). - Rate limits per key: 120 generations and 300 chat completions per minute; up to 50 generations running at once per account. Answers over the limit are
429— retry with exponential backoff. - Results are stored in your bvibe library (and count toward its storage), so you'll find every API output on the website too. API outputs are never published to Explore.
Errors
Every error has the same shape. details appears when there is something field-specific to fix.
{
"error": {
"type": "invalid_request_error",
"code": "invalid_params",
"message": "Invalid generation parameters",
"details": { "numImages": ["Too big: expected number to be <=4"] },
"request_id": "req-1a2b"
}
}| Code | Status | Meaning |
|---|---|---|
| invalid_params | 400 | Some input params are wrong; details lists each field |
| operation_unsupported | 400 | The model doesn't do this operation; details lists what it does |
| missing_api_key / invalid_api_key | 401 | No key, a wrong one, or a revoked one |
| insufficient_credits | 402 | Not enough credits for this request |
| key_limit_reached | 402 | The key's monthly credit limit would be exceeded |
| model_not_found | 404 | No such model, or it is not available right now |
| not_cancelable | 409 | The generation already started or finished |
| storage_full | 413 | Your library is full; results and uploads need space |
| rate_limited | 429 | Too many requests per minute — back off and retry |
| too_many_active_generations | 429 | Up to 50 generations may run at once per account |
| provider_error | 502 | The model provider failed; retry with backoff |
Models
The live catalog. Open a model to see its params, operations and a ready-to-send request body.
301 of 301 models
Prompts for LLMs
Every endpoint, error and rule plus the live list of models with their params and prices, as plain text (llms.txt). Give it to any model as context.
The full API reference with the live model list, plus integration rules. Paste into ChatGPT, Claude, Cursor or Copilot and describe your app.
A backend endpoint that turns a user prompt into images, with price preview, progress and saved results.
A chat UI that streams answers token by token through the OpenAI-compatible endpoint.
Long video jobs with queue position, percent and ETA over server-sent events, plus cancel.
Function-calling tool definitions so your own agent can generate media through bvibe.
A script that reads a CSV of prompts, checks the total cost, runs generations in parallel and downloads results.