Torch Object Storage
Name | Location | Type | Required | Sample value | Note |
Name | Location | Type | Required | Sample value | Note |
x-tos-process | Query | String | Yes | - | Special identifier representing the ImageToImage interface request, with the value aigc/image_to_image. |
Name | Type | Required | Sample value | Note |
Name | Type | Required | Sample value | Note |
TaskType | String | Yes | image_to_image | Task type. In this scenario, the value is image_to_image, indicating the combined use of image processing and image-to-image models. |
InputDataSource | Array of String | Yes | - | Original image to be processed. |
ImageUri | String | Yes | abc.jpg | Name of the original image to be processed. Parent node: InputDataSource tip When using image processing and image-to-image models to process the original image, the image will be read from the requested storage bucket. You only need to enter the original image's name in the bucket to specify it. |
Prompt | String | Yes | Thousands of troops | Prompt for generating images. Parent node: InputDataSource |
InputProcessing | Array of String | No | - | Before using the image-to-image model, preprocess the image as needed using the object storage's image processing features. |
ProcessStyle | String | No | style01 | When preprocessing images, specify the image processing method for object storage through image styles. For detailed information about image styles, see Create Image Styles. Parent node: InputProcessing |
ProcessActions | String | No | image/resize,w_100 | When preprocessing images, specify the object storage image processing method through image processing parameters. For detailed information about image processing parameters, refer to Image Processing Overview. Parent node: InputProcessing tip Only one of the parameters ProcessStyle and ProcessActions can be configured; configuring both simultaneously is not supported. |
OutputProcessing | Array of String | Yes | - | After using the image-to-image model to generate pictures, use the object storage image processing feature for post-processing as needed. |
Bucket | String | Yes | tostest | Storage bucket for processed images. Parent node: OutputProcessing |
Object | String | Yes | save_img | Name of the processed image. Parent node: OutputProcessing |
ForbiddenOverwrite | String | No | false | When saving the processed image to the storage bucket, if a file with the same name exists, specify whether to overwrite it. Explanation:
Parent node: OutputProcessing |
ProcessStyle | String | No | style01 | During image post-processing, the image style specifies the method for processing images stored in object storage. For detailed information on image styles, see Create image style. Parent node: OutputProcessing |
ProcessActions | String | No | image/resize,w_100 | During image post-processing, specify the image processing method for object storage through the image processing parameters. For detailed information on image processing parameters, refer to Image Processing Overview. Parent node: OutputProcessing tip Only one of the parameters ProcessStyle and ProcessActions can be configured; configuring both simultaneously is not supported. |
ModelConfig | String | Yes | - | Configure the Doubao image generation model. |
ModelAction | String | No | CVProcess | Name of the Doubao image-to-image model interface. Parent node: ModelConfig |
ModelVersion | String | No | 2022-08-31 | Doubao image generation model interface version number. Parent node: ModelConfig |
ReqJson | String | No | "req_key": "high_aes" | The request body parameters for the Doubao image generation model interface, which you need to set in ReqJson to configure the image generation model, defining the desired style and content of the generated image. Parent node: ModelConfig tip If both InputDataSource.Prompt and ReqJson.Prompt are configured, the final result uses the setting from InputDataSource.Prompt. |