Creative poster generation

更新时间:
复制 MD 格式

Creative poster generation automatically creates poster backgrounds and text layouts based on your requirements. It supports a variety of poster styles for different purposes, such as promotions and personal greetings. No design experience is required. This tool helps you easily create impressive works and makes creativity accessible.

Important
  • This feature is available only in the the Chinese mainland (Beijing) region and requires an API key from this region.

  • The wanx-poster-generation-v1 model is currently available only for a free trial. After you exhaust the free quota, you can no longer call the model because paid options are not supported. For alternative solutions, see Text-to-image generation.

Introduction

Scenarios

  • Social media and personal creation: Social media users and content creators can generate thumbnails for albums or videos, or create greeting cards. Use AI creativity to enhance your personal brand and attract more traffic.

  • Pre-launch promotion for new products: Input product features, target audience preferences, highlights, launch dates, and slogans. Use the generated posters for social media, email marketing, and offline ads to attract potential customers and generate interest in new products.

  • Holiday sales promotions: Quickly design eye-catching promotional posters. Simply input keywords such as "Christmas" or "Spring Festival". The AI combines holiday elements with your brand style to create festive visuals.

  • Promotions for art and cultural events: Provide event details such as the name, time, location, and theme colors. The AI generates multiple poster designs in various styles. These unique visuals can spark viewer interest and increase event exposure and attendance.

Features and advantages

  • Versatile creative styles: Generate posters with one click. This feature offers unlimited creativity, covering various styles such as "Paper-cut", "Origami", "Chinese Ink Wash", "Chinese Embroidery", "Realistic", "2D Cartoon", "Children's Watercolor", and "Cyber Background".

  • Diverse layout generation: Automatically generates poster backgrounds and smart text layouts. It supports both horizontal and vertical posters. It also supports high-resolution upscaling and a high-definition refinement mode to quickly produce a variety of outstanding posters.

  • Industry-leading results: The generated posters have high semantic consistency with the input text. The AI creates natural layouts with rich details and realistic results. The visuals are harmonious and professional, showing no signs of artificial generation.

  • Stable and easy-to-use service: The service provides stable responses even with high concurrency and heavy traffic. It offers a simple inference API that is easy to call and integrate. The service is user-friendly and highly compatible.

Model overview

Model name

Free quota(View)

Billing unit price

Throttling (for Alibaba Cloud accounts and RAM users)

QPS limit for task submission API

Number of simultaneous processing tasks

wanx-poster-generation-v1

500 items

Currently available for free trial only.

After you use up the free quota, you cannot call the model. For an alternative, see Text-to-image.

2

1

Getting started

Input limits:

  • Prompt: You can provide a prompt in Chinese, English, or both. The combined length cannot exceed 50 characters.

  • Main title: A maximum of 30 characters.

  • Subtitle: A maximum of 30 characters.

  • Body text: A maximum of 50 characters.

Request parameters

Output poster

{
    "model": "wanx-poster-generation-v1",
    "input": {
        "title": "Happy Spring Festival",
        "sub_title": "Family reunion, enjoy family happiness",
        "body_text": "Spring Festival is one of the most important traditional festivals in China. It symbolizes a new beginning and hope.",
        "prompt_text_zh": "lantern, kitten, plum blossom",
        "wh_ratios": "vertical",
        "lora_name": "Fairy Tale Oil Painting",
        "lora_weight": 0.8,
        "ctrl_ratio": 0.7,
        "ctrl_step": 0.7,
        "generate_mode": "generate",
        "generate_num": 1
    },
    "parameters": {}
}

jianguo.wjg_通用海报专项_results_cache_dashscope_2024-08-01_2024-08-01-07-38-57_66f607dc-dc0b-4f06-a306-2e880b7826d8_0.render (1).png

The model takes a long time to generate results. The sample code shows how to make an asynchronous call to avoid timeouts.

Obtain an API key and export the API key as an environment variable.

curl

1. Create a creative poster generation task

The API returns a task ID. Use this ID to query the image generation result.

curl --location --request POST 'https://dashscope.aliyuncs.com/api/v1/services/aigc/text2image/image-synthesis' \
--header 'X-DashScope-Async: enable' \
--header 'Content-Type: application/json' \
--header "Authorization: Bearer $DASHSCOPE_API_KEY" \
--data '{
    "model": "wanx-poster-generation-v1",
    "input": {
        "title": "Happy Spring Festival",
        "sub_title": "Family reunion, enjoy family happiness",
        "body_text": "Spring Festival is one of the most important traditional festivals in China. It symbolizes a new beginning and hope.",
        "prompt_text_zh": "lantern, kitten, plum blossom",
        "wh_ratios": "vertical",
        "lora_name": "Fairy Tale Oil Painting",
        "lora_weight": 0.8,
        "ctrl_ratio": 0.7,
        "ctrl_step": 0.7,
        "generate_mode": "generate",
        "generate_num": 1
    },
    "parameters": {}
}'

2. Query the result by task ID

curl -X GET https://dashscope.aliyuncs.com/api/v1/tasks/{your_task_id} \
     -H "Authorization: Bearer $DASHSCOPE_API_KEY"

Creative poster style examples

Poster style

Poster example

Parameter example

Chinese Embroidery

image

{
    "model": "wanx-poster-generation-v1",
    "input": {
        "title": "Grain Rain",
        "sub_title": "24 SOLAR TERMS",
        "body_text": "Spring rain nourishes all grains\nListen as everything grows",
        "prompt_text_zh": "Chinese dragon, plum blossom, clouds",
        "wh_ratios": "vertical",
        "lora_name": "Chinese Embroidery",
        "lora_weight": 0.5,
        "ctrl_ratio": 0.7,
        "ctrl_step": 0.7,
        "generate_mode": "generate",
        "generate_num": 1
    },
    "parameters": {}
}

