All toys

Image Playground

Describe a picture and generate it with dozens of models. Guide them with reference images, keep the results in collections, and see what each one cost.

How it works

Generate

Your prompt goes to the model you pick, and AIVAX returns up to four images per request. Each model has its own price per image, and failed images aren't charged. Image generation

Guide

Models that accept references follow up to 16 pictures: a link, an upload, a pasted screenshot or an image you already made. Styles add a short description to the end of your prompt.

Keep

Collections live in your browser's IndexedDB: only the image links, prompts and costs. The images themselves are hosted by AIVAX at those links.

For developers API calls from this session, and the code to build it yourself

Calls made by this page

Nothing yet. Generate an image to see the requests.
API calls
0
Images generated
0
Charged this session
$0.00

Costs come from the API response. Each call is billed to the AIVAX account you signed in with, through an application key limited to web fetch and generations.

Build it yourself

One API call: POST /api/v1/generations/images. The models and their prices come from the public GET /api/v1/information/image-models.json. See the API reference or the Worker behind this page.

# 1. Models, flags (AllowReferenceImage, Deprecated) and list prices. Public, no key needed.
curl https://inference.aivax.net/api/v1/information/image-models.json

# 2. Generate. `count` is 1 to 4 images per prompt. `size` is "x", 64 to 4096 px
#    per side; some models only get close, so this page also names the aspect ratio in the prompt.
#    `referenceImages` takes up to 16 http(s) links or data:image/...;base64 URIs, on models
#    flagged AllowReferenceImage.
curl https://direct.inference.aivax.net/api/v1/generations/images \
  -H "Authorization: Bearer $AIVAX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "input": "A lighthouse during a winter storm\n\nStyle: anime illustration, cel shading\n\nAspect ratio: 16:9 (landscape).",
    "model": "@black-forest-labs/flux-3-image-klein",
    "count": 2,
    "size": "2048x1152",
    "referenceImages": ["https://example.com/lighthouse.jpg"]
  }'

# → { "data": [ {
#       "input": "A lighthouse during a winter storm...",
#       "images": ["https://.../image-1.webp"],
#       "outputs": [
#         { "url": "https://.../image-1.webp", "cost": 0.019, "error": null },
#         { "url": null, "cost": 0, "error": "The image could not be generated." }   ← not charged
#       ],
#       "cost": 0.019 } ] }