MuseSpark
MuseSpark
Models & toolsVideo models

Kling V3 0 API guide

Kling V3 0 API: Generate video from text, a first frame, or first and last frames with Kling V3 0. Multi-shot requests can use explicit shot prompts and subject elements; their durations and dependencies must satisfy the model rules.

Model overview

Generate video from text, a first frame, or first and last frames with Kling V3 0. Multi-shot requests can use explicit shot prompts and subject elements; their durations and dependencies must satisfy the model rules.

API integration

DocumentationValue
API invocation identifierkling-v3.0
IntegrationAsync task API

Use this invocation identifier in API requests. Check your authorized model catalog for access. Follow the Quickstart for your first complete call.

Request parameters

Select a mode to highlight its required inputs. Mode selection does not change the API field names.

Studio presets describe the form setup, not guaranteed server defaults. Send preset values explicitly to reproduce them.

promptstringNon-nullConditional

Additional requirements depend on other values. See model rules.

Describe the video to generate. A prompt is required for single-shot generation; it is optional for multi-shot generation.

Length: minimum 1.

image_urlsarray<string>Non-nullConditional

Required for First Frame, First and Last Frames.

Additional requirements depend on other values. See model rules.

Provide one first-frame image or two first/last-frame images.

resolutionstringNon-nullOptional

Select the output resolution: 720p or 1080p.

Allowed values: "720P", "1080P".

Studio preset: "720P".

durationintegerNon-nullOptional

Enter the requested video duration.

Value: minimum 3; maximum 15.

Studio preset: 5.

audiobooleanNon-nullOptional

Generate a video with audio when enabled.

Studio preset: true.

aspect_ratiostringNon-nullOptional

Select the aspect ratio for the generated video.

Allowed values: "16:9", "9:16", "1:1".

Studio preset: "16:9".

multi_shotbooleanNon-nullOptional

Enable multi-shot storyboard generation.

Studio preset: false.

shot_typestringNon-nullConditional

Additional requirements depend on other values. See model rules.

Enter the requested camera shot type.

Allowed values: "customize", "intelligence".

multi_promptarray<object>Non-nullConditional

Additional requirements depend on other values. See model rules.

Provide prompts for multiple scenes or segments. Required when multi_shot=true and shot_type=customize; sum of shot durations must equal top-level duration.

Item count: minimum 1; maximum 6.

Nested fields
  • multi_prompt[].index · integer: One-based shot number. Use consecutive indices without gaps.
  • multi_prompt[].prompt · string: The visual action and camera instruction for this individual shot.
  • multi_prompt[].duration · number: Shot duration in seconds, at least one. The sum across all shots must equal the top-level duration.
negative_promptstringNon-nullOptional

Describe content and visual qualities to avoid.

batch_sizeintegerNon-nullOptional

Standard quantity control field. The allowed range for this item is 1-4.

Repeats MuseSpark execution within one logical task. This is separate from a model-native output count.

Value: minimum 1; maximum 4.

Studio preset: 1.

element_listarray<object>Non-nullOptional

Up to three reference subjects. Each subject requires name, description and 2-4 element_input_urls; reference it in the prompt using @name.

Item count: maximum 3.

Nested fields
  • element_list[].name · string: Subject name referenced in the prompt with an @ prefix.
  • element_list[].description · string: Description identifying the subject and the attributes that should remain consistent.
  • element_list[].element_input_urls · array<string>: Two to four subject images. The first is a frontal image; the remaining images provide additional subject references.
nsfw_checkbooleanNon-nullOptional

Enable safety checking for potentially sensitive content.

Studio preset: false.

watermarkbooleanNon-nullOptional

Add a watermark to the generated video.

Studio preset: false.

No parameters match. Clear the search or reset the filters.

Model rules

Input modes

Select a mode by supplying its required public inputs. The mode identifier describes a documentation/form choice; do not send input_mode as a model parameter.

ModeRequired inputs
Text to VideoNo reference media required
First Frameimage_urls
First and Last Framesimage_urls
  • When multi_shot is false or multi_shot is omitted, provide prompt.
  • When multi_shot is true, provide shot_type.
  • When multi_shot is true and shot_type is "customize", provide multi_prompt.
  • When resolution is "720P", keep image_urls, when supplied, at least 1 and at most 2 items.
  • When resolution is "1080P", keep image_urls, when supplied, at least 1 and at most 2 items.
  • When the input mode is First Frame, provide image_urls; keep image_urls, when supplied, at least 1 and at most 1 items.
  • When the input mode is First and Last Frames, provide image_urls; keep image_urls, when supplied, at least 2 and at most 2 items.

Parameter meaning

  • For first-and-last-frame generation, the first array entry is the starting frame and the second is the ending frame. A final frame alone is invalid.

Dependencies

  • Enabling multi-shot generation makes shot_type required. Select customized planning only when an explicit shot sequence is supplied.
  • For customized shots, use consecutive indices starting at one. Each shot has a positive duration, and all shot durations must add up to the total duration.
  • Subject references in element_list do not replace the scene or first-frame input. Supply at least one image_urls image when using elements.

