Api Endpoint

quickbuild.quynguyenbac.workers.dev

Generate an original 1024x1024 image from a text prompt with FLUX.1 [schnell] on Workers AI (about 2-5 s). Returns JSON with image_base64 + mimeType, or the raw image bytes with format=jpeg. Content policy: no sexual/nude, gore, hate, real or famous people, or ID documents/currency; such prompts get HTTP 400 and are not charged. All params optional: with no prompt a sample watercolor lighthouse is drawn.

Open interactive test console

Offering

Provider
quickbuild.quynguyenbac.workers.dev
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Other
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://quickbuild.quynguyenbac.workers.dev/api/image
MIME type
application/json
First seen
2026-10-23T22:46:33.373Z
Last seen
Tags
AI, image, image-generation, text-to-image, flux

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.01 USDC
Atomic price: 10000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "10000",
    "payTo": "0x751a4c3841bE287544C371B4EE09Bd3366AeA7cf"
  }
]

Observed health

Status
Healthy
Latest latency
372 ms
Average latency
441 ms
HTTP status
402
Last checked
Reachability
100% over 15 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET"
      ]
    },
    "queryParams": {
      "type": "object",
      "properties": {
        "prompt": {
          "type": "string",
          "description": "What to draw (max 1000 chars). Optional: defaults to a watercolor lighthouse."
        },
        "steps": {
          "type": "integer",
          "minimum": 1,
          "maximum": 8,
          "description": "Diffusion steps, more = more detail (default 4)."
        },
        "format": {
          "type": "string",
          "enum": [
            "json",
            "jpeg"
          ],
          "description": "json (default): {image_base64, mimeType,...}; jpeg: raw image bytes."
        }
      },
      "required": []
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string"
    },
    "example": {
      "type": "object",
      "properties": {
        "prompt": {
          "type": "string"
        },
        "steps": {
          "type": "integer"
        },
        "mimeType": {
          "type": "string"
        },
        "width": {
          "type": "integer"
        },
        "height": {
          "type": "integer"
        },
        "bytes": {
          "type": "integer"
        },
        "image_base64": {
          "type": "string",
          "description": "Base64-encoded image"
        },
        "model": {
          "type": "string"
        }
      }
    }
  },
  "required": [
    "type"
  ]
}