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
stringError code
message
stringDetailed error message
output array
Generation results. Only present when status is completed.
content
arrayList of generated content
type
stringResource type, e.g.,
video,imageurl
stringGenerated content URL
duration
numberVideo duration
jobId
stringRemote job ID
usage object
Usage statistics. Only present when status is completed.
cost
stringTotal cost in USD
discount
numberDiscount amount
metadata object
Metadata information
Error Codes
| Error Code | Description |
|---|---|
| 014002095 | Internal generation error |
| 014002096 | Result parsing exception |
| 014002097 | HTTP error response |
| 014002099 | Sync generation exception |