1
Create an API key
In the Ekly app open Settings → Team → API keys and choose Create key. You need to be an
organization admin. The secret is shown once; keep it somewhere safe and never commit it.
2
See which models you can use
id is what you pass as model below. GET /v1/models/{id} adds a ready-to-send
example_request per mode, so you never have to guess a field name.3
Estimate the cost
4
Generate an image
"status": "pending" and an id. Credits are
reserved now and settled when the job finishes. The Idempotency-Key header means a retry of
the same request returns the same generation instead of charging twice.5
Poll until it finishes
status is completed, outputs holds the download URLs; when it is failed, error says why
and nothing was charged.6
Download the output
Where next
- Generations: the lifecycle, polling guidance and idempotency in detail.
- Uploads: register a reference image, video or audio file and get its asset id.
- Choosing a model: which model fits which job.
- The API reference tab has every endpoint with request and response examples in several languages.