HD enlargement
Overview
HD Enlargement is designed specifically for e-commerce images. It intelligently increases image resolution and enhances details by optimizing texture and image quality during the upscaling process. This feature supports high-definition output, such as 2K and 4K, to meet the requirements for main product images, detailed shots, and marketing assets. It allows you to efficiently process large batches of images, improving the quality of your product images. The feature operates synchronously.
Use cases
Enhance e-commerce product images: Increase the resolution and detail of main product images, detailed shots, and marketing assets. This makes details like product texture and material clearer, improving how your products are displayed.
Adapt product assets for multiple platforms: Upscale product images to meet the display requirements of various e-commerce platforms.
Batch-optimize existing images: Enhance existing low-resolution product images to reduce reshooting and production costs and improve the reusability of image assets.
Features
Intelligent HD enlargement: Using AI, this feature increases the resolution and optimizes the details of input images, improving their clarity and texture.
Multiple upscale factors: Supports 2x and 4x upscale factors, allowing you to choose the best option based on image quality and business needs.
Synchronous API calls: The API allows you to submit images and receive results synchronously, simplifying integration into your image processing workflows.
Before and after comparison
Original image | Upscaled image |
|
|
API reference
Request parameters
Parameter | Type | Required | Description |
imageUrl | String | Yes | The URL of the original image. The URL must be publicly accessible. Private network addresses, such as |
upscaleFactor | String | Yes | The upscale factor for the image. Valid values are |
Request example
{
"imageUrl": "http://example.jpg",
"upscaleFactor": "2"
}Response parameters
Parameter | Type | Description |
| String | The status code. For example, |
| Boolean |
|
| String | The response message. It might contain error details if the request fails. |
| String | The request ID, which uniquely identifies a single API call. |
| Object | The object containing the response data. |
| Object | Result data for the upscaled image. |
| Number | The width of the upscaled image in pixels. |
| Number | The height of the upscaled image in pixels. |
| Object | Usage information. |
| Number | The number of processed images. |
Response example
The following example shows the response structure. The actual structure of the Data.ImageUrl object is provided in the API response.
{
"Code": "success",
"Success": true,
"Message": "Success",
"RequestId": "example-request-id",
"Data": {
"ImageUrl": {},
"ImageWidth": 1600,
"ImageHeight": 1600,
"UsageMap": {
"ProcessedImageCount": 1
}
}
}Error codes
For more information, see Error Codes.
Billing
Billing standard: ¥0.003 per image
Billing unit: You are charged per processed image.
Limitations
Call mode: Only synchronous API calls are supported.
Input format: A publicly accessible image URL is required.
Input dimensions: The height and width of the image must be greater than 100 pixels and less than 3,000 pixels.
Upscale factor: Supported values are 2x and 4x. The default is 2x.
Metering method: The number of processed images is returned in the
Data.UsageMap.ProcessedImageCountparameter.
FAQ
Q1: What upscale factors are supported?
The service supports 2x and 4x upscale factors. The default factor is 2x.
Q2: What are the size limitations for input images?
The height and width of the input image must be greater than 100 pixels and less than 3,000 pixels. The upscaled image dimensions must not exceed 3,000 pixels. Therefore, using the 4x upscale factor imposes stricter limits on the original image's dimensions.
Q3: Does the service support local image paths?
No. You must provide a publicly accessible image URL so the service can retrieve the image.
Q4: How can I get the dimensions of the processed image?
The width and height of the upscaled image are provided in the Data.ImageWidth and Data.ImageHeight response fields.
Q5: How can I count the number of processed images?
The number of processed images is provided in the Data.UsageMap.ProcessedImageCount response field.

