Skip to content

Can I pass a timeline in-point and out-point instead of trimming the video for an API swap?

Use an authorized exported excerpt when the public generation contract accepts a reference file and requested output seconds but exposes no in and out trim parameters.

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

Verify the allowed fields

Read the request schema for the chosen model. The requested output seconds set output length, and a reference video ID points to the uploaded clip.

Prepare the slice intentionally

Export the correct MP4 range in your editor, keep source relative marker offsets and inspect the rendered endpoints. Retain the untrimmed master locally.

Confirm the accepted upload

Use the returned reference ID and quote exact settings. Keep the approved output length separate from the source slice's duration.

Pass condition

The reference clip begins and ends at approved events and the payload uses only parameters the selected model supports.

Sources

One task. A recoverable workflow.

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

Open API documentation