Creator Center
/Tool/ERNIE Image
app icon

ERNIE Image

Verified by Dify
No ratings yet
0
L
langgenius/ernie_image

Image generation powered by Baidu ERNIE Image models on AI Studio.

ProductivityImage

ERNIE Image

A Dify tool that generates images with Baidu's ERNIE Image models through the
AI Studio OpenAI-compatible Images API.

Localized docs: 简体中文 · 日本語

Samples

Generated with at the legacy-compatible 1280×720 size:

Models

ModelOfficial model guidance
Distilled model optimized for speed and aesthetics; typically uses 8 inference steps. This remains the plugin default.
SFT model focused on general capability and instruction fidelity; typically uses 50 inference steps.

The hosted API controls inference settings. The step counts above describe the
official model releases and are not plugin parameters.

Setup

  1. Sign in at https://aistudio.baidu.com and create an access token from
    Personal Center → Access Token.
  2. In Dify, install this plugin and authorize it with that token.

Parameters

  • (required) – text description of the image, up to 2048 characters.
  • – (default) or .
  • – one of the current official resolutions: , ,
    , , , , or . Default
    ; Baidu recommends . Previously exposed resolutions
    remain accepted by the runtime so saved Dify workflows continue to work.
  • – number of images, 1 to 4. Default .
  • – optional integer for reproducibility.
  • – add a model watermark to the output. Default .

and are compatibility extensions of the AI Studio endpoint. The
current public Qianfan request schema documents , , , and
.

The tool emits each successfully downloaded image as a PNG blob and returns a
JSON summary containing the response , , AI Studio ,
source URLs, and revised prompts. Baidu documents generated URLs as valid for
24 hours, so use the emitted blobs for durable workflow output.

Compatibility and validation

  • Model, size, prompt length, image count, and integer seed are validated before
    the request.
  • Both AI Studio ( / ) and current OpenAI-compatible
    ( / / ) error responses are surfaced.
  • A failed image download only skips that image; other images and the JSON
    summary are preserved.

Official references

  • ERNIE-Image official model card
  • ERNIE-Image-Turbo official model card
  • ERNIE-Image-Turbo API reference
CATEGORY
Tool
VERSION
0.0.5
langgenius·Updated 16 days ago
REQUIREMENTS
Tool invocation
Maximum memory
256MB
Access domain

Some outbound calls build their address at runtime, so the list may be incomplete.

Detected
Security
Security Rating

Last checked 10/07/2026 11:56 AM · version 0.0.5

Give a rate
SHARE WITH