CLI for CyberBara image, video, audio, and music generation
Project description
cyberbara-cli
Official command-line interface for CyberBara. Generate images, videos, audio, and music directly from your terminal with API key auth only.
This CLI is intentionally simpler than account-driven tools:
- supported: API key
- not supported: email registration
- not supported: password login
- not supported: OTP auth flows
If you already have a CyberBara API key, this is the fastest path from terminal to generation.
Why Use It
- Generate images, videos, audio, and music without leaving the terminal
- Upload local reference images and videos automatically
- Quote credits before submission
- Wait for tasks, save outputs locally, and optionally auto-open them
- Use one API key across direct CLI, scripts, and automation
Install
# Python package
pip install cyberbara-cli
# npm package
npm install -g cyberbara-cli
Notes:
- The npm package is a thin wrapper around the Python CLI and requires
python3to be available on your machine. - The CLI talks to the CyberBara public API at
https://cyberbara.com.
Quick Start
Configure your API key once:
cyberbara auth configure --api-key "YOUR_API_KEY"
Check the saved key:
cyberbara auth whoami
Generate across media types:
cyberbara image generate "A cinematic product shot of a silver watch" \
--model nano-banana-2 \
--aspect-ratio 1:1 \
--resolution 1k
cyberbara video generate "A creator-style portrait shot with realistic motion" \
--model seedance-2-stable \
--duration 10 \
--aspect-ratio 9:16 \
--resolution 1080p
cyberbara audio generate "A short cinematic whoosh" \
--model suno-sound-v5-5
cyberbara music generate "Warm lo-fi study music" \
--model suno-music-v5 \
--instrumental
Auth
Configure API key
cyberbara auth configure --api-key "YOUR_API_KEY"
Or load from environment:
export CYBERBARA_API_KEY="YOUR_API_KEY"
cyberbara auth configure --from-env
Check current key
cyberbara auth whoami
Remove cached key
cyberbara auth logout
Resolution order for API keys:
--api-keyCYBERBARA_API_KEY- cached key at
~/.config/cyberbara/api_key
Commands
cyberbara auth
| Command | Description |
|---|---|
cyberbara auth configure --api-key ... |
Save an API key locally |
cyberbara auth configure --from-env |
Save API key from CYBERBARA_API_KEY |
cyberbara auth whoami |
Show current API key source and masked value |
cyberbara auth logout |
Delete cached API key |
cyberbara models
| Command | Description |
|---|---|
cyberbara models list |
List all available public models |
cyberbara models list --media-type video |
Filter by media type |
cyberbara account
| Command | Description |
|---|---|
cyberbara account balance |
Show current credit balance |
cyberbara account usage |
Show recent usage records |
cyberbara image
| Command | Description |
|---|---|
cyberbara image generate <prompt> |
Text-to-image generation |
cyberbara image edit <prompt> --image <path-or-url> |
Image-to-image generation |
Examples:
cyberbara image generate "Luxury perfume bottle on reflective glass" \
--model nano-banana-2 \
--aspect-ratio 4:5 \
--resolution 1k
cyberbara image edit "Turn this sketch into a polished product render" \
--model nano-banana-pro \
--image ./concept.png \
--aspect-ratio 1:1 \
--resolution 1k
cyberbara video
| Command | Description |
|---|---|
cyberbara video generate <prompt> |
Text-to-video generation |
cyberbara video from-image <prompt> --image <path-or-url> |
Image-to-video generation |
cyberbara video from-video <prompt> --video <path-or-url> |
Video-to-video generation |
Examples:
cyberbara video generate "Creator-style portrait with realistic motion and natural skin texture" \
--model seedance-2-stable \
--duration 10 \
--aspect-ratio 9:16 \
--resolution 1080p
cyberbara video from-image "Quick portrait motion with subtle blinking and head turn" \
--model seedance-2-mini \
--image ./portrait.png \
--duration 5 \
--aspect-ratio 9:16
cyberbara video from-video "Keep the motion but restyle it as a glossy commercial clip" \
--model seedance-2-fast-stable \
--video ./input.mp4 \
--duration 10
cyberbara audio
| Command | Description |
|---|---|
cyberbara audio generate <prompt> |
Text-to-audio generation |
Example:
cyberbara audio generate "A short cinematic whoosh with soft digital sparkle" \
--model suno-sound-v5-5
cyberbara music
| Command | Description |
|---|---|
cyberbara music generate <prompt> |
Text-to-music generation |
Examples:
cyberbara music generate "Warm lo-fi study music with mellow keys" \
--model suno-music-v5 \
--instrumental
cyberbara music generate "Dreamy synth-pop chorus with female vocals" \
--model suno-music-v5 \
--lyrics "City lights are fading into blue..."
cyberbara upload
| Command | Description |
|---|---|
cyberbara upload images <files...> |
Upload local image files |
cyberbara upload videos <files...> |
Upload local video files |
cyberbara task
| Command | Description |
|---|---|
cyberbara task get <task_id> |
Fetch current task payload |
cyberbara task wait <task_id> |
Poll until completion, then optionally save outputs |
cyberbara quote
Quote credits using a raw JSON body:
cyberbara quote --json '{
"model": "seedance-2-stable",
"media_type": "video",
"scene": "text-to-video",
"prompt": "Creator-style portrait motion",
"options": { "duration": "10", "aspect_ratio": "9:16", "resolution": "1080p" }
}'
cyberbara raw
Call any CyberBara public endpoint directly:
cyberbara raw --method GET --path /api/v1/models
Common Flags
These flags apply to most generation commands:
| Flag | Description |
|---|---|
--yes |
Skip interactive confirmation after quote |
--async |
Submit task and return immediately |
--interval |
Polling interval while waiting |
--wait-timeout |
Maximum total wait time |
--timeout-per-request |
HTTP timeout for each polling request |
--output-dir |
Local directory for saved outputs |
--no-save |
Do not save outputs locally |
--no-open |
Save outputs but do not auto-open them |
--compact |
Print compact JSON |
Behavior Notes
- Local image and video paths are uploaded automatically before generation.
- Generation commands quote credits first, then require confirmation unless
--yesis set. - Final outputs are saved under
media_outputsby default. cyberbara task waitexits non-zero when a task fails or times out.- The CLI only supports API key auth. There is no account registration or password flow built into this tool.
Related Resources
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cyberbara_cli-0.1.0.tar.gz.
File metadata
- Download URL: cyberbara_cli-0.1.0.tar.gz
- Upload date:
- Size: 18.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d18438084eaba7eef68dfe305fac5b1df6932bb3a96650de19b05e007ee45bad
|
|
| MD5 |
ef75ad1682b3722bf6ddfa1db150a6d1
|
|
| BLAKE2b-256 |
8016f115668aa3a97b298dd5e6dd5017060a151b281b837d4757f9f7b9a5df4d
|
File details
Details for the file cyberbara_cli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: cyberbara_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 20.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aca1a81bcb9ac84694fe0792f4b169b95510706587bc10d6060c40e5589765e2
|
|
| MD5 |
11c77c300b96d5ee3dc127716277f454
|
|
| BLAKE2b-256 |
03ad066ac27a09fa2d53e46ba3863cf3cb8ec8fa2d90c4d99a541d70e763d5de
|