aqua-voice-dev

Higgsfield API Examples — Development skill for Claude Code

Development community

Higgsfield API examples: CLI setup script, per-second cost estimator and an agent prompt for Claude Code.

How to install Higgsfield API Examples

This entry records only its repository, not the path inside it, so there is no exact command to give. Open aqua-voice-dev/higgsfield-api-examples and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Higgsfield API Examples does

Higgsfield API examples: CLI setup script, per-second cost estimator and an agent prompt for Claude Code.

Alternatives in Development

  • Ralphy — My Ralph Wiggum setup, an autonomous bash script that runs Claude Code, Codex, OpenCode, Cursor agent, Qwen & 2.8k ★
  • Claude Auto Resume — A shell script utility that automatically resumes Claude CLI tasks when usage limits are lifted 732 ★
  • Cost Xray — See what Claude Code and Codex actually send to the API — and what each part costs 586 ★

README

Higgsfield API examples

*Unofficial community examples for Higgsfield API. Not affiliated with Higgsfield. All trademarks belong to their owners.*

Small, self-contained examples for working with the Higgsfield API and its CLI. The public pages document the CLI commands and the per-model prices but not the raw HTTP endpoints, so these examples cover exactly that: setting up the CLI for an agent, estimating cost before you run a job, and a prompt you can paste into Claude Code. For the request format itself, read docs.higgsfield.ai after creating a key.

Need generation in a backend rather than in an agent? [Try Synexa - one REST endpoint and Python SDK for FLUX, video and audio models](https://synexa.ai?utm_source=github&utm_medium=ugc&utm_campaign=higgsfield-api-examples&utm_content=readme-top&utm_term=tier-r).

Files

Path What it shows
examples/setup.sh Installs the CLI, signs in, adds the skills package; the three commands from the CLI page.
examples/cost_estimate.py Estimates the cost of a video or image job from the prices shown on the Explore page.
examples/agent_prompt.md The prompt from the CLI page that sets up Higgsfield inside Claude Code, plus follow-up prompts.

Setup

The CLI is a Node package, so you need `node` and `npm` on the path. Sign-in happens in a browser window opened by `higgsfield auth login`, which means the setup script is meant for a laptop, not a headless server. For server code, create a key on the [API keys page](https://open.higgsfield.ai/api-keys) and export it:

export HIGGSFIELD_API_KEY=YOUR_KEY_HERE

None of the examples print or store the key.

examples/setup.sh

Runs `npm i -g @higgsfield/cli`, then `higgsfield auth login`, then `npx skills add higgsfield-ai/skills`. Each step is guarded so the script stops on the first failure. The CLI source is at github.com/higgsfield-ai/cli if you want to read what the login step does before running it.

examples/cost