# GPT Image Hub public API

Use the GPT Image Hub public API to list image models, check credits, generate images, and fetch generation records.

## Machine-readable API files

- [OpenAPI 3.1 specification](https://www.gptimagehub.com/openapi.json)
- [API catalog](https://www.gptimagehub.com/.well-known/api-catalog)
- [API key account page](https://www.gptimagehub.com/it/account/api-keys)
- [Human API docs](https://www.gptimagehub.com/it/api-docs)

## Core endpoints

- `GET /api/v1/models` lists available image models.
- `GET /api/v1/credits` returns authenticated credit balance.
- `POST /api/v1/images/generations` creates images synchronously by default; set `async: true` to queue a background task and poll the returned `poll_url`.
- `GET /api/v1/generations/{generationId}` retrieves one generation record.