All Products
Search
Document Center

Platform For AI:AI portrait

Last Updated:Jun 03, 2026

AI Portrait creates custom digital avatars. Upload 5 to 20 photos to train a personalized model, then call the model through an API to generate professional-quality portraits in various styles.

Features

AI Portrait involves the following operations:

  1. Image quality check: Evaluates uploaded images to ensure they meet training requirements.

  2. AI portrait training: Upload 5 to 20 photos to train a custom digital avatar model.

  3. AI portrait creation: Call your digital avatar model through an API and select templates to generate professional-quality portraits.

image.png

Deployment options

AI Portrait can be deployed in the following ways:

Billing

  • Billing for API operations:

    Free trial quota: Includes 5 free portrait training calls and 200 free portrait creation calls. Usage beyond the quota is charged at list price.

    AI Portrait supports pay-as-you-go and subscription (resource plan) billing. AI Portrait Billing.

  • EAS deployment pricing:

    EAS fees: Elastic Algorithm Service (EAS) Billing Details.

Demos

For help with demos, search for group number 38250008552 in DingTalk to join the PAI AI Portrait partner group.

Get started

Activate AI Portrait

Activate AI Portrait before you start.

  1. Log on to the PAI console.

  2. In the navigation pane on the left, click Scenario-based Solution > AI Portrait.

  3. On the AI Portrait page, click Activate Now. You are redirected to the Pay-As-You-Go Model Service page. Click Activate Now.

After activation, you can purchase a resource plan for a lower price. Without a resource plan, you are charged per call on a pay-as-you-go basis.

  1. On the AI Portrait page, click Purchase Point Package.

  2. On the Subscription Model Service page, configure the parameters, click Buy Now, and complete the payment.

Apply for usage qualification

Join the business group

To call AI Portrait API operations, join the business group. Add DingTalk contact tdaj393 or scan the QR code on the console with the note AI Portrait Application. Submit the User Agreement to the group for review.image

SDK usage

  • The API call flow is as follows:

    image
  • Note the following:

    • Image generation is subject to laws and regulations. Alibaba Cloud Content Moderation reviews all images and templates for compliance. Some content may be filtered in error.

    • Before model training, call the aigc_images_check operation to check the image quality.

      • Compare the images you sent with the count returned by aigc_images_check to determine how many were filtered. Decide whether to continue training or upload new images.

      • If all images are filtered, the server returns all images are invalid. At least one valid image is required for training.

      • Check the aigc_images_check response for face detection, decoding, or other issues in valid images.

  • Supported SDKs:

  • API SLA

    API response times vary by resource availability. For guaranteed SLA, contact your sales manager or join the group through the AI Portrait console to request a solution upgrade.

    API

    Queries per second (QPS)

    Response speed

    Portrait Training (aigc_images_train)

    2

    10 minutes to 24 hours.

    Portrait Training Query (get_async_job)

    20

    1 second.

    Solo Portrait Creation (aigc_images_create)

    10

    15 seconds to 5 minutes.

    Multi-person Portrait Creation (aigc_images_create_by_multi_model_ids)

    5

    15 × N seconds to 5 × N minutes, where N is the number of people.