General Image Generation

Updated at:

1. Product overview

General Image Generation is an image generation API powered by a large AI model. You can create e-commerce-ready image assets from a single prompt or a prompt combined with a reference image. It covers three scenario types: General, Product, and Clothing, Shoes & Accessories, and supports features such as scene image, model image, detail image, selling point image, outpainting, product replacement, scene variation, subject extraction, and recoloring. The generation process preserves the product's original color, material, fit, and text, enabling you to expand a single image into a full set of publish-ready ad creatives.

2. Use cases

  • General image creation: Generate images from scratch using only a text prompt, or provide a reference image to match its composition and style. You can also use outpainting to extend an existing image to fit any required aspect ratio. This helps you quickly create usable visuals, even with few or no source materials.

  • Product lifestyle scenes: Place your products into realistic scenes, such as indoor, outdoor, or in-hand settings. You can change the scene, replace the product in the image, and magnify materials and details. This lets you generate multiple visuals for a single product, eliminating the need for separate photoshoots and designs for each scene.

  • Apparel and accessory showcases: Display clothing and accessories on realistic human models. You can change the model, pose, and scene, zoom in on fabric details and stitching, generate a product image on a white background, and batch-recolor items using a color chart. This lets you create on-model shots, detail images, and visuals for multiple color variations from a single design, without needing photoshoots and reshoots for each color.

  • Multi-platform image assets: Input your product information once to generate a full suite of assets, including main images, lifestyle images, detail shots, feature-focused images, A+ Content, and product description images. This saves hours of designing and revising each image individually.

  • Seasonal marketing and cross-market localization: Generate campaign main images and banners tailored to different countries, languages, holidays, and brand guidelines. The tool automatically adapts visual elements, text placement, and aesthetics to local preferences, helping cross-border sellers and brands reach multiple markets with a single set of product assets.

3. Feature overview

General Image Generation is tailored for creating e-commerce product images. It offers ten key capabilities: general generation, AI outpainting, scene generation, model generation, detail generation, selling point image generation, product replacement, scene variation, subject extraction, and recolor. With just a prompt and a reference image, you can generate product images ready to list and advertise. The platform provides a rich library of reference images and high-quality case studies. To try it out, visit the Aidge E-commerce Operation Assistant.

Function

Scenario

Usage

Value proposition

general generation

General scenarios

Enter a prompt and provide a reference image to generate a new image.

The plus mode supports 1–9 input images.

The lite mode supports 1–3 input images.

You can also upload your own prompts and images.

Generate images from scratch: Create usable visuals with just a prompt, no professional photography needed.

Achieve desired results faster: Adopt the composition, atmosphere, and layout of a reference image to minimize trial and error.

Scale creative production: Quickly generate multiple versions from a single prompt, for easy image selection and A/B testing.

AI outpainting

General scenarios

Upload an original image to extend it beyond its original borders and intelligently fill in the new areas, creating a larger, complete image.

Flexible image sizing: Supports various aspect ratios and custom dimensions (e.g., 1920x1440), so you can adapt one image for main product shots, detail pages, and off-site ads without layout adjustments.

Preserve original details: Text, human figures, and overall style remain unchanged, so you can reuse historical assets without reshooting or editing.

Intelligent element layout: The feature intelligently rearranges elements based on the image-text relationship and automatically adds safe margins, preventing text cutoff after adding titles.

scene generation

General product scenarios

Upload a product image, optionally with a scene reference image, to generate a lifestyle shot of the product in a realistic environment.

Instant scene creation: Place a product from a white-background image into realistic settings like a living room, kitchen, or outdoor environment to enhance your product detail page.

Eliminate photoshoots: Save on set design, prop, and photography costs. You can generate scene images for new products on the same day.

Consistent styling: Use a scene reference image to replicate its lighting and arrangement for a consistent style across multiple images.

model generation

Apparel scenarios

Upload an image of clothing or an accessory along with a model reference image to generate a realistic on-model showcase.

Eliminate commercial photoshoots: Generate realistic on-model images from a single apparel photo, saving on model, photographer, and reshoot costs.

Visualize the fit: Clearly show the garment's fit, drape, and styling to help customers avoid mistakes in size and style selection.

Quickly swap models: Create multiple versions of the same item with different models, poses, and scenes to rapidly expand your asset library.

detail generation

General product and apparel scenarios

General products: Upload a product image to generate a close-up that highlights a specific part, showcasing its material and craftsmanship.

Apparel: Upload a garment image to magnify details like fabric, stitching, and buttons, creating a close-up that emphasizes texture and quality.

Enhance product pages with details: Reinforce the perceived quality of products and apparel with material close-ups and detail shots.

Magnify key features: Generate close-ups of handles, seams, fabrics, or stitching from a single product image, without requiring additional photoshoots.

