Ernie Image

High-quality text-to-image model by Baidu. Supports English, Chinese, and Japanese prompts with built-in prompt expansion.

Input

Fields marked * are required. Review the price before generating.

Text prompt for image generation. Supports English, Chinese, and Japanese.

The size of the generated image.

Number of images to generate.

Additional settings

Negative prompt to guide what should not be in the image.

Number of denoising steps.

Classifier-free guidance scale.

Random seed for reproducibility.

If True, the prompt will be enhanced using an LLM for more detailed results.

Output image format.

The acceleration level to use for the image generation.

Price$0.05 / megapixel

You sign up first. Your settings are kept.

API code for this input

Complete the required fields and fix input errors to see API code.

How to use Ernie Image

Getting started

Draft scenes in English, Chinese or Japanese, with a negative prompt for unwanted details.

Review your result

Check whether expansion changed the intended subject, and review any generated lettering.

Inputs and settings

Start with one image. Adjust num_inference_steps within 1–100 and guidance_scale within 1–20 only after reviewing composition.

Toggle enable_prompt_expansion to compare interpretation. Keep seed for comparisons and choose JPEG or PNG output.