Image Generation API

Use 60+ image generation models through a single API on Onysoft AI Gateway. Seedream, Flux, Imagen, Nano Banana, Ideogram, Grok Imagine, GPT Image, Recraft and more.

bolt

This page is the image part of the Content Generation API.

All generation endpoints (video, image, audio, voice, music) use the same backend. The endpoint below is a semantic alias for image models — for full details, status lookup and the parameter matrix, see the video-api page.

Generate Image

POST /v1/image/generate

Starts an image generation task (asynchronous). Equivalent: POST /v1/video/generate

Quick Example (Text-to-Image)

cURL
curl -X POST https://api.onysoft.com/v1/image/generate \
  -H "Authorization: Bearer sk-ony-YOUR-KEY" \
  -d '{
    "model": "seedream/5-lite-text-to-image",
    "prompt": "A serene mountain lake at sunset, photorealistic",
    "aspect_ratio": "16:9"
  }'

Quick Example (Image-to-Image)

cURL
curl -X POST https://api.onysoft.com/v1/image/generate \
  -H "Authorization: Bearer sk-ony-YOUR-KEY" \
  -d '{
    "model": "seedream/4.5-edit-i2i",
    "prompt": "Change background to futuristic neon city",
    "image_url": "https://example.com/input.jpg",
    "aspect_ratio": "1:1"
  }'

Status Lookup

cURL
curl https://api.onysoft.com/v1/image/status/vtask_abc123 \
  -H "Authorization: Bearer sk-ony-YOUR-KEY"

Featured Image Models

ModelProviderTypePrice (USD)
seedream/5-lite-text-to-imageByteDancet2i (cheap)$0.041
seedream/4.5-text-to-imageByteDancet2i$0.049
seedream/4.5-edit-i2iByteDancei2i$0.049
google/imagen4-fast-t2iGooglet2i$0.030
google/imagen4-t2iGooglet2i$0.060
google/imagen4-ultra-t2iGooglet2i ultra$0.090
google-nano-banana-2-1kGooglet2i$0.060
google/nano-banana-pro-2kGooglet2i pro$0.135
google/nano-banana-edit-i2iGooglei2i$0.030
flux-2/pro-text-to-imageBFLt2i$0.038
flux-2/flex-text-to-imageBFLt2i flex$0.180
ideogram/v3-text-to-image-qualityIdeogramt2i (text)
ideogram/v3-edit-quality-i2iIdeogrami2i + mask
grok-imagine/text-to-image-qualityxAIt2i (NSFW supported)
gpt-image/1.5-text-to-image-highOpenAIt2i
black-forest-labs-flux1-kontext-text-to-image-proBFLt2i kontext$0.038

Full list of all models: GET /v1/models or the Models page.

Provider-Specific Parameters

Each provider's internal parameter format differs. For the detailed mapping table, see video-api → Provider Parameter Matrix.

Want help finding the right model?