ZeroGPU CLI

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
Browse tasks
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.

  1. Set up your agentYou

    Paste the prompt into Claude Code, Codex, Cursor or Pi. The agent reads llms.txt, downloads cli.py and uses your Hugging Face login. There is nothing to install.

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

    The project needs

    The agent runs

    
    			
    Before After

    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 clone
    voice-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.

    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.

    CodeWhat happened
    invalid_inputAn input is missing or out of range. The message names it.
    quota_exhaustedYour ZeroGPU quota is used up for now. Wait, or upgrade your Hugging Face plan.
    moderation_blockedThe Space refused the prompt or the input.
    upstream_unavailableThe Space could not be reached, or is asleep. Retry, or pick another task.
    upstream_errorThe Space failed while running.
    timeoutThe 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…