SandBase is live — $1 in free credits on signupStart free ›
Use in agentBaidu models

Baidu modelsimage generation api

baidu/ernie-image/turbo

Ernie Image Turbo is Baidu's advanced text-to-image AI model. Create photorealistic images, illustrations, and concept art from natural language descriptions with exceptional detail and prompt adherence.

Input
Text prompt for image generation. Supports English, Chinese, and Japanese.
The aspect ratio of the generated image. Allowed values: 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16.
120
Classifier-free guidance scale. Range: 1 to 20.
120
Number of denoising steps. Turbo model is optimized for 8 steps. Range: 1 to 20.
Output image format. Allowed values: jpeg, png.
Random seed for reproducibility.
Idle

Example output — click Run to generate your own

API README

Ernie Image

Ernie Image is the faster ERNIE image-generation model, retaining Baidu’s prompt-led scene construction while reducing turnaround for repeated creative exploration. It is useful when teams need many coherent candidates and cannot reserve a slower render cycle for every layout, mood, or style decision.

Use concise, ordered prompts for rapid iteration: subject and action first, followed by composition, environment, lighting, palette, and finish. The Turbo model fits social content, thumbnails, early campaign studies, and high-volume variants; reserve slower finishing work for only the concepts that survive review.

Highlights

  • Accelerated prompt-to-image synthesis. Reduces generation time for interactive and high-volume creative workflows.
  • Coherent rapid composition. Maintains readable subject hierarchy and scene organization despite the speed focus.
  • Broad visual ideation. Produces photographic, illustrated, and concept-art directions for quick comparison.
  • Production-scale variation. Supports many prompt, layout, and style alternatives within a short review cycle.

Pricing

Billing unitPrice
Per request$0.01

When to Use

✅ Good fit❌ Consider alternatives
The model's named workflow matches the source material and intended outputA different input modality or model route is required
A managed asynchronous result is suitable for the production pipelineA synchronous, interactive editor is essential
The documented controls cover the required duration, framing, or formatThe project needs controls outside this endpoint's schema
Creative iteration benefits from a repeatable request structureExact deterministic pixels, frames, geometry, or samples are mandatory
A finished downloadable media asset is the desired deliverableEditable source layers or a native project file are required

Prompt Guide

For generation, state the intended result first, then add the subject or source treatment, progression, style, and delivery constraints. Keep one creative variable per phrase, use the documented field names for controls, and change one setting at a time when comparing results.

{
  "aspect_ratio": "21:9",
  "output_format": "jpeg",
  "prompt": "A serene mountain landscape at sunset with golden light"
}

Technical Specs

SpecValue
Model IDbaidu/ernie-image/turbo
Inputsaspect_ratio, guidance_scale, num_inference_steps, output_format, prompt, seed
Required inputsprompt
Output fieldscontent_type, url
ExecutionAsync (submit, then poll for result)
Aspect Ratio21:9 / 16:9 / 3:2 / 4:3 / 5:4 / 1:1 / 4:5 / 3:4 / 2:3 / 9:16
Output Formatjpeg / png

Related Models

Related Models