Do not transfer a vendor maximum to every route
Another service may expose different H3 modes or durations. AISwapLab's customer contract is the relevant limit for this integration. Requested output seconds, measured source duration and final encoded runtime should remain separate fields in your records, even when the studio normally requests an output that covers its source.
What to do next
- 01
Identify which duration failed
Read whether validation concerns the uploaded MP4 or the JSON seconds field. An eleven-second reference and an eleven-second text-only output request are different cases.
- 02
Choose the appropriate workflow
Trim a reference into a supported excerpt when source upload is required. Use an allowed API output duration for text-only or supported reference generation without inventing a longer-source exemption.
- 03
Inspect the returned runtime
Measure the completed file and review the action boundaries. An accepted seconds field is a request, not evidence of exact final-frame synchronization with your editing timeline.
A concrete example
Illustrative distinction: a 15-second text-to-video request can satisfy the API schema, while uploading a 15-second MP4 as reference fails the reference limit. Increasing max_credits does not change the uploaded-file validation.
Before you call it ready
- The rejected field is identified.
- Source and output limits are not conflated.
- No plan upgrade is described as overriding a hard limit.
When to stop or choose another method
If the required source action cannot fit a supported excerpt, plan separate shots or another production route. Do not promise long-video replacement from the current short-reference workflow.
