Onboard the Bailian CLI in 3 steps and send your Agent its first request.
After this guide, your AI Agent will be able to orchestrate Bailian's full-modal capabilities — producing images, video, and more from a single natural-language instruction.
The core pattern of the Bailian CLI is "let the Agent read the docs and set itself up": both installation and capability calls can be delegated to the Agent in natural language, and the Agent reads install.md or the Skill instructions and executes accordingly. Every
Steps
1
Install the CLI
The easiest way is to let your AI Agent do it. Send the Agent the following, and it will read the install guide and set up the Bailian CLI for you:You can also install manually — see Installation & Authentication.
2
Configure authentication
Hand the following command to your Agent, and it will configure the credentials automatically:Afterwards,
bl auth status --output json confirms the auth status. Other methods are in Installation & Authentication.3
Send your first request
Once the first two steps are done, just send a request to your Agent to orchestrate CLI capabilities. Try this first example:The Agent picks a suitable model (such as
qwen-image-2.0) and calls the CLI to complete generation.Integration pattern
The core pattern of the Bailian CLI is "let the Agent read the docs and set itself up": both installation and capability calls can be delegated to the Agent in natural language, and the Agent reads install.md or the Skill instructions and executes accordingly. Every bl command is designed as a structured tool call, making it easy for the Agent to compose complex pipelines.
Next steps
- Learn all capabilities and commands: Capabilities