跳到正文

fujc683

ai-video-api-gateway

One OpenAI-compatible endpoint for Seedance, Kling, Wan, PixVerse and Veo.

README 已保存到本站,可直接阅读

Documentation snapshot

README 快照

这篇是英文原文

下面正文是项目自己的英文 README。想读全文就用浏览器自带的整页翻译: Chrome / Edge 点地址栏右侧的翻译图标,或用右键菜单里的「翻译成中文」; 手机浏览器一般在菜单里。

本页保存的是公开项目资料快照,阅读过程不需要连接 GitHub。

AI Video API Gateway — one endpoint for every video model

Route Seedance, Kling, Wan, PixVerse and Veo through one OpenAI-compatible endpoint.

图片:Awesome 图片:License: CC BY 4.0

👉 Get a video API key

https://gola.apimart.ai/k-rQYkFg

💰 Pricing · 🔑 API key · 📘 Docs


One endpoint, every video model

Instead of integrating Seedance, Kling, Wan, PixVerse and Veo separately, point everything at one gateway and switch with a model string.

ModelStrengthPrice / s
Seedance 2.5 Flashlong clips (30 s), fast$0.1836
Seedance 2.0motion realism$0.20
Kling 4.0 Flashstylized motion$0.19
Wan 3.0cheap drafts$0.09
PixVerse 6creative transitions$0.12
Veo 31080p + native audio$0.35

Routing pattern

MODELS = {
    "draft":   ("seedance-2-5-flash", "480p"),
    "final":   ("seedance-2-5-flash", "720p"),
    "audio":   ("veo-3",              "1080p"),
    "cheap":   ("wan-3-0",            "480p"),
}

def make(prompt, tier="draft", seconds=4):
    model, res = MODELS[tier]
    return submit(model=model, prompt=prompt, duration=seconds, resolution=res)

Fallback on failure

try:
    return submit("seedance-2-5-flash", ...)
except UpstreamError:
    return submit("kling-4-0-flash", ...)   # same payload shape

What the gateway handles for you

  • Unified auth — one key, per-model quota
  • Unified billing — one balance, one invoice, per-second metering
  • Unified retry — transient upstream errors are retried before you see them
  • Unified schema — duration / ratio / resolution mean the same thing

Migration cost

Existing OpenAI-style clients:

client = OpenAI(base_url="https://api.apimart.ai/v1", api_key=KEY)

That is the entire migration.


  • Seedance prompt library: awesome-seedance-2-5-flash-prompts
  • Seedance API docs: seedance-2-5-flash-api

License

CC BY 4.0

Official distribution

获取与安装

暂未发现可确认的官方软件包地址

当前 README 快照没有出现 npm、PyPI、Crates.io、pub.dev 等官方包页链接。本站不会根据仓库名称猜测下载地址。

本站不托管项目文件;需要安装时,请以项目维护者发布的官方文档为准。

使用前核验

本站保存公开资料用于阅读,不代表安全审计或功能背书。安装前请核对许可证、依赖来源和发布签名,不要直接运行来源不明的二进制文件或高权限脚本。