bvibebvibe.ai
NewMCP server · Claude connector · OpenAI-compatible text

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.

Text115Images87Video51Music20Sound & voice223D6

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.

Base URLhttps://bvibe.ai/api/v1

Authentication

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

POST/v1/generations— Create a generation

Runs 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*stringModel id from GET /models
input*objectThe model's params, exactly as GET /models/{id} lists them (camelCase)
operationstringgenerate (default), edit, upscale, motion, texture — see the model's operations
sourcefile idImage edit / upscale: the image to change
maskdata URLImage edit: PNG mask, white = area to change
expandobjectImage edit: { left, top, right, bottom } pixels of new canvas (outpainting)
factor2 | 4Image upscale factor
Request body
{
  "model": "flux.2-pro",
  "input": { "prompt": "A glass greenhouse on a cliff at sunset", "numImages": 2 }
}
Response
{
  "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"
}
GET/v1/generations/{id}— Get a generation

Status, 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.

Response
{
  "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 }
    ]
  }
}
GET/v1/generations/{id}/stream— Stream progress

Server-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.

Response
event: progress
data: {"id":"…","status":"running","progress":{"percent":42,"eta_seconds":12}, …}

event: succeeded
data: {"id":"…","status":"succeeded","output":{"files":[…]}, …}
GET/v1/generations— List generations

Your API generations, newest first. Query: type, status, limit (≤ 100), cursor (from next_cursor).

POST/v1/generations/{id}/cancel— Cancel a generation

Cancels a generation that is still queued and refunds it. Started generations run to the end (409 not_cancelable).

Text

POST/v1/chat/completions— Chat completions

OpenAI-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*stringA text model id (GET /models?type=text)
messages*array[{ role: system | user | assistant, content: string | parts }]; images as image_url parts for vision models
streambooleanServer-sent events (default false)
max_tokensintegerAnswer limit, default 4096
temperature / top_p / stop / seed—As in the OpenAI API
response_formatobject{ "type": "json_object" } for JSON answers
reasoningstringoff | low | medium | high for reasoning models
Response
{
  "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

POST/v1/estimate— Estimate the cost

Send 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.

Response
{ "object": "estimate", "model": "kling-4", "type": "video", "credits": 410, "exact": true, "balance": 2950, "affordable": true }
GET/v1/account— Account & balance

Your credit balance, and the calling key with its monthly limit and what it spent this month.

GET/v1/usage— Usage

Requests 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.

Check a price
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

GET/v1/models— List models

Every model the API can run, with operations and pricing. Query: type = text | image | video | music | audio | 3d. No key needed.

GET/v1/models/{id}— Get a model

Input params (type, required, default, allowed values, ranges, file inputs), operations, pricing and a ready-to-send example body.

POST/v1/files— Upload a file

Reference 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.

Response
{ "id": "01a1c10f-d5f1-…", "object": "file", "type": "image", "mime": "image/png", "url": "https://bvibe.ai/files/…", "width": 1024, "height": 1024 }
GET/v1/voices— List voices

Voice ids for voiceId (and lines[].voiceId) of voice models: built-in voices and the ones you designed.

POST/v1/tools/remove-background— Tools

Server 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.credits is 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"
  }
}
CodeStatusMeaning
invalid_params400Some input params are wrong; details lists each field
operation_unsupported400The model doesn't do this operation; details lists what it does
missing_api_key / invalid_api_key401No key, a wrong one, or a revoked one
insufficient_credits402Not enough credits for this request
key_limit_reached402The key's monthly credit limit would be exceeded
model_not_found404No such model, or it is not available right now
not_cancelable409The generation already started or finished
storage_full413Your library is full; results and uploads need space
rate_limited429Too many requests per minute — back off and retry
too_many_active_generations429Up to 50 generations may run at once per account
provider_error502The 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

Full reference 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.

Open llms.txt
Integrate bvibe into my app
Any stack+ reference

The full API reference with the live model list, plus integration rules. Paste into ChatGPT, Claude, Cursor or Copilot and describe your app.

Image generation feature
ImagesBackend+ reference

A backend endpoint that turns a user prompt into images, with price preview, progress and saved results.

Streaming chatbot
TextOpenAI SDK

A chat UI that streams answers token by token through the OpenAI-compatible endpoint.

Video with a live progress bar
VideoSSE+ reference

Long video jobs with queue position, percent and ETA over server-sent events, plus cancel.

Tools for an AI agent
AgentsFunction calling+ reference

Function-calling tool definitions so your own agent can generate media through bvibe.

Batch content pipeline
AutomationScripts+ reference

A script that reads a CSV of prompts, checks the total cost, runs generations in parallel and downloads results.