Kling: Kling AI Apparel Replicator API

Kling e-commerce solution: apparel swap. Replaces the garment in a reference video with your product while reproducing its pacing, camera work and motion, producing a 5-180 second product video.

Frequently Asked Questions

Why query at /kling/solutions instead of /kling/tasks?

That is Kling's own split: solution APIs (apparel swap, goods studio) are queried at `/solutions`, video generation at `/tasks`. The gateway picks the right upstream endpoint by task type, so via the unified task format (`GET /v1/task/{id}`) the distinction does not apply.

Can I keep the result URLs long-term?

No. Kling clears generated image/video URLs after **30 days**. If object storage is enabled on this site, the gateway automatically re-hosts results on completion; otherwise download and archive them yourself.

How long does a task take and how do I get the result?

Video generation is asynchronous and usually takes from tens of seconds to a few minutes. Set `options.callback_url` to receive a push when the status changes, or poll the task query endpoint.

How is this different from the v-prefixed model (e.g. kling-v2-6)?

They are **two API generations of the same underlying model**. The v-prefixed one is Kling's legacy API (model passed as the `model_name` parameter); this one is the new API (model version in the request path) with a `contents / settings / options` body, fewer coupled parameters and batch task queries. Kling states the legacy API remains available, so both can coexist.