Python SDK client for the infinidream.ai backend API. Used by video, engines, and electric-sheep-engine services.
- Language: Python
- HTTP: requests
- Serialization: dataclasses-json, dacite
- Build: setuptools (setup.py + pyproject.toml)
src/
infinidream/ # Main package
client/ # API client (create_client)
...
edream_sdk/ # Compatibility alias for the old package name; don't add code here
tests/
gen.py # Test script for dream generation
pip install -r requirements.txt
pip install -e . # Install in editable mode
python tests/gen.py --algo deforum # Test dream generation# From GitHub
pip install git+ssh://git@github.com/e-dream-ai/python-api.git
# Local development
git clone ... && cd python-api && pip install -e .create_client(backend_url, api_key)frominfinidream.clientis the main entry point- The package was renamed from
edream_sdk;edream_sdk,create_edream_clientandEDreamClientremain as aliases for consumers (video, engines, electric-sheep-engine, worker, gpu-container-uprez) until they all importinfinidream - The pip distribution is
infinidream(it wasedream-sdk). Consumers' requirements must name itinfinidream @ git+...or#egg=infinidream: pip rejects a requirement whose name doesn't match the metadata - Keep the
EdreamSDKUser-Agent: the backend uses it to allow SDK requests - Client provides methods for dream CRUD, playlist management, and status polling
- Supports all algorithms: qwen-image, wan-t2v, wan-i2v, wan-i2v-lora, deforum, animatediff, enhance