{
  "x402Version": 2,
  "id": 12345,
  "slug": "12345",
  "resource": "https://pixel402.dylan-caponi.workers.dev/generate",
  "description": "Generate 1-4 AI images from a text prompt using flux-schnell. $0.01 per image (price = $0.01 × num_outputs). Returns a job_id claim ticket; retrieve images free at /result/{job_id} (durable, no expiry).",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x309Fd902B4b29905c8493c94a569673e1D6DC0D3",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "method": "POST",
          "queryParams": {
            "prompt": "a cat wearing a top hat in a field of sunflowers"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "image_url": "https://pixel402.dylan-caponi.workers.dev/result/6f1c9e2a-4b7d-4c1e-9a2f-3d5e8b7a0c1d",
            "job_id": "6f1c9e2a-4b7d-4c1e-9a2f-3d5e8b7a0c1d",
            "model": "black-forest-labs/flux-schnell",
            "note": "Image stored durably. GET image_url anytime (free). If status is 'processing' (HTTP 202), poll result_url every ~10s.",
            "parameters": {
              "aspect_ratio": "1:1",
              "output_format": "webp",
              "output_quality": 80
            },
            "prediction_id": "abc123xyz",
            "price_paid": "$0.01",
            "prompt": "a cat wearing a top hat in a field of sunflowers",
            "status": "succeeded"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "queryParams": {
                "properties": {
                  "aspect_ratio": {
                    "description": "Aspect ratio: 1:1, 16:9, 9:16, 4:3, 3:4, etc. Default: 1:1",
                    "type": "string"
                  },
                  "go_fast": {
                    "description": "Use the speed-optimized fp8 model. Default: true",
                    "type": "boolean"
                  },
                  "megapixels": {
                    "description": "Approximate resolution: '1' or '0.25'. Default: '1'",
                    "type": "string"
                  },
                  "num_inference_steps": {
                    "description": "Denoising steps 1-4; fewer is faster, lower quality. Default: 4",
                    "type": "number"
                  },
                  "num_outputs": {
                    "description": "Number of images, 1-4. Price scales: $0.01 per image. Default: 1",
                    "type": "number"
                  },
                  "output_format": {
                    "description": "Image format: webp, jpg, png. Default: webp",
                    "type": "string"
                  },
                  "output_quality": {
                    "description": "Quality 1-100. Default: 80",
                    "type": "number"
                  },
                  "prompt": {
                    "description": "Text description of the image to generate",
                    "type": "string"
                  },
                  "seed": {
                    "description": "Random seed for reproducibility",
                    "type": "number"
                  }
                },
                "required": [
                  "prompt"
                ],
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "check_after_seconds": {
                    "type": "number"
                  },
                  "image_url": {
                    "type": "string"
                  },
                  "job_id": {
                    "type": "string"
                  },
                  "model": {
                    "type": "string"
                  },
                  "note": {
                    "type": "string"
                  },
                  "parameters": {
                    "type": "object"
                  },
                  "prediction_id": {
                    "type": "string"
                  },
                  "price_paid": {
                    "type": "string"
                  },
                  "prompt": {
                    "type": "string"
                  },
                  "result_url": {
                    "type": "string"
                  },
                  "status": {
                    "type": "string"
                  },
                  "timestamp": {
                    "type": "string"
                  }
                },
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "pixel402.dylan-caponi.workers.dev",
  "lastUpdated": "2026-09-15T21:52:46.868Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-09-15T21:52:46.585Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "pixel402.dylan-caponi.workers.dev",
    "manifest_name": "pixel402.dylan-caponi.workers.dev",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}