← All models

ERNIE-iRAG-Edit

Published Publisher Baiduernie-irag-edit

Model positioning

ERNIE-iRAG-Edit is an image editing model developed by Baidu. The version listed in the official update log is ERNIE-iRAG-Edit-1.0, which was added to the Qianfan Inference Service API V2 image editing category on April 17, 2025. (cloud.baidu.com)

Capabilities and uses

  • Erase objects (erase): Remove mask-selected parts, subjects, or backgrounds.
  • Repaint objects (repaint): Repaint the selected area based on a text prompt, for adjusting style, enriching details, or replacing subjects or backgrounds.
  • Generate variations (variation): Generate new images based on an input image and text prompt, for adding, removing, or replacing subjects, or modifying local attributes and backgrounds. (qianfan.cloud.baidu.com)

Inputs, outputs, and limitations

  • Provide a reference image and, as required by the operation, a mask and prompts in Chinese or English; the output is an edited image. Images can be input as URLs or Base64.
  • erase and repaint require a mask; repaint and variation require a prompt. The mask's width, height, and resolution must match the input image.
  • Prompts must not exceed 220 characters; input images must be smaller than 10 MB. PNG, JPG, JPEG, WEBP, BMP, and ICO are supported. The aspect ratio must not exceed 4:1, and both width and height must be at least 128 pixels.
  • erase and repaint support generating 1–4 images per request; variation does not support setting this quantity parameter. Returned image links are valid for 24 hours. Refer to the official API documentation for specific parameters. (cloud.baidu.com)

Pricing

  • Qianfan in mainland China, Chinese yuan (CNY): The Baidu Qianfan community announced on June 23, 2025, that the V2 API was priced at 0.14 yuan/image. This is a historical announced price; whether it still applies has not been verified. The announcement specifies billing per image and does not provide separate input or output token prices. Accessed: November 18, 2026. (qianfan.cloud.baidu.com)
  • The model pricing page on Baidu AI Cloud's international site was checked, but a USD price for this model was not verified on that page; no inference is made from this about its availability or price on the international site. Accessed: November 18, 2026. (intl.cloud.baidu.com)

Official sources