Create a cohesive set: Ensure that detail images seamlessly match the style of your main and scene images.

Reduce expectation gaps: Allow customers to see materials and workmanship beforehand to help reduce returns and negative reviews from product-image discrepancies.

selling point image generation

General product and apparel scenarios

General products: Upload a product image (optionally with a layout reference image) to automatically arrange titles and selling point copy, creating a fully designed e-commerce selling point image.

Apparel: Upload a garment image and a layout reference to generate titles and selling points related to styling and usage scenarios, producing a promotional image for the apparel.

All-in-one selling points: Generate titles, selling points, and layouts in one go, creating assets ready for main images, detail pages, and news feed ads.

Consistent layouts: Use a reference image to replicate its style, ensuring a unified visual identity for products and apparel across your store.

Accelerate product launches: Create selling point images from a single product photo or flat lay, bypassing the need to schedule design and copywriting work.

product replacement

General product scenarios

General products: Upload a background image and a new product image to replace the original object in the scene, generating a new scene image where the environment and lighting remain unchanged.

Apparel: Upload an on-model image and an image of a new apparel/accessory item to replace an existing item, creating a new shot in the same context.

Reuse scenes instantly: Keep the original lighting, props, and composition while only swapping the main product or a single fashion item.

Batch-update products: Use a single high-quality background image for an entire batch of SKUs, saving the effort of staging and shooting each one.

Seamless integration: The feature places the new product naturally according to its own shape and size, with no artifacts or unnatural shadows.

scene variation

General product and apparel scenarios

General products: Upload a single scene image to generate multiple versions with different environments and angles, creating a set of multi-scene assets.

Apparel: Upload an on-model image to generate variations with different scenes and poses, producing a collection of apparel showcase images.

Generate multiple scenes at once: Create multiple environments and compositions for the same subject, preparing assets for main images, detail pages, and ads all in one go.

Differentiated merchandising: Generate unique versions for different channels and stores to reduce the risk of content duplication.

Subject consistency: The product remains free of distortion or color shifts, ensuring that all generated variations represent the same item.

subject extraction

General product and apparel scenarios

General products: Upload a product image with a background to extract the main subject and place it on a clean white background, creating a standard white-background image.

Apparel: Upload an on-model image to extract all clothing, shoes, and accessories, generating a flat-lay image on a pure white background.

One-click white-background images: Instantly convert images with backgrounds into standard white-background images to meet platform listing requirements.

Extract multiple items from one image: Deconstruct an on-model photo into individual product shots for tops, bottoms, and shoes, without needing separate flat-lay photoshoots.

Reusable subjects: The extracted product has clean edges, ready to use in other scene or selling point images.

recolor

General product and apparel scenarios

General products: Upload a product image and a reference color image to change only the surface color, generating images of the same product in multiple colorways.

Apparel: Upload a garment image and a reference color to replace the fabric color, creating color variations that retain the original style and details.

Create multiple colorways from one image: Batch-generate color variations based on a color chart or reference color, eliminating the need to photograph each SKU or color option separately.

Preview colors before production: Visualize the final look before committing to manufacturing, reducing new product and inventory risks.

Preserve original quality: Only the color is changed, leaving the material, texture, lighting, logos, and stitching intact.

4. Result comparison

Feature

Scene

Product short description

User prompt

Original image

Generated image

general generation

General scene

-

Generate a square, high-end product scene image for a luxury shoe brand, in the style of studio-quality commercial still life photography.

  • Product: A pair of cream-white, low-top, retro-style casual sneakers. They feature a fabric upper with light beige short-nap suede, a cream-white leather heel tab, and a light gum rubber outsole. Showcase the fine nap, fabric texture, precise stitching, and natural lace structure. The shoe proportions must be realistic.

  • Scene and placement: A boutique shoe showroom style, with a warm gray background and light beige matte stone steps. Display the main shoe in the foreground at a three-quarter front angle, fully revealing the toe box, outer-side logo, and sole. Place the matching shoe on a higher step in the background to create depth without obstructing the main subject. The soles should rest naturally on the surface, with shadows that reflect realistic gravity and lighting.

  • Photography and lighting: Use an 85mm lens perspective. The main light source is a large softbox from the top left, with slight fill light from the right. Soft rim light should outline the heel. Do not overexpose the white materials. Ensure the details of the main shoe are sharp, with a soft background. The primary colors are cream white, warm gray, and light beige, with the brand's gradient colors as accents.

  • Constraints: No people, no ad copy, no prices, no watermarks. Avoid shoe distortion, floating objects, duplicated laces, a plastic-like texture, and cluttered props.

-

image.png

AI outpainting

General scene

Pink lip balm

