Skip to main content
Note: The Hedra v3 API is now available. This guide covers the legacy API and is maintained for existing integrations. For new projects, get started with the Developer Platform →
All examples use the base URL https://api.hedra.com/web-app/public and require an X-API-Key header.

Generate an image from a text prompt

Required fields

Optional fields

When batch_size is greater than 1, include a generation_ids array containing one client-generated UUID for each variation.

Poll for completion

The response includes a generation id. Poll until status is "complete":
When complete, the response includes an asset_id for the generated image.

Available image models

Use GET /models?types=image to list image models and their current slugs, supported resolutions, aspect ratios, and input requirements.