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",
    "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.028
seedream/4.5-text-to-imageByteDancet2i$0.033
seedream/4.5-editByteDancei2i$0.033
google/imagen4-fastGooglet2i$0.020
google/imagen4Googlet2i$0.040
google/imagen4-ultraGooglet2i ultra$0.060
google/nano-banana-2-1kGooglet2i$0.040
google/nano-banana-pro-2kGooglet2i pro$0.090
google/nano-banana-editGooglei2i$0.020
flux-2/pro-text-to-imageBFLt2i$0.025
flux-2/flex-text-to-imageBFLt2i flex$0.070
ideogram/v3-text-to-imageIdeogramt2i (text)
ideogram/v3-editIdeogrami2i + mask
grok-imagine/text-to-imagexAIt2i (NSFW supported)
gpt-image/1.5-text-to-imageOpenAIt2i
black-forest-labs/flux1-kontext-text-to-image-proBFLt2i kontext$0.025

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?