Step 1: Create an API key
Generate a key in the developer console. Every request authenticates with it:Step 2: Fund the API wallet
The API bills a prepaid wallet held in US dollars. It is separate from your Hedra Studio balance, and a workspace starts with $0.00 in it — nothing you buy or hold in Studio moves money into it. Until it is funded, every generation is refused with402 INSUFFICIENT_BALANCE.
Add funds in the developer console,
and read the wallet any time with GET /balance.
Uploading inputs with
POST /files is free and works on an empty wallet, so
you can stage a request end-to-end and only meet the billing gate at submit.Step 3: Pick a model
GET /models lists every model with its id and human name, so a model you
know by name (“GPT Image 2”) maps straight to the id you submit to
(gpt-image-2). Each model publishes its typed input schema at
GET /models/{id}/openapi.json.
Step 4: Submit, poll, download
Every generation follows the same lifecycle: submit a job, poll it, then read the output URL.asset_id.
Next steps
Model catalog
Every model behind the endpoint, with ids, names, and what each one is for.
Chain generations
Reuse a completed job’s output as an asset in the next submit.
Quality levels
How the quality tiers map to cost and latency across models.