simple-inference

Image

AI text-to-image generation from a text prompt — pay per image in USDC or EURC. No API key, no account required.

imagegenerationtext-to-imageaiartx402

Base URL · About · OpenAPI · llms.txt · Tools · Manifest

What is Image?

Text-to-image generation behind x402 micropayments, modelled on music.x402.press. A single POST /image/generate endpoint accepts a natural-language prompt (plus optional model and size) and returns an image_id. The image is generated asynchronously by the DashScope qwen-image backend; poll GET /image/status/{image_id} (free) until completed, then download the PNG via GET /image/download/{image_id} (free). Three models: qwen-image-3.0-pro and qwen-image-3.0 (latest flagship family, 2K output) and qwen-image-2.0-pro-2026-06-22 (pinned 2.0 snapshot for reproducibility). Sizes are flexible WIDTH*HEIGHT up to 2048 pixels per side. Images are stored for 2 hours after generation.

Pay per call in USDC, EURC across Base, Arbitrum, Polygon and Avalanche via the x402 micropayment protocol — no subscriptions, no API keys, no wallets to configure for the caller.

Operations

Show all operations

inference

MethodEndpointDescriptionTier
POST/image/generateGenerate an image from a text prompt. Billed on the Premium tier (same tier as /music/generate), per image. Returns an image_id immediately; poll /image/status/{image_id} then download /image/download/{image_id} (both free).premium

Workflows

  • image_generate — Generate an image from a prompt: POST /image/generate (paid) → poll GET /image/status/{image_id} (free) until status is completed → GET /image/download/{image_id} (free) for the PNG: generate

Data sources

  • Alibaba DashScope API — qwen-image family via the native multimodal-generation endpoint. Proxied server-side; the service's own API key is never exposed to callers. Upstream image URLs are short-lived — the service downloads and re-serves the bytes.

Examples

generate

Generate a square 1K image with the default flagship model

{
  "prompt": "a red apple on a wooden table, studio light, photorealistic",
  "size": "1024*1024"
}