Add pixverse (#240)
This commit is contained in:
1 parent
79e1bf0d6d
commit
d6f6bfd33a
141 files changed
+9107
-1501
No files matched your search
@@ -14,6 +14,7 @@ export * from './qrart';
|
||||
export * from './luma';
|
||||
export * from './pika';
|
||||
export * from './kling';
|
||||
export * from './pixverse';
|
||||
export * from './flux';
|
||||
export * from './hailuo';
|
||||
export * from './headshots';
|
||||
|
||||
@@ -0,0 +1,71 @@
|
||||
export interface IPixverseConfig {
|
||||
action?: string;
|
||||
mode?: string;
|
||||
model?: string;
|
||||
style?: string;
|
||||
motion?: string;
|
||||
quality?: string;
|
||||
prompt?: string;
|
||||
image_url?: string;
|
||||
duration?: number;
|
||||
seed?: number;
|
||||
callback_url?: string;
|
||||
}
|
||||
|
||||
export interface IPixverseGenerateRequest {
|
||||
action?: string;
|
||||
mode?: string;
|
||||
model?: string;
|
||||
style?: string;
|
||||
motion?: string;
|
||||
quality?: string;
|
||||
prompt?: string;
|
||||
image_url?: string;
|
||||
duration?: number;
|
||||
seed?: number;
|
||||
callback_url?: string;
|
||||
}
|
||||
export interface IPixverseVideo {
|
||||
id?: string;
|
||||
first_frame?: string;
|
||||
last_frame?: string;
|
||||
video_width?: number;
|
||||
video_height?: number;
|
||||
prompt?: string;
|
||||
model?: string;
|
||||
quality?: string;
|
||||
motion?: string;
|
||||
template_id?: number;
|
||||
template_name?: string;
|
||||
style?: string;
|
||||
aspect_ratio?: string;
|
||||
video_url?: string;
|
||||
duration?: number;
|
||||
seed?: number;
|
||||
state?: string;
|
||||
action?: string;
|
||||
}
|
||||
export interface IPixverseGenerateResponse {
|
||||
success: boolean;
|
||||
task_id: string;
|
||||
trace_id?: string;
|
||||
data?: IPixverseVideo[];
|
||||
error?: {
|
||||
code?: string;
|
||||
message?: string;
|
||||
};
|
||||
}
|
||||
|
||||
export interface IPixverseTask {
|
||||
id: string;
|
||||
created_at?: number;
|
||||
request?: IPixverseGenerateRequest;
|
||||
response?: IPixverseGenerateResponse;
|
||||
}
|
||||
|
||||
export type IPixverseTaskResponse = IPixverseTask;
|
||||
|
||||
export interface IPixverseTasksResponse {
|
||||
count: number;
|
||||
items: IPixverseTask[];
|
||||
}
|
||||
@@ -8,6 +8,7 @@ export interface ISiteFeatures {
|
||||
luma?: any;
|
||||
pika?: any;
|
||||
kling?: any;
|
||||
pixverse?: any;
|
||||
hailuo?: any;
|
||||
headshots?: any;
|
||||
suno?: any;
|
||||
|
||||
Reference in new issue
Block a user