API Overview
To simplify the integration of different image generation models, Aihubmix provides a unified image API that supports the following mainstream models:- OpenAI Series
- Google Imagen Series
- Flux Series
- Qwen Series
- doubao-seedream-4-0-250828
- Ideogram V3
- Stability SD 3.5 Large
- Baidu Series
Curl
https://aihubmix.com/v1/models/is the fixed prefix<model_path>is the model path, available models:- opanai/gpt-image-1
- opanai/dall-e-3
- imagen-4.0-ultra-generate-001
- imagen-4.0-generate-001
- imagen-4.0-fast-generate-001
- imagen-4.0-fast-generate-preview-06-06
- imagen-3.0-generate-002
- flux-kontext-max
- flux-kontext-pro
- FLUX.1-Kontext-pro
- FLUX-1.1-pro
- Qwen-Image
- Qwen-Image-Edit
- doubao-seedream-4-0-250828
- ideogram/V3
- stability/Stable-Diffusion-3-5-Large
- irag-1.0
- ernie-irag-edit
sk-***is your API Key generated in Aihubmix
Below are the calling methods for each model.
OpenAI
Supported Models:
- gpt-image-1
- dall-e-3
The 2 reverse-engineered models
gpt-4o-image-vip and gpt-4o-image are not supportedUsage:
Google Imagen
Supported Models:
- imagen-4.0-ultra-generate-001
- imagen-4.0-generate-001
- imagen-4.0-fast-generate-001
- imagen-4.0-fast-generate-preview-06-06
- imagen-3.0-generate-002
Gemini series models are not supported
Usage:
Flux
Supported Models:
- flux-kontext-max
- flux-kontext-pro
- FLUX.1-Kontext-pro
- FLUX-1.1-pro
flux-kontext-maxandflux-kontext-prouse asynchronous endpoints and require a 2-step request process.FLUX.1-Kontext-proandFLUX-1.1-prouse unified endpoints that supports one-step generation.- Lightning fast responses—almost instant.
flux-kontext-maxsupports both text-to-image and image-to-image generation;flux-Kontext-proonly supports text-to-image.- The supported
aspect_ratiorange is from21:9to9:21. - The
safety_toleranceparameter ranges from0(strictest) to6(most lenient). For image-to-image tasks, the max allowed is2. - Reference images can be provided via URL or Base64—URL is recommended.
- For more details, see: FLUX API Reference
Usage:
FLUX One-step generation: forFLUX.1-Kontext-pro and FLUX-1.1-pro
tasks/ with the taskId from Step 1:
Get Image
Qwen
Supported Models:
- Qwen-Image
- Qwen-Image-Edit
Usage:
doubao-seedream-4-0-250828
Supported Models:
- doubao-seedream-4-0-250828
Usage:
Ideogram V3
Supported Models:
- V3
- Versions below V3 (V_2, V_1, etc.) use the legacy API and are currently not supported
- The returned links require a proxy network to access
Usage:
Stability
Supported Models:
- Stable-Diffusion-3-5-Large
Usage:
Baidu
Supported Models:
- ERNIE iRAG
- ERNIE iRAG Edit