Skip to main content

Seedream CLI

PyPI version PyPI downloads Python 3.10+ License: MIT CI

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.

Features

  • 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-pro-260628, doubao-seedream-5-0-260128, doubao-seedream-4-5-251128, doubao-seedream-4-0-250828
  • Task Management — Query tasks, batch query, wait with polling
  • Rich Output — Beautiful terminal tables and panels via Rich
  • JSON Mode — Machine-readable output with --json for piping

Quick Start

1. Get API Token

Get your API token from AceDataCloud Platform:

  1. Sign up or log in
  2. Navigate to the Seedream API page
  3. Click "Acquire" to get your token

2. Install

# 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 .

3. Configure

# Set your API token
export ACEDATACLOUD_API_TOKEN=your_token_here

# Or use .env file
cp .env.example .env
# Edit .env with your token

4. Use

# 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

Commands

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

Global Options

--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)

Available Models

Model Version Notes
doubao-seedream-5-0-pro-260628 V5.0 Pro Flagship single image (no image sets/streaming/web search)
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

Configuration

Environment Variables

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

Development

Setup Development Environment

git clone https://github.com/AceDataCloud/SeedreamCli.git
cd SeedreamCli
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev,test]"

Run Tests

pytest
pytest --cov=seedream_cli
pytest tests/test_integration.py -m integration

Code Quality

ruff format .
ruff check .
mypy seedream_cli

Docker

docker 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"

Project Structure

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

Seedream CLI vs Seedream MCP

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.

Contributing

Contributions are welcome! Please:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing)
  5. Open a Pull Request

Development Requirements

  • Python 3.10+
  • Dependencies: pip install -e ".[all]"
  • Lint: ruff check . && ruff format --check .
  • Test: pytest

License

This project is licensed under the MIT License — see the LICENSE file for details.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

seedream_cli-2026.8.5.0.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

seedream_cli-2026.8.5.0-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file seedream_cli-2026.8.5.0.tar.gz.

File metadata

  • Download URL: seedream_cli-2026.8.5.0.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.3

File hashes

Hashes for seedream_cli-2026.8.5.0.tar.gz
Algorithm Hash digest
SHA256 51281684421eb53bd98321214e03b67b4dd1001d4b3ea770ab356db5b90bd100
MD5 3aec7fede42c27f015448cb4cb84eb71
BLAKE2b-256 49b6d92a9fc0fc5c5a033ccaafc6dd6fa44cc27074206d33d959d62b256f269e

See more details on using hashes here.

File details

Details for the file seedream_cli-2026.8.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for seedream_cli-2026.8.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2235f93e1557d6ae7c833b8235397eb8a522355c7d8fc399f0a9919654055178
MD5 aaff9b26885bd0d3a61ca3552ead2c3a
BLAKE2b-256 832eb8db5ed8189c36cfdcb8bd79f11bb074fc55746cfcf176e85d6fdc9f2217

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page