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