Kwaivgi Kling Elements
Playground
Try it on WavespeedAI!Kling Elements creates custom AI elements from reference images for video generation. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.
Features
Kling Elements
Kling Elements creates custom AI elements from reference images for video generation. Define reusable visual elements — characters, clothing, objects, or styles — that can be consistently applied across multiple Kling video generations.
Why Choose This?
-
Reusable AI elements Create custom elements once, use them across multiple video generations for consistent results.
-
Multi-reference support Upload multiple reference images to better capture the element’s visual characteristics.
-
Character consistency Maintain the same character appearance, clothing, or style across different videos.
-
Simple workflow Define elements with a name, description, and reference images — ready to use in video generation.
-
Affordable pricing Just $0.01 per element creation.
Parameters
| Parameter | Required | Description |
|---|---|---|
| name | Yes | Name for the element (e.g., “Work Suit”, “Main Character”) |
| description | Yes | Description of the element’s visual characteristics |
| image | Yes | Primary reference image (URL or upload) |
| element_refer_list | Yes | Additional reference images (click ”+ Add Item” to add) |
| tag_list | No | Tags for organizing and categorizing elements |
How to Use
- Enter element name — give your element a clear, descriptive name.
- Write description — describe the element’s visual characteristics in detail.
- Upload primary image — provide the main reference image.
- Add reference images — upload additional images showing the element from different angles or contexts.
- Add tags (optional) — categorize your element for easier management.
- Run — submit to create your custom AI element.
- Save the element_id — use this ID in Kling video generation to apply the element.
Pricing
| Output | Cost |
|---|---|
| Per element | $0.01 |
Best Use Cases
- Character Consistency — Create character elements for consistent appearance across video series.
- Wardrobe Management — Define clothing elements for virtual try-on or fashion videos.
- Brand Assets — Create reusable brand elements (logos, mascots, products) for marketing videos.
- Style Templates — Define visual styles that can be applied consistently.
- Product Visualization — Create product elements for e-commerce video content.
Pro Tips
- Use multiple reference images showing the element from different angles for better recognition.
- Write detailed descriptions including colors, textures, and distinctive features.
- Keep element names clear and descriptive for easy identification later.
- Use tags to organize elements by project, category, or use case.
- Save the returned element_id — you’ll need it to use the element in video generation.
Notes
- All required fields (name, description, image, element_refer_list) must be provided.
- The output includes an element_id that can be used in Kling video models.
- Ensure uploaded image URLs are publicly accessible.
- Multiple reference images improve element consistency.
Related Models
- Kling Video O3 Pro Image-to-Video — Use created elements in video generation.
- Kling Video O3 Pro Reference-to-Video — Reference-based video generation.
- Kling V3.0 Pro Image-to-Video — High-quality image-to-video generation.
Authentication
For authentication details, please refer to the Authentication Guide.
API Endpoints
Submit Task & Query Result
# Submit the task
curl --location --request POST "https://api.wavespeed.ai/api/v3/kwaivgi/kling-elements" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer ${WAVESPEED_API_KEY}" \
--data-raw '{}'
# Get the result
curl --location --request GET "https://api.wavespeed.ai/v3/predictions/${requestId}/result" \
--header "Authorization: Bearer ${WAVESPEED_API_KEY}"
Parameters
Task Submission Parameters
Request Parameters
| Parameter | Type | Required | Default | Range | Description |
|---|---|---|---|---|---|
| name | string | Yes | - | - | Element name, It cannot exceed 20 characters. |
| description | string | Yes | - | - | Element description, It cannot exceed 100 characters. |
| image | string | Yes | - | Front reference image, The size of the image file should not exceed 10MB, and the width and height dimensions of the image should be no less than 300px. | |
| element_refer_list | array | Yes | - | 1 ~ 3 items | Other reference list of the element. |
| tag_list | array | No | - | - | Configure tags for the element. |
Response Parameters
| Parameter | Type | Description |
|---|---|---|
| code | integer | HTTP status code (e.g., 200 for success) |
| message | string | Status message (e.g., “success”) |
| data.id | string | Unique identifier for the prediction, Task Id |
| data.model | string | Model ID used for the prediction |
| data.outputs | array | Array of URLs to the generated content (empty when status is not completed) |
| data.urls | object | Object containing related API endpoints |
| data.urls.get | string | URL to retrieve the prediction result |
| data.has_nsfw_contents | array | Array of boolean values indicating NSFW detection for each output |
| data.status | string | Status of the task: created, processing, completed, or failed |
| data.created_at | string | ISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”) |
| data.error | string | Error message (empty if no error occurred) |
| data.timings | object | Object containing timing details |
| data.timings.inference | integer | Inference time in milliseconds |
Result Request Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| id | string | Yes | - | Task ID |
Result Response Parameters
| Parameter | Type | Description |
|---|---|---|
| code | integer | HTTP status code (e.g., 200 for success) |
| message | string | Status message (e.g., “success”) |
| data | object | The prediction data object containing all details |
| data.id | string | Unique identifier for the prediction, the ID of the prediction to get |
| data.model | string | Model ID used for the prediction |
| data.outputs | string | Array of URLs to the generated content (empty when status is not completed). |
| data.urls | object | Object containing related API endpoints |
| data.urls.get | string | URL to retrieve the prediction result |
| data.status | string | Status of the task: created, processing, completed, or failed |
| data.created_at | string | ISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”) |
| data.error | string | Error message (empty if no error occurred) |
| data.timings | object | Object containing timing details |
| data.timings.inference | integer | Inference time in milliseconds |