EggAPI is an AI model gateway for production generation workloads. The current public catalog exposes nano-banana image generation. Your application calls one REST API, EggAPI authenticates the request, creates a generation task, routes it to an upstream provider, records usage, deducts balance, stores generated files when needed, and can notify your webhook when the task finishes.Documentation Index
Fetch the complete documentation index at: https://docs.eggapi.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
Quickstart
Create an API key, submit a generation task, and poll the result.
Authentication
Send API keys with the Bearer token format used by the backend.
Model
Review the single model currently published for public use.
API Reference
See response envelopes, pagination, errors, and OpenAPI-backed endpoints.
How EggAPI Works
Submit
Call
POST /v1/generate with Authorization: Bearer YOUR_API_KEY, a supported model, and a prompt.Route
The Go backend validates your key, creates a task, and sends it through the configured provider route chain.
Process
Workers poll upstream providers, apply fallback when routes fail, upload generated files to R2 when needed, and persist task output.
First Request
pending. Use GET /v1/tasks/{id} until the status becomes completed or failed.
The current public catalog only exposes nano-banana. Use
nanobanana as the API model value.