Sign in
Generate images
POST
/v2/images/generations
OpenAI SDK–compatible image generation endpoint. Point the SDK's baseURL at SeaWhale AI and call client.images.generate directly. Supports Flux, Gemini, DALL·E and other leading image models.
Request Body
application/json
JSON "model": "flux-2-pro", "prompt": "A cute kitten playing in sunlight, photography style, soft lighting", "n": 1, "size": "1024x1024"
{
}
Responses
Successful image generation response
application/json
JSON "created": 1713200000, "data": [ { "url": "https://example.com/generated-image.png", "revised_prompt": "A cute kitten playing in sunlight, photography style, soft lighting, shallow depth of field" } ]
{
}