Add pika (#167)
This commit is contained in:
1 parent
ff0f3002d3
commit
5ebea7ef0c
160 files changed
+10841
-3375
No files matched your search
@@ -13,6 +13,7 @@ export * from './service';
|
||||
export * from './credential';
|
||||
export * from './qrart';
|
||||
export * from './luma';
|
||||
export * from './pika';
|
||||
export * from './headshots';
|
||||
export * from './suno';
|
||||
export * from './site';
|
||||
|
||||
@@ -0,0 +1,56 @@
|
||||
export interface IPikaConfig {
|
||||
action?: string;
|
||||
effect?: string;
|
||||
prompt?: string;
|
||||
negative_prompt?: string;
|
||||
model?: string;
|
||||
image_url?: string[];
|
||||
ingredients?: boolean;
|
||||
ingredients_mode?: string;
|
||||
callback_url?: string;
|
||||
}
|
||||
|
||||
export interface IPikaGenerateRequest {
|
||||
action?: string;
|
||||
effect?: string;
|
||||
prompt?: string;
|
||||
negative_prompt?: string;
|
||||
model?: string;
|
||||
image_url?: string[];
|
||||
ingredients?: boolean;
|
||||
ingredients_mode?: string;
|
||||
callback_url?: string;
|
||||
mirror?: boolean;
|
||||
}
|
||||
export interface IPikaVideo {
|
||||
id?: string;
|
||||
video_url?: string;
|
||||
image_url?: string;
|
||||
duration?: number;
|
||||
state?: string;
|
||||
action?: string;
|
||||
}
|
||||
export interface IPikaGenerateResponse {
|
||||
success: boolean;
|
||||
task_id: string;
|
||||
trace_id: string;
|
||||
data?: IPikaVideo[];
|
||||
error?: {
|
||||
code?: string;
|
||||
message?: string;
|
||||
};
|
||||
}
|
||||
|
||||
export interface IPikaTask {
|
||||
id: string;
|
||||
created_at?: string;
|
||||
request?: IPikaGenerateRequest;
|
||||
response?: IPikaGenerateResponse;
|
||||
}
|
||||
|
||||
export type IPikaTaskResponse = IPikaTask;
|
||||
|
||||
export interface IPikaTasksResponse {
|
||||
count: number;
|
||||
items: IPikaTask[];
|
||||
}
|
||||
@@ -4,6 +4,7 @@ export interface ISiteFeatures {
|
||||
chatdoc?: any;
|
||||
qrart?: any;
|
||||
luma?: any;
|
||||
pika?: any;
|
||||
headshots?: any;
|
||||
suno?: any;
|
||||
support?: any;
|
||||
|
||||
Reference in new issue
Block a user