hanabira API (for developers)

Call hanabira's own models from your app or site. Pay per image with prepaid credits (crypto). No subscription.

12 credits per image (≈ $0.072)

Same content rules as the studio: no nudity or sexual content, no minors, no real people.

Your API keys

No keys yet.

How to use

export HANABIRA_API_KEY="hb_..."   # the key you created above

1. Create (returns a job id)

curl -X POST https://api.hanabira.ai/api/generate/image \
  -H "Authorization: Bearer $HANABIRA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt": "a woman in a red dress on a rainy Tokyo street at night, cinematic", "model": "alpha3", "width": 832, "height": 1216}'

2. Check the result (a few seconds to tens of seconds; the first image can take 1–2 minutes while a GPU starts)

curl https://api.hanabira.ai/api/generate/status/JOB_ID \
  -H "Authorization: Bearer $HANABIRA_API_KEY"

Credit balance

curl https://api.hanabira.ai/api/credits/balance -H "Authorization: Bearer $HANABIRA_API_KEY"