// This file is auto-generated, don't edit it
import * as $dara from '@darabonba/typescript';
export class AiTryOnRequest extends $dara.Model {
/**
* @remarks
* The URL of the garment image. Only one image is supported. The URL must be a publicly accessible `http` or `https` address. The image must be in JPG, JPEG, PNG, BMP, or WEBP format, with a resolution between 256×256 and 2049×2049 pixels, and a file size not exceeding 10 MB.
*
* This parameter is required.
*
* @example
* https://ae01.alicdn.com/kf/S342f0070dc9f4be09a6cbed34e90dc8fs.jpg
*/
clothImageUrl?: string;
/**
* @remarks
* The type of the garment. Valid values: tops, bottoms, dresses, tops_and_bottoms, shoes, and hats. If this parameter is not specified, the system automatically recognizes the garment type.
*
* @example
* tops
*/
clothType?: string;
/**
* @remarks
* The URL of the model image. Only one image is supported. The URL must be a publicly accessible `http` or `https` address. The image must be in JPG, JPEG, PNG, BMP, or WEBP format, with a resolution between 256×256 and 2049×2049 pixels, and a file size not exceeding 10 MB.
*
* This parameter is required.
*
* @example
* https://ae01.alicdn.com/kf/S342f0070dc9f4be09a6cbed34e90dc8fs.jpg
*/
modelImageUrl?: string;
/**
* @remarks
* The resolution of the output image. Synchronous API operations only support 1K resolution.
*
* This parameter is required.
*
* @example
* 1K
*/
resolution?: string;
static names(): { [key: string]: string } {
return {
clothImageUrl: 'ClothImageUrl',
clothType: 'ClothType',
modelImageUrl: 'ModelImageUrl',
resolution: 'Resolution',
};
}
static types(): { [key: string]: any } {
return {
clothImageUrl: 'string',
clothType: 'string',
modelImageUrl: 'string',
resolution: 'string',
};
}
validate() {
super.validate();
}
constructor(map?: { [key: string]: any }) {
super(map);
}
}