Kling video model
Access the Kling video model according to the actual model and channel configuration of this site.
Kling access needs to distinguish between the classic Wensheng/Tusheng path and other versions of the native interface. The plug-in of this site also provides a unified video protocol that declares supported models.
Step 1: Select task type
First confirm the actual model ID, version and input form. The classic native path is as follows:
| Type | Create | Query |
|---|---|---|
| Vincent | /kling/v1/videos/text2video |
Add /{id} to the same path |
| Tusheng | /kling/v1/videos/image2video |
Add /{id} to the same path |
Requests are constructed by native fields such as model_name for that version; do not infer from the table that all versions receive the top-level model and prompt. Kling 4.0 and others have independent routing and schema, which should be configured according to the actual channel protocol.
Step 2: Unified video test
curl --fail-with-body https://dunduntoken.com/v1/videos -H "Authorization: Bearer $DUNDUN_API_KEY" -H "Content-Type: application/json" -d '{"model":"KLING_MODEL_ID","prompt":"海浪轻拍沙滩,固定镜头"}'
Only used for models that already support the unified protocol, additional parameters are added by version. Do not enable unverified modes, sounds or reference images yet.
Step Three: Inquiry and Acceptance
Persistence gateway task ID, query by creation protocol. For the unified method, see Video Generation, and for the native method, read the corresponding fields such as task_status. Save the video immediately after success.
FAQ
Native model fields are different from unified fields. Check the protocol first when 400 is reached; the model alias, Turbo or Omni suffix must be confirmed on this site; for material errors, check image size, URL and authorization. The failed task retains the ID and error, and the same business task is not re-created by changing the path.