Match the request kind, model and path as one contract
A plausible model name on the wrong endpoint is still an invalid request. The current customer aliases include minimax-h3 for video and deepseek-v4.1-flash for text, with the documented image aliases on the image route. Their names describe configured gateway contracts, not a verified direct-vendor relationship. Website photo-to-person cards and internal console routes should not be copied into customer requests unless the public contract documents those inputs. Check current schema and availability rather than inferring support from a similar vendor API.
What to do next
- 01
Set one trusted API origin
Configure the HTTPS base once on the server and keep the bearer secret there. Confirm the path is /api/v1 rather than a browser page or upstream vendor URL. Public documentation and /openapi.json describe the contract; account keys, uploads and content still require appropriate authentication and ownership.
- 02
Select the supported route and fields
Use GET /models for exact aliases and current state, then read the corresponding schema for required input. Videos, images and text differ in duration, size, messages and output behavior. A file upload is POST /files, not media creation; store its owned returned ID only for documented reference fields.
- 03
Follow the complete operation sequence
Request a quote for the intended body, obtain approval and submit to the correct creation route with an Idempotency-Key. Retain the returned job for asynchronous or uncertain work, poll its job URL and download its content privately when ready. Do not treat the creation response as a direct public media URL.
A concrete example
Illustrative routing error: an application sends a video body's seconds and reference_video_id to /images/generations because its shared client always uses that path. The correct repair is to choose the video route with the supported video alias, not to rename the fields or pass through arbitrary upstream parameters. A separate image request uses its own size and quality schema. Both are quoted and approved before creating paid work.
Customer route map
| Route | Role |
|---|---|
| GET /models; GET /usage | Read current state |
| POST /files | Upload an owned supported reference |
| POST /quotes | Estimate without generation |
| POST /videos or /images/generations or /chat/completions | Create the approved kind of work |
| GET /jobs/{id}; GET /jobs/{id}/content | Observe and privately retrieve existing work |
Before you call it ready
- The customer base URL and credential destination are correct.
- Model, request kind and endpoint agree.
- Upload, quote, creation, polling and content are distinct steps.
When to stop or choose another method
Stop when a desired input is absent from the published contract or model readiness is false. Do not probe internal website routes or forward private credentials to another service to make an unsupported request work.
