Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

One API key for 20 AI video models: real pricing, working code, and a $1 free tier

说明与用途

Viddra 的统一 API 简化了 20+ AI 视频模型的集成,使用单一密钥、统一请求格式和按秒计费,降低了开发复杂性和成本管理。

问题

Developers face fragmented SDKs, auth schemes, billing, and polling loops when using multiple AI video providers, complicating integration and cost management.

结果

Unified API reduces integration complexity, standardizes billing, and enables cost-aware routing across multiple AI video models.

工作流

  • 1. Sign up for Viddra and obtain API key (includes $1 free credit).
  • 2. Set the key in environment variable VIDDRA_API_KEY.
  • 3. Send a POST request to https://api.viddra.com/v1/video/generations with JSON body containing model, prompt, and duration.
  • 4. Receive 202 Accepted and a task_id.
  • 5. Poll the task status every 10 seconds using GET https://api.viddra.com/v1/video/generations/{task_id} until status is succeeded or failed.
  • 6. On success, retrieve video_url; on failure, error is returned and cost is refunded automatically.
  • 7. Optionally switch the model field to route by price/quality (e.g., kling3.0, wan3.0-video, hailuo-h3).

证据

One endpoint handles every model. Auth is a standard bearer key:

来源

Billing works on hold-then-settle: the estimated cost is held when the task starts, and on failure the hold is refunded automatically

来源

$1 free credit on signup — enough to test 5–8 real generations across models, no card required

来源

  • 记录日期: 2026-09-18T18:45:36.739Z