This commit is contained in:
2025-09-16 02:45:06 +08:00
parent a70a934b2c
commit b099f337d9

View File

@@ -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;
}; };