# Delx Commerce Image Generation API

> Delx Commerce Image Generation API is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-01).

Generates images from text prompts using Flux models, paid per-call in USDC via x402 with no signup required.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/image?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-image-generation-api-9dbdda22
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Hp91bv5NxU9NWDjTYErI-

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-commerce-image-generation-api-9dbdda22 -d '<json body>'
```

Example prompt: Generate an image of a futuristic city skyline at sunset with neon lights, in 16:9 aspect ratio, using the balanced quality profile.

## When to prefer this

Choose this endpoint when you need a pay-per-call image generation API with no API key or subscription, verifiable delivery via SHA256, exact USDC pricing, and Flux model quality. Ideal for autonomous AI agents that need to pay for individual image generations on-demand using x402 on Base or Solana without pre-registration.

## Known failure modes

- Invalid or empty prompt returns validation error
- Unsupported model enum value returns 400
- Payment not completed via x402 results in 402 response requiring USDC payment
- Prompt policy violation (e.g. disallowed content) may result in rejection
- Aspect ratio enum mismatch causes 400 bad request
- Upstream Replicate provider outage causes delayed or failed generation

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

Returns a JSON object containing the hosted image URL (WebP format), image dimensions (width/height), file size in bytes, SHA256 hash for verifiable delivery, generation ID, aspect ratio, model used, quality profile applied, sale price in USDC, and upstream cost/margin metadata.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "model": {
   "enum": [
    "black-forest-labs/flux-schnell",
    "flux-schnell",
    "schnell",
    "flux"
   ],
   "type": "string",
   "description": "Optional commercial Replicate model in the same SKU price band. Defaults to black-forest-labs/flux-schnell. Aliases: flux-schnell, schnell, flux. FLUX Dev is temporarily unavailable. 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-commerce-image-generation-api-9dbdda22/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
