ZeroGPU CLI
Give your coding agent 74 creative tasks: images, edits, video, music, voices, 3D and documents. Each task runs a tested open model on Hugging Face ZeroGPU, with your own account.
$ curl -sO https://townbox-zerogpu-tool-catalog.static.hf.space/cli.py
See the agent prompt
You can use ZeroGPU CLI to make, edit and understand images, video, audio, speech, music, 3D and documents with curated Hugging Face ZeroGPU Spaces. Beyond generation, it also covers transcription, speaker diarization, translation, OCR, captioning, segmentation, depth and more.
Start by reading the live discovery file: https://townbox-zerogpu-tool-catalog.static.hf.space/llms.txt
(full task list with typed inputs: https://townbox-zerogpu-tool-catalog.static.hf.space/tasks.json, OpenAPI: https://townbox-zerogpu-tool-catalog.static.hf.space/openapi.json)
1. Download the client (Python 3.9+, standard library only):
curl -sO https://townbox-zerogpu-tool-catalog.static.hf.space/cli.py
2. Find the task you need: python3 cli.py search <what you need>
3. Check its inputs and defaults: python3 cli.py describe <task>
4. Run it: python3 cli.py run <task> key=value ... --out <folder>
It prints JSON ({ok, task, space, license, outputs}) with the saved output files.
Use my Hugging Face token (HF_TOKEN or the local HF login): calls go straight to the Space on my own ZeroGPU quota.
Add --lane commercial when the result is for commercial use. On an error, read its "code" and "hint" and retry or pick another task. Check each output before using it.
How it works
You do one thing: paste the prompt. Your agent handles the rest while it works on your project.
Set up your agentYou
Paste the prompt into Claude Code, Codex, Cursor or Pi. The agent reads llms.txt, downloads
cli.pyand uses your Hugging Face login. There is nothing to install.It starts using models on ZeroGPU H100sAgent
When your project needs an image, a sound, a voice or a 3D model, the agent finds the task, runs it on a ZeroGPU H100 and saves the file into your project.
All verified: every model is tested in live runs before it joins the catalog.
Examples
Real files from real runs. Each one was made with the command shown.
Commands
Your agent uses these on its own. You can run them yourself too, with Python 3.9 or newer and a Hugging Face login.
Find tasks by describing what you need, in plain words.
$ python3 cli.py search voice clonevoice-cloning Speak new text in a voice from a short reference clip. singing-voice Make a given voice sing given lyrics or a melody. text-to-speech Narration, voice-overs and spoken replies from a preset or a described voice. voice-conversion Re-voice a recording while keeping its timing and delivery. dialogue-and-podcasts Two or more speakers from a script, with laughs and pauses.
Show a task's model, required and optional inputs, defaults and outputs.
$ python3 cli.py describe sound-effectssound-effects [default]: Sound effects (Music and sound) Foley hits, ambiences, UI sounds and mixed scenes. model: Stable Audio 3 Small SFX space: stabilityai/stable-audio-3 gpu seconds booked: 60 required: prompt: string optional: variant_key: string one of ['medium', 'small-music', 'small-sfx'] = "small-sfx" duration: number = 7.0 steps: number = 8.0 seed: integer (random) outputs: Output (audio) example: python3 cli.py run sound-effects prompt="..."
| --json | Print the full schema as JSON. |
Run a task. Inputs are key=value pairs. Files can be local paths or URLs, numbers and choices are converted for you, and defaults are filled in.
$ python3 cli.py run sound-effects prompt="short laser zap" duration=2 --out assets/audio{
"ok": true,
"task": "sound-effects",
"space": "stabilityai/stable-audio-3",
"model": "Stable Audio 3 Small SFX",
"elapsed_s": 4.8,
"outputs": [
{ "name": "Output", "kind": "audio", "file": "assets/audio/sound-effects-20261125-143905-8e7b.wav" }
]
}
| --out DIR | Folder for output files. |
| --name STEM | File name for the outputs, without extension. |
| --json '{…}' | Pass all inputs as one JSON object instead of key=value. |
| --timeout SECONDS | Give up after this long. |
List every task, or the tasks in one category, with their output types.
$ python3 cli.py list --category "Speech and voice"text-to-speech audio/json/text Narration, voice-overs and spoken replies from a preset or a described voice. voice-cloning audio/text Speak new text in a voice from a short reference clip. dialogue-and-podcasts audio/text/text Two or more speakers from a script, with laughs and pauses. voice-conversion audio/audio Re-voice a recording while keeping its timing and delivery. transcription text/text/file/text Text with word timestamps from speech in many languages.
| --json | Print the list as JSON. |
Serve every task as a local HTTP API, with one synchronous OpenAPI operation per task. Useful for tools that speak OpenAPI.
$ python3 cli.py servezgpu: serving 74 tasks at http://127.0.0.1:8770/openapi.json (outputs in ./zgpu-out)
$ curl -X POST http://127.0.0.1:8770/v1/sound-effects -d '{"prompt": "short laser zap"}'
| --port PORT | Port to listen on. Defaults to 8770. |
| --out DIR | Folder for output files. |
| --timeout SECONDS | Give up on a request after this long. |
Results and errors
Every run prints the same JSON shape, so your agent reads every task the same way.
{
"ok": true,
"task": "flagship-quality",
"space": "hugging-apps/qwen-qwen-image-2-1-turbo",
"outputs": [{ "name": "Result", "kind": "image", "file": "assets/lighthouse.png" }]
}
Text outputs come back as value instead of file. A failed run prints "ok": false with an error code and a message, and exits with status 2.
| Code | What happened |
|---|---|
| invalid_input | An input is missing or out of range. The message names it. |
| quota_exhausted | Your ZeroGPU quota is used up for now. Wait, or upgrade your Hugging Face plan. |
| moderation_blocked | The Space refused the prompt or the input. |
| upstream_unavailable | The Space could not be reached, or is asleep. Retry, or pick another task. |
| upstream_error | The Space failed while running. |
| timeout | The run took longer than --timeout. |
Your token comes from HF_TOKEN or your local Hugging Face login and is sent only to the Space that runs the task. This page never sees it.
Tasks
Every task your agent can run. Open one to see its inputs.
Loading tasks…
