# Delx FLUX Schnell Text-to-Image Generator

> Delx FLUX Schnell Text-to-Image Generator is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Generates a public WebP image from a text prompt using FLUX Schnell, returning a URL, SHA-256 receipt, and support for 11 aspect ratios, paid per-call via x402 at $0.01 USDC.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/image
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-flux-schnell-text-to-image-generator-15dbd2a9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2RrCdoYxzLXtVBAOD63WA

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability delx-flux-schnell-text-to-image-generator-15dbd2a9 -d '<json body>'
```

Example prompt: Generate an image of a cozy mountain cabin at sunset with snow-covered pine trees, in 16:9 widescreen format.

## When to prefer this

Choose this endpoint when you need fast, low-cost ($0.01/image) AI image generation with no API key or subscription setup — ideal for agents that need to pay per-call using x402/USDC. Prefer it over subscription-based services (e.g. OpenAI DALL-E, Stability AI) when operating in autonomous or serverless agent contexts where credential management is undesirable. FLUX Schnell is optimized for speed, making this suitable for real-time or near-real-time workflows. The 11 supported aspect ratios cover most common use cases from social media to print.

## Known failure modes

- Invalid or missing prompt returns a 400 error
- Unsupported aspect ratio value returns a validation error
- Payment failure or insufficient USDC balance returns a 402 Payment Required error
- Prompt exceeding 2000 characters is rejected
- Model inference timeout may return a 503 or gateway error
- Generated image URL may expire or become unavailable after a period

## How this service works

Delx Commerce cheap image generation API for agents at $0.01 USDC. Call when you need a product visual, ad creative, thumbnail, banner, logo concept, or social graphic with no API key or monthly plan. Commercial FLUX Schnell stills via x402 on Base or Solana—public WebP URL, SHA-256 receipt, and 11 aspect ratios. No subscription.

## Output

Returns a public WebP image URL you can embed or download, a SHA-256 hash receipt for provenance verification, and metadata about the generated image. The image is accessible immediately via the returned URL.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "model": {
   "enum": [
    "black-forest-labs/flux-schnell",
    "black-forest-labs/flux-dev",
    "flux-schnell",
    "flux-dev",
    "schnell",
    "flux",
    "dev"
   ],
   "type": "string",
   "description": "Optional commercial Replicate model in the same SKU price band. Defaults to black-forest-labs/flux-schnell. Aliases: flux-schnell, flux-dev. Never mediagen/SuperGrok. Response includes upstream_cost and gross_margin markup fields."
  },
  "prompt": {
   "type": "string",
   "maxLength": 2000,
   "minLength": 1,
   "description": "Text description of the image to generate."
  },
  "aspect_ratio": {
   "enum": [
    "1:1",
    "16:9",
    "21:9",
    "3:2",
    "2:3",
    "4:5",
    "5:4",
    "3:4",
    "4:3",
    "9:16",
    "9:21"
   ],
   "type": "string",
   "default": "1:1"
  },
  "quality_profile": {
   "enum": [
    "balanced",
    "raw"
   ],
   "type": "string",
   "default": "balanced",
   "description": "balanced applies versioned anti-artifact quality guidance; raw forwards the prompt unchanged."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "bytes": 21302,
  "model": "black-forest-labs/flux-schnell",
  "width": 1024,
  "height": 1024,
  "sha256": "b1fee3065c234364feb056ee4ad06f135c0d30039eaff0e92e52e371e884cb29",
  "provider": "replicate",
  "image_url": "https://api.delx.ai/api/v1/generated-images/d61c158acd974528be6af43a3bfac50f.webp",
  "media_type": "image/webp",
  "aspect_ratio": "1:1",
  "generation_id": "d61c158acd974528be6af43a3bfac50f",
  "quality_profile": "balanced",
  "sale_price_usdc": 0.01,
  "prompt_policy_version": "balanced/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-flux-schnell-text-to-image-generator-15dbd2a9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
