Add hailuo (#168)

This commit is contained in:
HCode authored and GitHub committed 2025-02-06 19:06:11 +08:00
1 parent 76313da5b1
commit d3251fa84e
138 files changed
+9422 -3253

No files matched your search

+48
View File
@@ -0,0 +1,48 @@
export interface IHailuoConfig {
action?: string;
prompt?: string;
model?: string;
first_image_url?: string;
callback_url?: string;
}
export interface IHailuoGenerateRequest {
action?: string;
prompt?: string;
model?: string;
first_image_url?: string;
callback_url?: string;
mirror?: boolean;
}
export interface IHailuoVideo {
id?: string;
video_url?: string;
model?: string;
prompt?: string;
state?: string;
action?: string;
}
export interface IHailuoGenerateResponse {
success: boolean;
task_id: string;
trace_id: string;
data?: IHailuoVideo[];
error?: {
code?: string;
message?: string;
};
}
export interface IHailuoTask {
id: string;
created_at?: string;
request?: IHailuoGenerateRequest;
response?: IHailuoGenerateResponse;
}
export type IHailuoTaskResponse = IHailuoTask;
export interface IHailuoTasksResponse {
count: number;
items: IHailuoTask[];
}
+1
View File
@@ -14,6 +14,7 @@ export * from './credential';
export * from './qrart';
export * from './luma';
export * from './pika';
export * from './hailuo';
export * from './headshots';
export * from './suno';
export * from './site';
+1
View File
@@ -5,6 +5,7 @@ export interface ISiteFeatures {
qrart?: any;
luma?: any;
pika?: any;
hailuo?: any;
headshots?: any;
suno?: any;
support?: any;