Extend this product image to a 1920x1440 landscape format. Continue the background, lighting, and texture of the original image to fill the surrounding areas. Keep the product, person, and existing text unchanged. Do not add any irrelevant objects or visible seams. Leave blank space around the edges for adding a title.

-

image.png

scene generation

General product scene

Transparent acrylic remote control holder

Place the remote control holder on a coffee table in a light-colored living room to show how the product looks in a real-life setting.

image.png

image.png

model image generation

Apparel scene

Light-yellow long-sleeve cardigan with a white inner layer

Generate an image of an adult model naturally wearing the light-yellow long-sleeve cardigan with the white inner layer from Figure 1. Generate a product display shot in a bright, minimalist indoor setting. The model should be standing naturally, facing forward with hands at their sides. Keep other styling simple. Do not change the color, texture, or embellishments of the original product.

image.png

image.png

detail generation

General product scene

Green hexagonal rubber-coated dumbbell

Create a close-up shot to show the texture of the handle and surface. Use the split-window and detail layout from Figure 2 as a reference. Keep the product angle from Figure 1. Do not change the product background.

image.png

Figure 1

image.png

Figure 2

image.png

Apparel scene

Olive-green long-sleeve knit top

Show the neckline and the knit texture. Generate a detail image using Figure 2 as a reference.

image.png

Figure 1

image.png

Figure 2

image.png

selling point image generation

General product scene

Light lavender neckband headphones

Create a selling point image for the light lavender neckband headphones in Figure 1. Keep the full view of the subject and add a magnified detail window on one side of the image, without any numbers or dimensions. Ensure the product is easily recognizable. Create a well-designed e-commerce selling point image. Use the selling point image layout from Figure 2 as a reference, but use the product from Figure 1. Do not use the product, brand, or specific claims from the reference image.

image.png

Figure 1

image.png

Figure 2

image.png

Apparel scene

Off-white stand-collar vest with frog buttons

Create a product selling point image for this off-white stand-collar vest with frog buttons. Include a title and promotional copy. Create a visually appealing design.

image.png

image.png

product replacement

General product scene

Base image: Scene with a round wall clock; New product: Terracotta orange wall-mounted fan

Using Figure 1 as the base image, replace the round wall clock with the terracotta orange wall-mounted fan from Figure 2. Place the new product in the original position according to its own shape and natural size. Preserve the surrounding environment and props. The lighting and placement should be natural, with no ghosting from the original object.

image.png

Figure 1

image.png

Figure 2

image.png

scene variation

General product scene

A four-tier, double-row rolling storage cart with a dark brown wood top, silver frame, and off-white solid drawers

Generate scene variations for Figure 1. Maintain the original style of the image and keep the product unchanged.

image.png

image.png

Apparel scene

Dark blue top, off-white layered skirt, and floral sandals

Generate scene variations for Figure 1. Maintain the original style of the image and keep the product unchanged.

image.png

image.png

subject extraction

General product scene

Gray cylindrical speaker

Extract the gray cylindrical speaker from the image and place it on a white background.

image.png

image.png

Apparel scene

White short top, beige long pants, and white shoes

Extract the entire outfit from this model. Display it as a flat lay on a white background. Keep the original color and style of each item. Do not include the person or the background.

image.png

image.png

recolor

General product scene

Caramel-colored round upholstered storage ottoman

Change the upholstered surface of the storage ottoman in Figure 1 to the light pink color of the bag in Figure 2.

image.png

Figure 1

image.png

Figure 2

image.png

Apparel scene

Brown halter neck jumpsuit

Change the color of the jumpsuit in Figure 1 to the light pink color of the bag in Figure 2.

image.png

Figure 1

image.pngFigure 2

image.png

5. Quick start

For complete instructions on request signing, SDK examples in languages such as Java, Python, and Go, and online debugging, see Image Generation API (OpenAPI Portal) on the Alibaba Cloud OpenAPI Developer Portal.

6. Developer guide

After a task is successfully submitted, the API returns Data.TaskId. A Success=true response confirms the submission but does not mean the image generation is complete. You must save the task ID and use the asynchronous result query API to check the task status or receive result notifications.

6.1 Request parameters

Field

Type

Required

Default

Description

Example

JobType

string

Yes

-

The job type. Specifies the generation method.

text_to_image: Generates an image from a text description.

image_to_image: Generates or edits an image based on an existing image.

text_to_image

Scene

string

Yes

-

The scene for the generation task. You can select only one scene. Valid values include general (general scenarios), product_ecommerce (general product scenarios), and cloth_ecommerce (scenarios for apparel, shoes, and accessories).

  • If JobType is set to text_to_image, only general is supported.

  • If JobType is set to image_to_image, you can select general, product_ecommerce, or cloth_ecommerce.

general

Operation

string

Yes

-

The specific operation for image generation or editing. You can select only one operation. The following values are supported:

