Skip to main content
This guide uses the production API base URL:

1. Get an API Key

Sign in at eggapi.ai, open the dashboard, and create an API key. The public API only accepts API keys in the Authorization header:

2. Submit a Task

All currently documented public generation models are asynchronous. POST /v1/generate returns 202 Accepted and a task object.
Example response:

3. Poll the Task

Use the task ID from the response:
Completed task response:

4. Check Usage

Usage endpoints require an API key:
Example response:

Next Steps

Models

Choose the right model ID and parameters.

Async Tasks

Poll tasks, consume webhooks, and handle retries.