update
This commit is contained in:
@@ -49,7 +49,7 @@ export class VolcesImage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export type VolcesImageRequest = {
|
export type VolcesImageRequest = {
|
||||||
model: string;
|
model?: VolcesImageModel;
|
||||||
prompt: string;
|
prompt: string;
|
||||||
image?: string[]; // 输入图片数组
|
image?: string[]; // 输入图片数组
|
||||||
sequential_image_generation?: 'auto' | 'manual';
|
sequential_image_generation?: 'auto' | 'manual';
|
||||||
@@ -64,13 +64,21 @@ export type VolcesImageRequest = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export type VolcesImageResponse = {
|
export type VolcesImageResponse = {
|
||||||
id: string;
|
model: string;
|
||||||
object: string;
|
|
||||||
created: number;
|
created: number;
|
||||||
urls?: string[]; // 当 response_format 为 url
|
data: Array<{
|
||||||
images?: string[]; // 当 response_format 为 base64
|
url: string;
|
||||||
status: string;
|
size: string;
|
||||||
message?: string;
|
}>;
|
||||||
|
usage: {
|
||||||
|
generated_images: number;
|
||||||
|
output_tokens: number;
|
||||||
|
total_tokens: number;
|
||||||
|
};
|
||||||
|
error?: {
|
||||||
|
code?: string;
|
||||||
|
message: string;
|
||||||
|
}
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user