Add kling (#200)

This commit is contained in:
HCode authored and GitHub committed 2025-03-12 23:08:22 +08:00
1 parent e12c9d96cc
commit 5f0ec79e83
43 files changed
+2718

No files matched your search

+1
View File
@@ -14,6 +14,7 @@ export * from './credential';
export * from './qrart';
export * from './luma';
export * from './pika';
export * from './kling';
export * from './flux';
export * from './hailuo';
export * from './headshots';
+68
View File
@@ -0,0 +1,68 @@
export interface IKlingConfig {
action?: string;
mode?: string;
model?: string;
video_id?: string;
prompt?: string;
start_image_url?: string;
end_image_url?: string;
negative_prompt?: string;
aspect_ratio?: string;
duration?: number;
camera_control?: string;
cfg_scale?: number;
callback_url?: string;
}
export interface IKlingGenerateRequest {
action?: string;
mode?: string;
model?: string;
video_id?: string;
prompt?: string;
start_image_url?: string;
end_image_url?: string;
negative_prompt?: string;
aspect_ratio?: string;
duration?: number;
camera_control?: string;
cfg_scale?: number;
callback_url?: string;
mirror?: boolean;
}
export interface IKlingVideo {
id?: string;
video_url?: string;
video_id?: string;
duration?: number;
state?: string;
action?: string;
}
export interface IKlingGenerateResponse {
success: boolean;
task_id: string;
trace_id?: string;
video_url?: string;
video_id?: string;
duration?: number;
state?: string;
action?: string;
error?: {
code?: string;
message?: string;
};
}
export interface IKlingTask {
id: string;
created_at?: number;
request?: IKlingGenerateRequest;
response?: IKlingGenerateResponse;
}
export type IKlingTaskResponse = IKlingTask;
export interface IKlingTasksResponse {
count: number;
items: IKlingTask[];
}
+1
View File
@@ -5,6 +5,7 @@ export interface ISiteFeatures {
qrart?: any;
luma?: any;
pika?: any;
kling?: any;
hailuo?: any;
headshots?: any;
suno?: any;