curl --request POST \
--url https://api.omniall.ai/v1/images/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "gpt-image-2.6",
"prompt": "A calm studio workspace with soft daylight",
"n": 1,
"size": "1024x1024"
}
'{
"created": 1710000000,
"data": [
{
"url": "https://example.com/image.png"
}
]
}{
"error": {
"message": "<string>",
"type": "new_api_error",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "new_api_error",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "new_api_error",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "new_api_error",
"code": "<string>"
}
}Generations
OpenAI-compatible image generation.
Path: POST https://api.omniall.ai/v1/images/generations
General entry. Prefer image as a single HTTPS URL or URL string array (multi-reference). Avoid Base64 (easy to hit body-size limits). With references, some channels route to /v1/images/edits or Chat bridge.
Gemini native: generateContent.
curl --request POST \
--url https://api.omniall.ai/v1/images/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "gpt-image-2.6",
"prompt": "A calm studio workspace with soft daylight",
"n": 1,
"size": "1024x1024"
}
'{
"created": 1710000000,
"data": [
{
"url": "https://example.com/image.png"
}
]
}{
"error": {
"message": "<string>",
"type": "new_api_error",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "new_api_error",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "new_api_error",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "new_api_error",
"code": "<string>"
}
}Authorizations
Use Authorization: Bearer sk-... from https://omniall.ai/dashboard
Body
OpenAI-compatible image generation body (POST /v1/images/generations). Maps to gateway dto.ImageRequest. Works for GPT-Image, DALL·E, Flux, Grok Imagine, Seedream/Jimeng image channels, and many Gemini image models when routed to this path.
Image model id from Model Square / GET /v1/models. Examples: gpt-image-2.6, gpt-image-2.6-flare, gpt-image-2.6-sunburst, gpt-image-2.6-exact, dall-e-3, flux-3-image-klein, flux-pro-1.1-ultra, grok-imagine-image, doubao-seedream-5-0-pro-260628, gemini-2.5-flash-image.
"gpt-image-2.6"
Output size as pixel string (e.g. 1024x1024, 2048x1152, 3840x2160, auto), or use aspect_ratio with quality/image_size (1K/2K/4K). See the GPT-Image ratio table for common aspect ratios (3:1 through 1:3). Custom sizes: max side ≤ 3840, multiples of 16, aspect ratio ≤ 3:1.
"1024x1024"