vivideo

v1.1.0
io.github.egocen-vivideo/vivideo Checked 4 days ago Published 10 days ago

AI video via the Vivideo API: agents sign up, buy a plan and make auto or manual videos.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

check_configuration

Check whether a Vivideo API key is configured for this MCP server. Call this FIRST. Returns { configured: boolean }. If false, ask the user to set the VIVIDEO_API_KEY environment variable (a key from https://app.vivideo.ai/account/api-keys) and restart the MCP server. Never asks for or exposes the key. No account yet: start_signup (new email, pay-first). Existing account: request_login_code + verify_login_code.

check_account

Get the account plan, premium status, and remaining credit balance. Use this to decide whether the user can generate a video (rendering needs a premium plan and enough credits). Returns plan, premium, credits, free_video_available, and links (upgrade / buy_credits). Cheap and safe to call often.

list_models

List the video models available for MANUAL mode plus the auto-generate pipeline (id "vivideo-auto"). Each model lists its operations, allowed durations, resolutions, aspect ratios, style presets and per-second credit rate — use these to build a valid create request. Filter with `mode` to keep the response small.

ParameterTypeDescription
modestringOnly return models for this mode.

list_avatars

List available avatars for auto-mode videos (the stock catalogue plus the account's own avatars). Stock avatars are grouped by person, each with a `looks` array — pass a looks[].avatar_id (or an owned avatar's id) as `avatar_id` in create_auto_video. Use `search`/`limit` to keep responses small.

ParameterTypeDescription
genderstring
limitintegerMax avatars to return (default 20).
searchstringFilter avatars by name.

list_voices

List available voices for auto-mode videos. Returns voice ids to pass as `voice_id` in create_auto_video. Filter by language/gender/search and cap with `limit`. Voice cloning is not available via the API.

ParameterTypeDescription
genderstring
languagestringe.g. "English".
limitintegerMax voices (default 20).
searchstring

list_brand_kits

List the account's brand kits (logo, colors, fonts, motion style). Returns brand_ref ids to pass as `brand_kit_id` in create_auto_video to produce an on-brand video.

estimate_credits

Estimate the credits a generation will cost, from the published per-model rates — BEFORE creating it. This is an estimate, not a charge; the exact amount is returned as credits_charged when you create the video. Use it with check_account to confirm the user can afford the request.

ParameterTypeDescription
mode *string
duration_secondsinteger
modelstringRequired for manual mode — a model id from list_models.
resolutionstringManual mode — one of the model's resolutions.

create_auto_video

Create a video in AUTO mode: Vivideo writes the script and produces a complete AI-avatar video from your prompt. Returns immediately with a video id and status "processing" (paid) or "preview" (free accounts — see the preview field and upgrade link). Then call wait_for_video or get_video. An Idempotency-Key is sent automatically so a retry never creates a duplicate. Rendering requires a premium plan and credits.

ParameterTypeDescription
prompt *stringWhat the video should show or say.
avatar_idstringFrom list_avatars. Omit for a default presenter.
brand_kit_idstringA brand_ref from list_brand_kits.
duration_secondsinteger5–300, default 30.
folder_idstring
idempotency_keystringOptional. Reuse the same key to make a retry safe.
namestring
orientationstring
voice_idstringFrom list_voices.

create_manual_video

Create a video in MANUAL mode: send your prompt straight to a specific model (get ids/options from list_models). The operation is inferred from inputs — add image_url for image-to-video. resolution/duration/aspect_ratio must match the model (an invalid value returns a 400 listing what is allowed). Returns a video id and status; then wait_for_video or get_video. Idempotency handled automatically.

ParameterTypeDescription
model *stringA model id from list_models, e.g. "veo31_fast".
prompt *string
aspect_ratiostring
duration_secondsintegerMust be one of the model's durations.
folder_idstring
generate_audioboolean
idempotency_keystring
image_urlstringPublic https image → image-to-video.
namestring
negative_promptstring
resolutionstring
seedinteger
stylestring

get_video

Get a video's current status and result. status is one of queued | processing | completed | failed | preview. When completed, video_url is the MP4. When failed, credits are refunded and error explains why. Cheap; prefer wait_for_video for polling instead of calling this in a tight loop.

ParameterTypeDescription
id *stringThe video id from a create call.

wait_for_video

Wait for a video to reach a terminal state (completed / failed / preview), then return it. Polls safely at the API-suggested interval up to a timeout. If it does not finish in time it returns { timed_out: true } with the latest status so you can hand control back and call again later — it never blocks indefinitely or over-polls.

ParameterTypeDescription
id *string
timeout_secondsintegerMax wait (default 300, cap 1800).

list_videos

List the account's videos, newest first. Filter by status and limit the count to keep responses small.

ParameterTypeDescription
limitintegerDefault 20.
statusstring

render_preview

For FREE accounts only: after the user upgrades, render a video that was returned as status "preview". Charges run on the same project (the first video after upgrading is free). If the video is already rendering/complete, returns its current state. If the account is still free, returns an upgrade_required error with an upgrade link.

ParameterTypeDescription
id *stringThe preview video id.

start_signup

Create a NEW Vivideo account for your user by paying for a plan (works without an API key). Returns a Stripe checkout_url: SHOW THIS LINK TO YOUR USER, who pays there (card, Link or Apple Pay) — the only human step. Then call get_signup_status with the checkout_id; once paid, the API key is saved and used automatically. If the email already has an account this returns error account_exists: use request_login_code + verify_login_code instead (payment never opens an existing account). The claim token stays inside this server and is never returned.

ParameterTypeDescription
email *stringYour user's email; the new account is created for it.
period *stringBilling period.
plan *stringPlan to buy.
key_namestringNames the key "Agent: <key_name>".

get_signup_status

Check a sign-up started with start_signup: pending | ready | claimed | needs_code | expired | failed. On "ready" the new API key is saved (~/.vivideo/config.json) and every Vivideo tool uses it right away — the key is never shown; if a key is already configured it is NOT replaced (key_issued_not_saved: the user runs `vivideo login`). "needs_code": the email had an account by payment time, the plan went to it; sign in with request_login_code. Pass wait_seconds (max 300) to wait for payment; polls at most every 10 s, so do not call it in a tight loop.

ParameterTypeDescription
checkout_id *stringFrom start_signup.
claim_tokenstringOnly if this server did not start the sign-up. Treat as a secret.
wait_secondsintegerWait up to this long for payment (default 0: check once).

request_login_code

Sign in to an EXISTING Vivideo account (works without an API key): emails a 6-digit code to the address. Ask your user to read it from their inbox, then call verify_login_code. Use this when start_signup says account_exists, when get_signup_status says needs_code, or to get a new key for an account you already use.

ParameterTypeDescription
email *string

verify_login_code

Finish signing in with the 6-digit code from the email (works without an API key). Creates a new API key for the account, saves it (~/.vivideo/config.json) and uses it for every Vivideo tool — the key is never shown. Returns the account plan and credits; if there is no plan yet, start_checkout buys one. If a key is already configured, the new key is NOT saved or used (status key_issued_not_saved): the user switches accounts with `vivideo login`.

ParameterTypeDescription
code *stringThe 6 digits from the email.
email *string
key_namestringNames the key "Agent: <key_name>".

start_checkout

Buy a plan (plan + period) or a credit top-up (credits) for the signed-in account (needs an API key: from VIVIDEO_API_KEY, start_signup or verify_login_code). Returns a Stripe checkout_url: SHOW IT TO YOUR USER to pay. It never pays by itself. Then call get_checkout. Credits need a plan first (402 plan_required).

ParameterTypeDescription
creditsintegerCredit top-up instead of a plan.
idempotency_keystringReuse to get the same checkout back on a retry.
periodstring
planstring

get_checkout

Check a checkout from start_checkout: pending | paid | expired | failed (needs an API key). Pass wait_seconds (max 300) to wait for payment; polls at most every 10 s. After "paid", check_account shows the new plan/credits.

ParameterTypeDescription
checkout_id *string
wait_secondsintegerDefault 0: check once.