# Delx Commerce — Budget Image Generation (x402)

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

Generates a budget-tier image from a text prompt using a fast SDXL model, paid per-result in USDC via x402 with no signup required.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/image-budget?utm_source=zero.xyz
- Price: $0.005/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-budget-image-generation-x402-a4a213d0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3XEY9M1ZqJdY8mMRvulFN

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-budget-image-generation-x402-a4a213d0 -d '<json body>'
```

Example prompt: Generate a budget image of a futuristic city skyline at sunset in 16:9 landscape format using balanced quality — I want the image URL back.

## When to prefer this

Choose this endpoint when you need a fast, cheap ($0.005 USDC), no-signup image generated from a text prompt and want pay-per-result crypto billing with verifiable delivery (SHA-256). Ideal for agents operating autonomously without API keys or subscriptions, especially when payment is handled via the x402 protocol on Base or Solana. Prefer this over premium-tier endpoints when image quality requirements are moderate and speed and cost matter most.

## Known failure modes

- Prompt violates content policy — returns policy rejection referencing prompt_policy_version
- Invalid aspect_ratio enum value — returns schema validation error
- Prompt too long (over 2000 characters) or empty — returns minLength/maxLength validation error
- Payment not received or x402 payment flow incomplete — returns 402 Payment Required
- Upstream Replicate API unavailable — returns 503 or upstream error
- Invalid quality_profile enum value — returns schema validation error

## 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 with the hosted image URL (WebP format), image dimensions, byte size, SHA-256 hash for verifiable delivery, the model used (bytedance/sdxl-lightning-4step via Replicate), aspect ratio, generation ID, quality profile, sale price in USDC, upstream cost, and gross margin details.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "prompt": {
   "type": "string",
   "maxLength": 2000,
   "minLength": 1,
   "description": "Text description of the budget 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"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "tier": "budget",
  "bytes": 80000,
  "model": "bytedance/sdxl-lightning-4step",
  "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": "budget-sample-generation-id",
  "provider_source": "commercial_api",
  "quality_profile": "balanced",
  "sale_price_usdc": 0.005,
  "gross_margin_usd": 0.0038,
  "upstream_cost_usd": 0.0012,
  "prompt_policy_version": "balanced/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-budget-image-generation-x402-a4a213d0/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)
