Skip to content
Reduced motion is on. Play a preview to watch it.
Explore models

Image

Ernie Image

Generate images from text with Baidu’s Ernie Image and optional prompt expansion.

  • Text to image
Create with Ernie Image
Preview for Ernie Image

Catalog preview for Ernie Image. Review your own result before publishing.

A starting point.

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

Before you publish.

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

Review the quote before running. A failed generation releases its reserved credits. Download the results you want to keep; stored media is retained for 30 days.

How credits work · Use the API · Content guidelines

Settings and model questionsCheck the available settings and guidance when preparing your input.

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.

Inputs, all modes and APIModel IDs, current input limits and the API generation workflow.

Supported inputs

These fields come from the current studio form for ernie-image. Other modes may require different inputs.

Input types, requirements and limits for ernie-image
InputTypeRequirementOptions and limits
promptTextRequired—
accelerationTextOptional—
enable_prompt_expansionOn/offOptional—
enable_safety_checkerOn/offOptional—
guidance_scaleNumberOptional≥ 1 · ≤ 20
negative_promptTextOptional—
num_imagesWhole numberOptional≥ 1 · ≤ 4
num_inference_stepsWhole numberOptional≥ 1 · ≤ 100
output_formatTextOptionaljpeg, png
seedWhole numberOptional—

Check the full model schema for all options and cross-field rules. Request a quote for your selected settings before generating.

Use Ernie Image through the API.

Start with this model ID for the endpoint featured on this page:

ernie-image

Input requirements belong to this model ID. Check a different mode’s schema separately when switching modes.

Check the current model schema for supported inputs and options. Other tasks may use different model IDs.

From quote to result.

Request a credit quote for your input and settings before submitting a generation. A sample output or the price of another model is not a quote for your request.

Follow the generation workflow, then poll the job for its status and result. The API and studio use the same balance.