跳到正文
DEV Community· Xiao Lin·· 2 小時前AI 評分40

多路由 AI 影片生成:模型失效時會怎樣?

Multi-Route AI Video Generation: What Happens When a Model Fails

AI 導讀

aishow.uno 採用多路由 AI 影片生成設計,模型路由確認失敗時會自動切換至下一個路由,無須用戶重新提交。網絡逾時、狀態缺失或排隊未開始等未知情況不會觸發重複提交或退款,系統會繼續輪詢。用戶可透過網頁工作區或 API 使用平台模型。

正文

Multi-route AI video generation with automatic failover

Try it live: aishow.uno

Most AI video tools use a single route. When that route fails — the model is removed, the price table changes, the account hits a quota, or the job sits in a queue forever — the user sees an error and has to submit again.

We built the opposite: one customer-facing model, several real routes behind it, and automatic failover when a route is known to have failed.

The problem with a single route

A demo works when one model is available, one account has quota, and one price list is stable. Production is different. Upstream models get renamed, repriced, restricted to certain accounts, or quietly stop executing requests.

With a single route, every one of those events becomes a failed generation for the customer. The usual workaround is manual retry, which wastes time and can create duplicate charges if the first request is still alive upstream.

How the multi-route engine works

The model name the user selects is a virtual model. Behind it is an ordered group of real channels. Each channel has its own credentials, model mapping and price table.

On submit, the pipeline runs a short sequence:

  1. Preflight validation, no upstream call. Check the model mapping, price table, duration tiers and channel availability. Invalid routes are skipped before an upstream job exists — no cost, no orphan task.
  2. Submit to the active route. The upstream task ID is attached to the same local job, so failover never creates a second customer-facing task.
  3. Poll for a definitive result. Success, explicit failure, or unknown. Only a known failure moves the job to the next route.
  4. Last route fails → refund. Until then, credits stay frozen and the job continues on another route.

The important rule is that unknown is not failure. A network timeout, a missing status, or a queue that has not started yet does not trigger a refund or a duplicate submission. The job keeps polling. This avoids the common false-negative case where a platform refunds a job that is still running.

What this changes for the user

  • A failed route does not end the request; the system moves to the next route automatically.
  • The customer does not need to resubmit and does not get charged twice.
  • Pricing stays consistent because the customer sees one price table per virtual model, while each route is mapped onto it internally.
  • The task record explains internally which route was skipped and why, so support can answer “was my job submitted?” without guessing.

Built for three workloads

Comics and serialized drama. One prompt, continuous shots, consistent characters and scenes across a sequence.

E-commerce. Product stills turned into short video ads, with per-second pricing that makes batch cost predictable.

Video remix and replication. Drop in a reference clip and change the character, scene or style. The reference media is handled as part of the request.

The pipeline supports up to 30 reference images, 10 reference videos and 10 reference audios per job, depending on the selected model.

Try it

The platform is live at aishow.uno. You can generate from the web workspace or call the same models through the API. The model list, prices and available routes are generated from the live configuration, not from a static list.

If a route goes down, the job should not die with it. That is the whole point of the multi-route design.

Start here: aishow.uno

來源:DEV Community · dev.to