batch_size controls repeated MuseSpark executions. Output grouping, sequential image generation, and video shot count are separate concepts.

Request examples

Replace example media URLs and YOUR_... input identifiers with your own valid resources. Examples are checked against the exported item schema; media access and paid execution are separate runtime checks.

Set MUSESPARK_API_KEY and a stable MUSESPARK_REQUEST_ID before submitting. Preserve the request ID for retries of the same request and use a new ID for new work. Python examples use requests; JavaScript examples use Node.js 20 or later. The standalone Quickstart includes task polling and recovery.

Text to Video

curl --fail-with-body 'https://api.musespark.ai/api/v1/openapi/task' \
  -H "Authorization: Bearer $MUSESPARK_API_KEY" \
  -H "X-Idempotency-Key: $MUSESPARK_REQUEST_ID" \
  -H 'Content-Type: application/json' \
  -d '{
  "item_key": "kling-v3.0",
  "parameters": {
    "audio": true,
    "duration": 5,
    "watermark": false,
    "batch_size": 1,
    "multi_shot": false,
    "nsfw_check": false,
    "resolution": "720P",
    "aspect_ratio": "16:9",
    "prompt": "A paper city under soft morning light"
  }
}'

Parameters used: audio · duration · watermark · batch_size · multi_shot · nsfw_check · resolution · aspect_ratio · prompt.

First and Last Frames

curl --fail-with-body 'https://api.musespark.ai/api/v1/openapi/task' \
  -H "Authorization: Bearer $MUSESPARK_API_KEY" \
  -H "X-Idempotency-Key: $MUSESPARK_REQUEST_ID" \
  -H 'Content-Type: application/json' \
  -d '{
  "item_key": "kling-v3.0",
  "parameters": {
    "audio": true,
    "duration": 5,
    "watermark": false,
    "batch_size": 1,
    "multi_shot": false,
    "nsfw_check": false,
    "resolution": "720P",
    "aspect_ratio": "16:9",
    "prompt": "A paper city under soft morning light",
    "image_urls": [
      "https://example.com/input-1.png",
      "https://example.com/input-2.png"
    ]
  }
}'

Parameters used: audio · duration · watermark · batch_size · multi_shot · nsfw_check · resolution · aspect_ratio · prompt · image_urls.

Two customized shots in one video

curl --fail-with-body 'https://api.musespark.ai/api/v1/openapi/task' \
  -H "Authorization: Bearer $MUSESPARK_API_KEY" \
  -H "X-Idempotency-Key: $MUSESPARK_REQUEST_ID" \
  -H 'Content-Type: application/json' \
  -d '{
  "item_key": "kling-v3.0",
  "parameters": {
    "audio": true,
    "duration": 5,
    "watermark": false,
    "batch_size": 1,
    "multi_shot": true,
    "nsfw_check": false,
    "resolution": "1080P",
    "aspect_ratio": "16:9",
    "prompt": "A camera explores a paper city.",
    "image_urls": [
      "https://example.com/first-frame.png"
    ],
    "shot_type": "customize",
    "multi_prompt": [
      {
        "index": 1,
        "prompt": "A wide view of the paper city at sunrise.",
        "duration": 2
      },
      {
        "index": 2,
        "prompt": "The camera moves toward a paper tower.",
        "duration": 3
      }
    ]
  }
}'

Parameters used: audio · duration · watermark · batch_size · multi_shot · nsfw_check · resolution · aspect_ratio · prompt · image_urls · shot_type · multi_prompt.

A consistent subject with a separate scene image

curl --fail-with-body 'https://api.musespark.ai/api/v1/openapi/task' \
  -H "Authorization: Bearer $MUSESPARK_API_KEY" \
  -H "X-Idempotency-Key: $MUSESPARK_REQUEST_ID" \
  -H 'Content-Type: application/json' \
  -d '{
  "item_key": "kling-v3.0",
  "parameters": {
    "audio": true,
    "duration": 5,
    "watermark": false,
    "batch_size": 1,
    "multi_shot": false,
    "nsfw_check": false,
    "resolution": "720P",
    "aspect_ratio": "16:9",
    "prompt": "@paper_owl flies above the paper city.",
    "image_urls": [
      "https://example.com/scene-first-frame.png"
    ],
    "element_list": [
      {
        "name": "paper_owl",
        "description": "An origami owl with blue wings.",
        "element_input_urls": [
          "https://example.com/owl-front.png",
          "https://example.com/owl-side.png"
        ]
      }
    ]
  }
}'

Parameters used: audio · duration · watermark · batch_size · multi_shot · nsfw_check · resolution · aspect_ratio · prompt · image_urls · element_list.

Output

Creation returns a task ID inside data. Poll that task until completion, then save data.result.output_urls and any data.result.batch_results. See the task lifecycle for terminal states, result retention, and errors.

Troubleshooting

For rejected inputs, check the field type, accepted values, and conditional requirements in Request parameters and Model rules. Correct the affected fields before submitting again.

If creation times out, preserve the request identity and any known task ID. Follow Errors, timeouts and retries before submitting again.

The public input snapshot was exported on 2026-11-09. Current prices and availability are listed in the model center.