Hera 1.0 — Text to Image
Multi-modal text-to-image. 1k/2k resolutions, 9 aspect ratios, generate up to 9 images per call.
hera-1.0-text-to-imageimage$0.056 / image (× num_images)
Endpoint#
POST /v1/images/generations · Bearer authentication · the response is a job (see jobs & polling).
Parameters#
| Parameter | Type | Details |
|---|---|---|
| model* | string | The model id. Options: "hera-1.0-text-to-image". |
| prompt* | string | What to generate. Max 2500 characters. |
| aspect_ratio | string | Image shape. Options: 16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3, 21:9, auto. Default: 1:1. |
| resolution | string | Image detail. Options: 1k, 2k. Default: 1k. |
| num_images | integer | How many images to generate. Options: 1–9. Default: 1. |
* required. model and prompt are always needed.
Example#
curl -X POST "https://api18.dev/v1/generate?wait=true" \
-H "Authorization: Bearer $API18_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"hera-1.0-text-to-image","prompt":"A studio product photo of a ceramic coffee mug on marble, soft light","aspect_ratio":"1:1","resolution":"1k","num_images":1}'
# → returns the finished job; the output URL is at .data[0].urlIntegrating with an AI assistant? Paste this model's llms.txt into your assistant — it contains just this model, ready to use.