@antseed/provider-venice-video

中文文档
0.1.16发布于 2026/11/07TypeScriptES Module近 30 天下载 2743

Venice video API relay for AntSeed

原始使用文档
文档目录3 节
  1. Configuration
  2. Aspect ratio and audio
  3. Video edits

@antseed/provider-venice-video

Relays native Venice video requests to the Venice API.

Configuration

antseed plugin add @antseed/provider-venice-video
export VENICE_VIDEO_API_KEY=<seller-api-key>
  • VENICE_VIDEO_API_KEY: Venice API key, sent as a bearer token
  • VENICE_VIDEO_BASE_URL: optional, defaults to https://api.venice.ai
  • ANTSEED_ALLOWED_SERVICES: Venice video model names
  • ANTSEED_SERVICE_UNIT_BILLING_MODELS_JSON: venice-video pricing using video_generations or video_seconds
  • ANTSEED_SERVICE_CAPABILITIES_JSON: optional video options to advertise
  • VENICE_VIDEO_MIN_BALANCE_USD: optional, default 0. Models stop being advertised while the key's Venice balance (USD + DIEM + bundled credits) is at or below it

Each seller health sweep runs two free checks. The account check reads GET /api/v1/api_keys/rate_limits (key, access, balance): a rejected key, blocked access, or a balance at the minimum stops every model being advertised. The model check reads Venice's public GET /api/v1/models?type=video: a model Venice no longer lists stops being advertised. The list doesn't count against the key's video request limit. A model is advertised again once both checks pass. Neither call generates media.

Venice's model list does not say which image-to-video models accept a last frame, so the seller asks Venice at startup. For each image-to-video model without configured video.inputs, it sends one create that Venice must reject (empty prompt, impossible duration). Venice lists every problem in its 400 answer and names end_image_url when the model can't take one, so the check starts no job and costs nothing. Models Venice doesn't object to announce end_image_url. The checks are paced to stay under Venice's 40 video requests a minute; an unclear answer announces the first frame only. To skip the check, or to require frames, announce them yourself:

{
  "seedance-2-0-image-to-video-basic": {
    "video": { "inputs": ["first_frame", "last_frame"], "requiredInputs": ["first_frame"] }
  },
  "pixverse-c1-transition": {
    "video": { "inputs": ["first_frame", "last_frame"], "requiredInputs": ["first_frame", "last_frame"] }
  }
}

With antseed seller start, set this per service as seller.providers.<name>.services.<id>.capabilities.

At startup the seller reads Venice's video model list (GET /api/v1/models?type=video) and announces the queue fields each model takes as supportedParameters: prompt, duration, resolution and aspect_ratio when the model lists values, audio when it is configurable, and the frame fields for the video.inputs you announce (image_url, end_image_url, reference_image_urls). When you announce none, image-to-video models get image_url, plus end_image_url when the startup check says the model takes a last frame. Buyers send only the fields listed. A service that sets supportedParameters itself keeps it. If the list cannot be read or does not include the model, the service is announced without it.

Aspect ratio and audio

Venice prices a clip by its aspect ratio and audio as well as its resolution and duration (for example Seedance 2.5 at 480p for 4 s: $0.51 at 16:9, $0.67 at 21:9; Veo 3.1 costs less without audio). Price them with components that match aspect_ratio and audio ("true" / "false") next to resolution (metadata v16, up to 64 components per model), for example:

{ "unit": "video_seconds", "priceUsd": 0.0701, "match": { "resolution": "480p", "aspect_ratio": "16:9", "audio": "true" } }

Buyers price a create that leaves out aspect_ratio at the first announced one, and one that leaves out audio at video.audio, and the plugin sends Venice the same:

  • video.aspectRatios: a create with another aspect_ratio is answered 422 unsupported_video_option before payment and without calling Venice. A create without one is sent with the first listed.
  • video.audio: false (a silent service) refuses audio: true and, for a model whose audio Venice lets you turn off (audio_configurable), sends audio: false when the create leaves it out (Venice adds audio by default). While Venice's model list hasn't been read (or lacks the model), a create without audio is refused instead, so it must say audio: false.