2D Illustration 1

image

{
    "model": "wanx-poster-generation-v1",
    "input": {
        "title": "Abstract Artist",
        "sub_title": "Interesting souls will eventually meet",
        "body_text": "Creative poster generation, design freely, instantly brighten your creative life",
        "prompt_text_zh": "abstract art, geometric shapes, flowing lines, minimalism, bright colors",
        "wh_ratios": "vertical",
        "lora_name": "2D Illustration 1",
        "lora_weight": 0.8,
        "ctrl_ratio": 0.6,
        "ctrl_step": 0.6,
        "generate_mode": "generate",
        "generate_num": 1
    },
    "parameters": {}
}

Do not set the lora_name parameter. Specify the poster style in the prompt.

image

{
    "model": "wanx-poster-generation-v1",
    "input": {
        "title": "Qingming",
        "sub_title": "Wreaths of smoke\nDrift between heaven and earth",
        "body_text": "April's fragrance fills the air\nSpring returns with the Qingming rains",
        "prompt_text_zh": "hazy distant mountains, willow trees, rain, 2D illustration",
        "wh_ratios": "vertical",
        "ctrl_ratio": 0.7,
        "ctrl_step": 0.7,
        "generate_mode": "generate",
        "generate_num": 1
    },
    "parameters": {}
}

Light Blue Abstract

image

{
    "model": "wanx-poster-generation-v1",
    "input": {
        "title": "Abstract Artist",
        "sub_title": "Interesting souls will eventually meet",
        "body_text": "Creative poster generation, design freely, instantly brighten your creative life",
        "prompt_text_en":"master piece, high quality, futuristic city, streamlined, neon, light blue and light purple, glass texture",
        "wh_ratios": "vertical",
        "lora_name":"Light Blue Abstract",
        "lora_weight":0.8,
        "ctrl_ratio": 0.6,
        "ctrl_step": 0.6,
        "generate_mode": "generate",
        "generate_num": 1
    },
    "parameters": {}
}

Dark Blue Abstract

image

{
    "model": "wanx-poster-generation-v1",
    "input": {
        "title": "Abstract Artist",
        "sub_title": "Interesting souls will eventually meet",
        "body_text": "Creative poster generation, design freely, instantly brighten your creative life",
        "prompt_text_en": "luminous Particles, Streamlined, holography, Particles, Abstract, Blue and Purple, Tech Style",
        "wh_ratios": "vertical",
        "lora_name": "Dark Blue Abstract",
        "lora_weight": 0.8,
        "ctrl_ratio": 0.6,
        "ctrl_step": 0.6,
        "generate_mode": "generate",
        "generate_num": 1
    },
    "parameters": {}
}

Fairy Tale Oil Painting

image

{
    "model": "wanx-poster-generation-v1",
    "input": {
        "title": "Lantern Festival",
        "sub_title": "The 15th day of the first lunar month",
        "body_text": "A time for reunion, sweet rice balls, wishing you happiness!",
        "prompt_text_zh": "lantern, kitten, plum blossom",
        "wh_ratios": "vertical",
        "lora_name": "Fairy Tale Oil Painting",
        "lora_weight": 0.8,
        "ctrl_ratio": 0.7,
        "ctrl_step": 0.7,
        "generate_mode": "generate",
        "generate_num": 1
    },
    "parameters": {}
}

Fairy Tale Oil Painting

image

{
    "model": "wanx-poster-generation-v1",
    "input": {
        "title": "Lantern Festival",
        "sub_title": "The 15th day of the first lunar month",
        "body_text": "A time for reunion, sweet rice balls, wishing you happiness!",
        "prompt_text_zh": "lantern, kitten, plum blossom",
        "wh_ratios": "horizontal",
        "lora_name": "Fairy Tale Oil Painting",
        "lora_weight": 0.8,
        "ctrl_ratio": 0.7,
        "ctrl_step": 0.7,
        "generate_mode": "generate",
        "generate_num": 1
    },
    "parameters": {}
}

Paper-cut

image

{
    "model": "wanx-poster-generation-v1",
    "input": {
        "title": "Vast Galaxy",
        "sub_title": "Twinkle, twinkle, little star",
        "body_text": "Creative poster generation, design freely, instantly brighten your creative life",
        "prompt_text_zh": "shining stars, moon, galaxy, satellite ",
        "wh_ratios": "horizontal",
        "lora_name": "Paper-cut",
        "lora_weight": 0.8,
        "ctrl_ratio": 0.6,
        "ctrl_step": 0.6,
        "generate_mode": "generate",
        "generate_num": 1
    },
    "parameters": {}
}

Rich Colors

image

{
    "model": "wanx-poster-generation-v1",
    "input": {
        "title": "Technology Changes Life",
        "sub_title": "Interesting souls will eventually meet",
        "body_text": "Creative poster generation, design freely, instantly brighten your creative life",
        "prompt_text_zh": "color explosion on a black background, finely rendered textures, simple curves, innovative page design, high-speed film, streamlined forms",
        "wh_ratios": "horizontal",
        "lora_name": "Rich Colors",
        "lora_weight": 0.8,
        "ctrl_ratio": 0.8,
        "ctrl_step": 0.7,
        "generate_mode": "generate",
        "generate_num": 1
    },
    "parameters": {}
}

API reference

For information about the API input and output parameters, see Creative poster generation.