Add flux (#182)
This commit is contained in:
1 parent
1203ef569b
commit
5d8902e566
40 files changed
+2416
-1
No files matched your search
@@ -0,0 +1,45 @@
|
||||
export interface IFluxConfig {
|
||||
action?: string;
|
||||
prompt?: string;
|
||||
model?: string;
|
||||
callback_url?: string;
|
||||
}
|
||||
|
||||
export interface IFluxGenerateRequest {
|
||||
action?: string;
|
||||
prompt?: string;
|
||||
model?: string;
|
||||
callback_url?: string;
|
||||
mirror?: boolean;
|
||||
}
|
||||
export interface IFluxImage {
|
||||
image_url?: string;
|
||||
timings?: number;
|
||||
prompt?: string;
|
||||
action?: string;
|
||||
seed?: number;
|
||||
}
|
||||
export interface IFluxGenerateResponse {
|
||||
success: boolean;
|
||||
task_id: string;
|
||||
trace_id: string;
|
||||
data?: IFluxImage[];
|
||||
error?: {
|
||||
code?: string;
|
||||
message?: string;
|
||||
};
|
||||
}
|
||||
|
||||
export interface IFluxTask {
|
||||
id: string;
|
||||
created_at?: number;
|
||||
request?: IFluxGenerateRequest;
|
||||
response?: IFluxGenerateResponse;
|
||||
}
|
||||
|
||||
export type IFluxTaskResponse = IFluxTask;
|
||||
|
||||
export interface IFluxTasksResponse {
|
||||
count: number;
|
||||
items: IFluxTask[];
|
||||
}
|
||||
@@ -14,6 +14,7 @@ export * from './credential';
|
||||
export * from './qrart';
|
||||
export * from './luma';
|
||||
export * from './pika';
|
||||
export * from './flux';
|
||||
export * from './hailuo';
|
||||
export * from './headshots';
|
||||
export * from './suno';
|
||||
|
||||
Reference in new issue
Block a user