visionstory-mcp

v0.0.16
visionstory-mcp Checked 4 days ago Published 19 days ago

MCP server for the VisionStory API - task-oriented tools for AI talking-avatar video generation.

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

generate_video

Generate a lip-synced talking avatar video and wait for it to finish. Use this when the user wants a video of an avatar speaking a script. Optional prompt supplies vs_character_v4 motion instructions (up to 2000 characters) with either script source; empty values retain existing behavior. Provide exactly one script source: `text` (spoken with `voice_id`), `audio_url`, or `audio_file` (local path, mp3/wav/m4a/mp4/avi, <=30MB). `avatar_id` comes from list_avatars or create_avatar; pick `voice_id` from list_voices and `model_id` from list_models. Blocks until the video is ready (up to `wait_timeo…

ParameterTypeDescription
avatar_id *string
aspect_ratiostring
audio_file
audio_url
background_colorstring
client_request_id
emotionstring
model_idstring
prompt
resolutionstring
speech_ratestring
text
voice_idstring
wait_timeout_secinteger

get_video

Get the status and result of a video generation task by `video_id`. Use it to check on a task that generate_video reported as still rendering, or to re-fetch a finished video's `video_url`. Status is one of: queued, creating, created (done, `video_url` available), failed (credits auto-refunded).

ParameterTypeDescription
video_id *string

create_avatar

Create a custom avatar from a single portrait photo; returns an `avatar_id` to use in generate_video. Provide exactly one of `image_url` (public HTTPS URL) or `image_file` (local path, jpg/png/webp/heic, <=10MB). Use list_avatars first if the user may already have a suitable avatar.

ParameterTypeDescription
image_file
image_url

list_avatars

List either avatars owned by the account (default) or the public library (`is_public=true`), newest first. Page with `limit` (1–100) and pass the returned `next_cursor` back as `cursor`; 0 means no more pages. Owned avatars include framing for 9:16, 16:9, and 1:1. Call this before generate_video to pick a valid `avatar_id`.

ParameterTypeDescription
cursor
is_public
limit

update_avatar_framing

Change the framing for one aspect ratio of an avatar owned by the account. Start from the current values returned by list_avatars. `zoom` must be at least 1; offsets range from -1 to 1. Public avatars cannot be reframed. The saved crop is face-checked and used by later videos with the same aspect ratio.

ParameterTypeDescription
aspect_ratio *string
avatar_id *string
offset_x *number
offset_y *number
zoom *number

clone_voice

Clone a voice from a clean speech recording; returns a `voice_id` usable in generate_video. Provide exactly one of `audio_url` or `audio_file` (local path, mp3/wav/m4a/mp4/avi, <=30MB). Optional `preview_text` (<=100 chars) is spoken in the preview sample. Cloning runs synchronously and can take a couple of minutes. Subscription plans allow 3-5 active cloned voices.

ParameterTypeDescription
audio_file
audio_url
preview_text

list_voices

List public and cloned voices with structured `locale`, `language`, `gender`, `age`, `accent`, `provider`, and `use_cases` plus a preview URL. Filter with a BCP 47 `locale`: a base tag such as `es` matches every Spanish variant, while `es-MX`, `en-GB`, `zh-TW`, or `zh-HK` selects one region. Provider and locale matching are case-insensitive. Page with `limit` and the returned `next_cursor` as `cursor`. Call this before generate_video or create_speech to select a valid `voice_id`.

ParameterTypeDescription
cursor
limit
locale
provider

list_models

List avatar rendering models with their supported aspect ratios and resolutions. Use it to validate `model_id`/`resolution` combinations before generate_video; default `vs_character_v4` fits most cases.

get_credits

Check the account's subscription plan and remaining credits. Use it before expensive generations or when a request fails with an insufficient-credits error.

upload_asset

Upload a reusable media asset (image/audio/video) and get an `asset_id` to reference in AI Video generation requests. Provide exactly one of `url` (public URL) or `file` (local path; image <=30MB, audio <=15MB, video <=100MB). Re-uploading identical content returns the existing asset. Note the related AI Video endpoints enforce a small per-account concurrency cap during beta (HTTP 429 = wait for running tasks to finish, then retry).

ParameterTypeDescription
file
url

list_videos

List the account's recent talking-avatar video tasks, newest first. Use this to recover a previous `video_id`, inspect generation history, or find a finished `video_url` without submitting another paid generation.

delete_video

Permanently delete a talking-avatar video by `video_id`. This is destructive: only set `confirm=true` after the user explicitly confirms deletion immediately before the call.

ParameterTypeDescription
video_id *string
confirmboolean

delete_avatar

Permanently delete a custom avatar by `avatar_id`. This is destructive: only set `confirm=true` after the user explicitly confirms deletion immediately before the call.

ParameterTypeDescription
avatar_id *string
confirmboolean

delete_voice

Permanently delete a cloned voice by `voice_id`. This is destructive: only set `confirm=true` after the user explicitly confirms deletion immediately before the call.

ParameterTypeDescription
voice_id *string
confirmboolean

list_assets

List reusable uploaded media assets with optional `kind` (`image`, `audio`, or `video`), cursor, and page limit filters. Use returned string `asset_id` values in image or AI Video generation tools.

ParameterTypeDescription
cursor
kind
limit

delete_asset

Permanently delete a reusable media asset by `asset_id`. This is destructive: only set `confirm=true` after the user explicitly confirms deletion immediately before the call.

ParameterTypeDescription
asset_id *string
confirmboolean

create_speech

Synthesize `text` with a public or cloned `voice_id`. Optional BCP 47 `locale` (e.g. `en-GB`, `zh-TW`) steers pronunciation. Optional `speech_rate` is slow, normal, or fast; null or omission uses normal speed without changing billing. The synchronous tool returns playable MP3 audio plus actual duration, character usage, and credit metadata; save the audio because the service does not store it.

ParameterTypeDescription
text *string
voice_id *string
locale
speech_rate

list_image_models

List image-generation models and their supported aspect ratios, resolutions, reference-image limits, and credit costs. Call this before create_image instead of guessing model parameters.

create_image

Generate or edit an image from `prompt` using `model_id`. References may be public URLs or asset IDs. Call list_image_models for prompt, resolution and reference limits and credit_by_resolution pricing. Image requests allow at least 240 seconds. Read reference_pricing for surcharges. Provider 504/37008 and 502/37009 responses are uncharged and may be retried once after the response; never resend a pending request or blindly retry an ambiguous client timeout.

ParameterTypeDescription
model_id *string
prompt *string
aspect_ratio
ref_asset_ids
ref_urls
resolution

list_ai_video_models

List AI Video models with allowed durations, aspect ratios, resolutions, audio support, and media-reference constraints. Call this before estimating cost or generating a video.

estimate_ai_video_cost

Estimate the exact credit charge for an AI Video before submitting it. Use values advertised by list_ai_video_models, including resolved fractional duration for auto/video edits and reference_video_duration_sec for all Seedance models, Kling 4.0, or V5 Pro video pricing. Cap each reference video at 15s for Seedance 2.0 series or 30s for Seedance 2.5 / Flash and Kling 4.0. Audio does not change pricing.

ParameterTypeDescription
duration_sec *number
model_id *string
generate_audio
reference_video_duration_secnumber
resolution

generate_ai_video

Generate an AI video and wait for completion. Supports text-to-video, first/end-frame animation, or multimodal references by public URL or reusable asset ID. Frame mode and `refs` are mutually exclusive. A deterministic idempotency key makes retries safe; on timeout use get_ai_video instead of resubmitting.

ParameterTypeDescription
model_id *string
prompt *string
aspect_ratio
client_request_id
duration_sec
end_frame_asset_id
end_frame_url
first_frame_asset_id
first_frame_url
generate_audio
ref_asset_ids
ref_urls
resolution
wait_timeout_secinteger

get_ai_video

Get one AI Video task by `video_id`, or up to 20 tasks with `video_ids`. Use this to poll timed-out work: queued/creating means continue waiting, created includes `video_url`, and failed tasks are automatically refunded.

ParameterTypeDescription
video_id
video_ids

list_ai_videos

List AI Video tasks with cursor pagination. Optional status accepts comma-separated queued,creating,created,failed; omit for all tasks. Use queued,creating to inspect in-flight tasks before submitting; follow all pages. Concurrency 429 responses include error.details.limit and error.details.in_flight.

ParameterTypeDescription
cursor
limit
status

delete_ai_video

Permanently delete an AI Video task by `video_id`. This is destructive: only set `confirm=true` after the user explicitly confirms deletion immediately before the call.

ParameterTypeDescription
video_id *string
confirmboolean

transcribe_audio

Transcribe speech audio to text with word-level timestamps. Provide exactly one audio source: a public `audio_url`, a local `audio_file` path, or a reusable `asset_id` from list_assets. Set `diarize=true` to label speaker turns, `srt=true` to also get an SRT subtitle track. Costs 1 credit per started 5 minutes of audio.

ParameterTypeDescription
asset_id
audio_file
audio_url
diarizeboolean
srtboolean

align_audio

Force-align known `text` against its spoken audio and get word-level timestamps — e.g. align a script with the MP3 from create_speech to build accurate subtitles for any voice. Provide exactly one audio source (`audio_url` / `audio_file` / `asset_id`). Costs 1 credit per started 5 minutes of audio.

ParameterTypeDescription
text *string
asset_id
audio_file
audio_url

understand_media

Extract structured JSON from 1–8 image/audio/video references. Each input is exactly one asset_id, public url, or inline_data. Provide a JSON Schema with top-level type object. Returns output, usage, and cost_credit. Synchronous (180s), charged only on success, minimum 1 credit. No model selection or free-text mode.

ParameterTypeDescription
inputs *array
prompt *string
schema *object