One API Key, Many Models: Building Reliable AI Video, Image and Music Generation
Try it live: https://aishow.uno Most AI media APIs give you one model behind one endpoint. When that model is removed, repriced, rate-limited, or quietly stuck in a queue, your product shows an error and your user retri
Try it live: https://aishow.uno
Most AI media APIs give you one model behind one endpoint. When that model is removed, repriced, rate-limited, or quietly stuck in a queue, your product shows an error and your user retries — sometimes paying twice.
We built aishow.uno around the opposite idea: one API key, many models, and automatic failover when a route is known to have failed.
One key, video + image + music
A single account and a single API key unlock three media types from the same place:
- Video generation — text-to-video and reference-to-video, with up to 30 reference images, 10 reference videos and 10 reference audios per job depending on the model.
- Image generation — several model tiers behind one endpoint, including fast and high-quality variants.
- Music generation — prompt-to-track with optional custom lyrics.
The model list, prices and available routes are generated from the live configuration, not a static list you have to keep in sync.
The stability problem we designed for
In production, an upstream route can fail in many ways that all look the same to the customer:
- the model gets renamed or deprecated,
- the price table changes,
- the account behind a route hits a quota,
- the job sits in a queue and never starts.
A naive integration turns every one of those into a failed generation. The usual workaround is manual retry — which risks duplicate charges if the first request is still alive upstream.
How the multi-route engine handles it
Behind each customer-facing model name is an ordered group of real channels, each with its own credentials, model mapping and price table. On submit, the pipeline runs a short, careful sequence:
- Preflight validation, no upstream call. The model mapping, price table, duration tiers and channel availability are checked before any upstream job exists. Invalid routes are skipped at zero cost — no orphan task, no charge.
- 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.
- Poll for a definitive result. Success, explicit failure, or unknown.
- Only a known failure moves to the next route. If the last route fails, the credits are refunded automatically.
The rule that matters most: unknown is not failure. A network timeout, a missing status field, or a queue that hasn't started yet does not trigger a refund or a duplicate submission. The job keeps polling — which avoids the classic false negative where a platform refunds a job that is actually still running.
What this means for the user
- A failed route does not end the request; the system moves to the next route automatically.
- No resubmission, no double charge.
- Pricing stays consistent: the customer sees one price table per model, while each route is mapped onto it internally.
- Every task record explains, internally, which route was skipped and why — so support can answer "was my job submitted?" without guessing.
Typical workloads
Comics and serialized shorts. One prompt, continuous shots, consistent characters across a sequence.
E-commerce. Product stills turned into short video ads, with per-second pricing that keeps batch cost predictable.
Video remix. Drop in a reference clip and change the character, scene or style; the reference media is handled as part of the request.
Try it
The platform is live at https://aishow.uno. You can generate from the web workspace or call the same models through an OpenAI-compatible API — POST /v1/images/generations, the video and music endpoints, and a live /v1/models list that reflects the real, current configuration.
If a route goes down, your job should not die with it. That is the whole point of the multi-route design.
Start here: https://aishow.uno
Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.