Skip to content

Why can a four-second video API request fail when the clip preview says 4 seconds?

Check the source's precise runtime and the payload type of the requested output seconds. A display rounded to 4 can represent a shorter file, and a numeric-looking JSON string might not satisfy an integer field.

SHIP A RELIABLE INTEGRATIONAISwapLab team · Editorial methodPublished 2 min read
Open API documentationExplore 67 Image SkillsPrivate keys · Explicit credit approval

Read both values

Inspect the actual file and the serialized request. Keep verification of the uploaded source length separate from requested output duration.

Choose a valid source

If the file is too short, use more of the approved original activity rather than relying on a rounded preview. Use a supported integer output value.

Final review

Request a quote after rechecking both fields.

Pass condition

The source is within its documented boundary and the request contains a valid integer duration.

Sources

One task. A recoverable workflow.

Check the contract, approve the quote and retain the job.

Open API documentation