Bailian Image Generation for Openclaw

A high-performance AI image generation tool powered by Alibaba Cloud Qwen Image 2.0 for professional visual content creation.

navygo
v1.0.1
Mar 17, 2026
1
1.7k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install bailian-image-gen

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install bailian-image-gen using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Bailian Image Generation?

The Bailian Image Generation skill is a robust solution designed to integrate Alibaba Cloud's cutting-edge Qwen Image 2.0 model into your development workflow. As one of the most versatile Openclaw Skills available, it empowers developers and designers to create high-quality visuals using either simple text descriptions or reference images for advanced style transfer and background replacement. The skill emphasizes performance and ease of use through synchronous API calls, ensuring you get instant results without the complexity of managing asynchronous tasks or polling for job status.

By leveraging this skill within the ecosystem of Openclaw Skills, users can bridge the gap between prompt engineering and production-ready assets. Whether you are generating marketing materials or automating e-commerce photography, this tool provides the stability and quality required for modern AI-driven creative pipelines.

Bailian Image Generation Use Cases

  • Rapid generation of product promotion images for C-end applications using Openclaw Skills.
  • Professional style transfer and background replacement for e-commerce product listings.
  • Automated batch generation of marketing materials for digital campaigns.
  • Creative image editing and transformation using reference-based image-to-image workflows.

How Bailian Image Generation Works

  1. The user provides a text prompt or a reference image path to the Openclaw Skills interface.
  2. The system invokes the internal processing logic to validate parameters such as image dimensions and random seeds.
  3. If an image-to-image mode is selected, the skill automatically compresses the reference image to meet specific API size limits.
  4. A synchronous request is dispatched to the Alibaba Cloud Bailian platform using the qwen-image-2.0 model.
  5. The skill receives the generated image URL, extracts the data, and downloads the high-resolution result to the local file system.

Bailian Image Generation Setup

Prerequisites

Install the necessary Python dependencies to ensure the skill runs correctly:

pip install requests Pillow

Configuration

You must obtain an API Key from the Alibaba Cloud Bailian console. Configure the key using one of the following methods:

Method 1: .env file (Recommended)

cp .env.example .env
# Edit the .env file and add your key
DASHSCOPE_API_KEY=your-api-key-here

Method 2: Environment variable

export DASHSCOPE_API_KEY=your-api-key

Bailian Image Generation Data Schema & Taxonomy

The skill organizes its operations through a structured set of parameters and a predictable file hierarchy within Openclaw Skills.

Input Parameters

Parameter Description Supported Values
mode Generation type t2i (text), i2i (image)
prompt Text description String (required)
size Output resolution 10241024, 1024768, 7681024, 20482048
reference-image Input image path File path (required for i2i)

File Structure

  • scripts/bailian_image_gen.py: The core generation logic and Python API.
  • scripts/comfyui_bailian_node.py: Custom nodes for visual workflow integration.
  • assets/comfyui_workflow.json: Pre-configured workflow templates for e-commerce.

Bailian Image Generation Advanced Features

  • Full ComfyUI integration with custom nodes (BailianText2Image and BailianImage2Image) for node-based visual editing.
  • Intelligent auto-compression engine that manages reference image size limits without user intervention.
  • Synchronous call architecture that eliminates the need for async task management within Openclaw Skills.
  • High-resolution support reaching up to 2048*2048 for professional print-ready or web-quality assets.
  • Multi-modal capabilities allowing for complex prompt engineering combined with visual reference anchors.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*