A command-line tool for AI image generation using Seedream through the AceDataCloud API.
Generate AI images directly from your terminal — no MCP client required.
- Image Generation — Generate images from text prompts with multiple models
- Image Editing — Edit, combine, and transform images with AI
- Multiple Models — doubao-seedream-5-0-260128, doubao-seedream-4-5-251128, doubao-seedream-4-0-250828, doubao-seedream-3-0-t2i-250415, doubao-seededit-3-0-i2i-250628
- Task Management — Query tasks, batch query, wait with polling
- Rich Output — Beautiful terminal tables and panels via Rich
- JSON Mode — Machine-readable output with
--jsonfor piping
Get your API token from AceDataCloud Platform:
- Sign up or log in
- Navigate to the Seedream API page
- Click "Acquire" to get your token
# Install with pip
pip install seedream-cli
# Or with uv (recommended)
uv pip install seedream-cli
# Or from source
git clone https://github.com/AceDataCloud/SeedreamCli.git
cd SeedreamCli
pip install -e .# Set your API token
export ACEDATACLOUD_API_TOKEN=your_token_here
# Or use .env file
cp .env.example .env
# Edit .env with your token# Generate an image
seedream generate "A test image"
# Edit an image
seedream edit "Make it look like a painting" -i https://example.com/photo.jpg
# Check task status
seedream task <task-id>
# Wait for completion
seedream wait <task-id> --interval 5
# List available models
seedream models| Command | Description |
|---|---|
seedream generate <prompt> |
Generate an image from a text prompt |
seedream edit <prompt> -i <url>... |
Edit or combine images using AI |
seedream task <task_id> |
Query a single task status |
seedream tasks <id1> <id2>... |
Query multiple tasks at once |
seedream wait <task_id> |
Wait for task completion with polling |
seedream models |
List available Seedream models |
seedream config |
Show current configuration |
seedream resolutions |
List available output resolutions |
--token TEXT API token (or set ACEDATACLOUD_API_TOKEN env var)
--version Show version
--help Show help message
Most commands support:
--json Output raw JSON (for piping/scripting)
--model TEXT Seedream model version (default: doubao-seedream-5-0-260128)
| Model | Version | Notes |
|---|---|---|
doubao-seedream-5-0-260128 |
V5.0 | Latest model (default) |
doubao-seedream-4-5-251128 |
V4.5 | Flagship model, best quality |
doubao-seedream-4-0-250828 |
V4.0 | Standard quality |
doubao-seedream-3-0-t2i-250415 |
V3.0 T2I | Text-to-image generation |
doubao-seededit-3-0-i2i-250628 |
V3.0 I2I | Image-to-image editing |
| Variable | Description | Default |
|---|---|---|
ACEDATACLOUD_API_TOKEN |
API token from AceDataCloud | Required |
ACEDATACLOUD_API_BASE_URL |
API base URL | https://api.acedata.cloud |
SEEDREAM_DEFAULT_MODEL |
Default model | doubao-seedream-5-0-260128 |
SEEDREAM_REQUEST_TIMEOUT |
Timeout in seconds | 1800 |
git clone https://github.com/AceDataCloud/SeedreamCli.git
cd SeedreamCli
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev,test]"pytest
pytest --cov=seedream_cli
pytest tests/test_integration.py -m integrationruff format .
ruff check .
mypy seedream_clidocker pull ghcr.io/acedatacloud/seedream-cli:latest
docker run --rm -e ACEDATACLOUD_API_TOKEN=your_token \
ghcr.io/acedatacloud/seedream-cli generate "A test image"SeedreamCli/
├── seedream_cli/ # Main package
│ ├── __init__.py
│ ├── __main__.py # python -m seedream_cli entry point
│ ├── main.py # CLI entry point
│ ├── core/ # Core modules
│ │ ├── client.py # HTTP client for Seedream API
│ │ ├── config.py # Configuration management
│ │ ├── exceptions.py # Custom exceptions
│ │ └── output.py # Rich terminal formatting
│ └── commands/ # CLI command groups
│ ├── image.py # Image generation commands
│ ├── task.py # Task management commands
│ └── info.py # Info & utility commands
├── tests/ # Test suite
├── .github/workflows/ # CI/CD (lint, test, publish to PyPI)
├── Dockerfile # Container image
├── deploy/ # Kubernetes deployment configs
├── .env.example # Environment template
├── pyproject.toml # Project configuration
└── README.md
| Feature | Seedream CLI | Seedream MCP |
|---|---|---|
| Interface | Terminal commands | MCP protocol |
| Usage | Direct shell, scripts, CI/CD | Claude, VS Code, MCP clients |
| Output | Rich tables / JSON | Structured MCP responses |
| Automation | Shell scripts, piping | AI agent workflows |
| Install | pip install seedream-cli |
pip install mcp-seedream-pro |
Both tools use the same AceDataCloud API and share the same API token.
Contributions are welcome! Please:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing) - Open a Pull Request
- Python 3.10+
- Dependencies:
pip install -e ".[all]" - Lint:
ruff check . && ruff format --check . - Test:
pytest
This project is licensed under the MIT License — see the LICENSE file for details.