⌘K

Kirin Duration Extension

kirin_duration_extension

Video duration extension interface, supporting forward and backward extension.

Authentication

authorization string required

All APIs require authentication via Bearer Token.

Get API Key:

Visit API Key Management Page to get your API Key.

Usage:

Add to request header:

Authorization: Bearer YOUR_API_KEY

Parameters

model string required

Model ID to use for the request.

Value: kirin_duration_extension


video_id string required

Video ID

Supports the ID of videos generated through text, image, and video extension (original video cannot exceed 3 minutes)


prompt string

Positive text prompt, max 2500 characters


negative_prompt string

Negative text prompt, max 2500 characters


cfg_scale float

Prompt reference strength. Higher values mean stronger reference

Range: 0 - 1

Default: 0.5


callback_url string

Callback notification URL for task results. If configured, the server will actively notify when task status changes


external_task_id string

Custom task ID

User-defined task ID that will not override the system-generated task ID but can be used for task queries


Polling

Since video generation takes time, you need to poll the task status after creation

The initial response returns the task ID and initial status. The actual generation results must be obtained through polling the task status endpoint

Response Format

error object

Error information. Only present when status is failed.

code string

Error code

message string

Detailed error message


output array

Generation results. Only present when status is completed.

content array

List of generated content

type string

Resource type, e.g., video, image

url string

Generated content URL

duration number

Video duration

jobId string

Remote job ID


usage object

Usage statistics. Only present when status is completed.

cost string

Total cost in USD

discount number

Discount amount


metadata object

Metadata information


Error Codes

Error CodeDescription
014002095Internal generation error
014002096Result parsing exception
014002097HTTP error response
014002099Sync generation exception