For the general scene:

  • general_generate: general generation

  • outpaint: outpainting

For the product_ecommerce scene:

  • scene_generate: scene generation

  • product_replace: product replacement

For the cloth_ecommerce scene:

  • model_generate: model generation

For both product_ecommerce and cloth_ecommerce scenes:

  • detail_generate: detail generation

  • selling_point_generate: selling point generation

  • scene_variation: scene variation

  • subject_extract: subject extraction

  • recolor: recolor

general_generate

Prompt

string

Yes

-

The text prompt that describes the desired image content. Maximum length: 5,000 characters.

A white ceramic cup in a simple studio background

ReferenceURL

string

No

-

The URL of a publicly accessible reference image.

This parameter applies only to image_to_image jobs.

The number of images you can upload varies by mode: up to 3 for lite mode and up to 9 for plus mode.

["https://example.com/referece.jpg"]

N

integer

No

1

The number of images to generate. Must be between 1 and 4. Default: 1.

1

Ratio

string

No

1:1

The aspect ratio of the generated image. Supported values: 1:1, 2:3, 3:2, 4:3, 3:4, 16:9, and 9:16. Default: 1:1.

1:1

Resolution

string

No

1K

The resolution of the output image. Supported values: 1K and 2K. Default: 1K.

1K

Prompt_extend

boolean

No

true

Specifies whether to automatically optimize the prompt. If true, the system enhances the prompt with more visual detail. Default: true.

true

Mode

string

Yes

-

The generation mode. The lite mode is faster and more cost-effective. The plus mode produces higher-quality images and supports more reference images.

lite

Watermark

boolean

No

false

Specifies whether to add a watermark to the generated images. Default: false.

false

6.2 Request example

{
  "JobType": "image_to_image",
  "Scene": "product_ecommerce",
  "Operation": "recolor",
  "Mode": "lite",
  "Prompt": "Main product image for Guan Yi Ru milk, white background, e-commerce style",
  "ReferenceUrl": [
    "https://oss-pai-jg4kc-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/eval/tryon400-20261027/garment_images/131.jpg"
  ],
  "N": "1",
  "Ratio": "1:1",
  "Resolution": "1K",
  "PromptExtend": false,
  "Watermark": false
}

6.3 Response parameters

Parameter name

Type

Description

Example

Code

String

The status code. Example: "success"

success

Success

Boolean

Indicates whether the request was successful. true indicates success, and false indicates failure.

true

Message

String

Success

RequestId

String

A unique identifier for the API request.

01A20BF9-F7FB-1CBA-AEF2-BA716D99AFB5

Data

Object

The response data structure.

Data.Status

String

The task status. Example: "COMPLETED"

"COMPLETED"

Data.Result

Object

The result of the task.

Data.Result.Images

Array<Object>

A list of generated images, where each object represents one image.

Data.Result.Images[].Url

String

The URL of the generated image.

["https://example.com/referece.jpg"]

Data.Result.Images[].Width

Number

The width of the image in pixels.

"1440"

Data.Result.Images[].Height

Number

The height of the image in pixels.

"1440"

Result.imageResults[].pageNumber

integer

The page number or sequence number, starting from 1.

1

Result.imageResults[].imageTypeName

string

The name of the image type. For this batch, all are of the "reference image" type.

"reference image"

Data.UsageMap

Object

Usage data for the task.

Data.UsageMap.ProcessedImageCount

Number

The number of processed images.

5

Data.UsageMap.Resolution

String

The image resolution.

1K

Data.UsageMap.Mode

String

The generation mode used for the task.

plus

6.4 Response example

{
  "Data": {
    "Status": "COMPLETED",
    "UsageMap": {
      "OutputProcessedImageCount": 1,
      "InputProcessedImageCount": 1,
      "Mode": "lite",
      "Resolution": "1K"
    },
    "TaskId": "4fa0de63-8360-9179-b17c-ece12437c68b",
    "Result": "{\"success\":true,\"Images\":[{\"Url\":\"https://dashscop61124/4d8e5f57/e4f4a609-c448-9a43-96fc-3b710a6ba1a0_qwen_image3_serving_output_0.png?Ex=D8TI%2BPWTD%2BL7CNSZf7%2FHxnUNNCY%3D\"}],\"errorMessage\":\"\",\"errorCode\":\"\"}"
  },
  "RequestId": "01A20CEC-9390-124B-A438-8FCB6B173E54",
  "Message": "Success",
  "Code": "success",
  "Success": true
}

7. Error codes

For details, see Error codes.

8. Pricing

Mode

Input image

Output image 1K

Output image 2K

lite

¥0.02/image

¥0.18/image

¥0.18/image

plus

¥0.05/image

¥0.2/image

¥0.3/image