Image Generation
Generate high-quality images using FLUX series models in GPT compatible format. FLUX is a powerful open-source image generation model supporting multiple versions.Endpoint
POST /v1/images/generations
Authentication
All requests require a Bearer token in the Authorization header:Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| model | string | Yes | Model ID, e.g., flux-pro, flux-dev, flux-schnell |
| prompt | string | Yes | Text description for image generation |
| n | integer | No | Number of images to generate, default 1 |
| size | string | No | Image size, e.g., 1024x1024, 1024x768, 768x1024 |
| response_format | string | No | Response format, options: url, b64_json, default url |
Available Models
| Model | Description |
|---|---|
| flux-pro | Professional version, highest quality |
| flux-dev | Development version, balanced quality and speed |
| flux-schnell | Fast version, fastest generation speed |
| flux-1.1-pro | FLUX 1.1 Professional version |
Request Example
Response Example
Response Fields
| Field | Type | Description |
|---|---|---|
| created | integer | Creation timestamp |
| data | array | List of generated images |
| data[].url | string | Image URL |
| data[].b64_json | string | Base64 encoded image |