A service with video.audio: true accepts audio: false; give it its own price if Venice charges less. Options you don't announce are relayed as sent.

Video edits

Models Venice marks video_input (for example minimax-h3-max-recast, kling-v3-standard-motion-control, wan-2-7-video-to-video) take a source video as video_url. For each one, the seller announces video and reference_image in video.inputs, and video_url and image_url (the character for motion control; Venice accepts it on every edit model) in supportedParameters. To learn whether the model takes reference images, it sends one create Venice must reject (empty reference_image_urls, impossible duration). Venice answers that a reference is required, not supported, or says nothing, and nothing is queued. A required one is announced in video.requiredInputs, and an accepted one adds reference_image_urls. Announcing video.inputs yourself skips this check. The seller also announces each edit model's resolutions from Venice's model list, in Venice's case.

The buyer pays for duration. Venice bills an edit listing only Auto durations for the whole source, and an output shorter than duration is never charged, so for every edit model the seller measures the source and answers 422 invalid_video_duration, before payment and without calling Venice, unless duration is the source length in whole seconds, rounded down (for example "6s" for a 6.2 s source). The source must be inline (data:video/mp4;base64,...). Otherwise the seller does not check the source; Venice does. A job Venice rejects after it was queued (for example motion control or Recast on a video without a person, or a source that is too short) is answered on retrieve with a JSON 400/422. The plugin turns that into {"status":"FAILED","error":"<reason>"}, so the job's payment channel is closed at once instead of when it expires. Venice answers a body above 32.5 MB with an HTML 413; the plugin turns that into a JSON 413 request_too_large.

The plugin relays POST /api/v1/video/queue unchanged, apart from the announced options above, and handles POST /api/v1/video/retrieve by returning Venice JSON status or streaming the finished MP4 through the seller. For private models, Venice returns a short-lived download_url on queue; the plugin removes it from the buyer's response, keeps it for 24 hours, and streams the file from it once retrieve reports COMPLETED. Kept URLs are saved in the seller's data directory (venice-video-download-urls.json, set through ANTSEED_DATA_DIR, which antseed seller start passes automatically), so they survive a seller restart. Other Venice model metadata is not enforced. POST /api/v1/video/complete is not relayed.

Check that Venice's terms allow your offering. AntSeed sellers must add value rather than resell raw API access.

版本与发布记录

@antseed/provider-venice-video 共发布 18 个版本,首次发布于 2026/10/08;过去 12 个月发布了 18 个版本。

版本发布日期距今
0.1.16latest2026/11/07今天
0.1.152026/11/071 天前
0.1.142026/11/043 天前
0.1.132026/11/043 天前
0.1.122026/11/043 天前
0.1.112026/11/016 天前

关于 @antseed/provider-venice-video 的常见问题

@antseed/provider-venice-video 是什么?

Venice video API relay for AntSeed

如何安装 @antseed/provider-venice-video?

在项目目录运行 npm install @antseed/provider-venice-video,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:@antseed/node(>=0.1.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@antseed/provider-venice-video 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@antseed/provider-venice-video 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@antseed/provider-venice-video 可以商用吗?

@antseed/provider-venice-video 使用 未声明 许可。package.json 没有声明许可证。没有许可证的代码默认保留全部权利,商用前请联系作者或查看仓库中的 LICENSE 文件。以上为概括,不构成法律意见,请以许可原文为准。

@antseed/provider-venice-video 的下载量有多少?

根据 npm 官方下载统计,@antseed/provider-venice-video 在 2026/10/06 – 2026/11/04 这 30 天内被下载 2,743 次,日均约 91 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@antseed/provider-venice-video 还在维护吗?

最新版本 0.1.16 发布于 2026/11/07(今天);至今共发布 18 个版本,其中过去 12 个月发布了 18 个;首次发布于 2026/10/08。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。