{
  "service": "NoJunk Image",
  "description": "Pay-per-call image intelligence for agents: generate an image from a text prompt (FLUX.1 schnell, PNG bytes or base64 JSON), or describe any image you point at by URL or base64 (LLaVA 1.5 7B, answers your own question about the picture). You are only charged when a valid result is returned.",
  "openapi": "https://nojunk-image.mick8511.workers.dev/openapi.json",
  "endpoints": {
    "/generate": {
      "method": "POST",
      "url": "https://nojunk-image.mick8511.workers.dev/generate",
      "price": "$0.01 USDC on Base per request (x402)",
      "description": "Generate an image from a text prompt with FLUX.1 schnell; returns PNG bytes (default) or base64 JSON.",
      "example_body": {
        "prompt": "A cozy cabin in a snowy pine forest at dusk, warm light in the windows, soft falling snow, cinematic",
        "steps": 4,
        "format": "json"
      },
      "max_request_bytes": 8192
    },
    "/describe": {
      "method": "POST",
      "url": "https://nojunk-image.mick8511.workers.dev/describe",
      "price": "$0.005 USDC on Base per request (x402)",
      "description": "Describe or answer a question about an image given by URL or base64, with LLaVA 1.5 7B (uform-gen2 fallback).",
      "example_body": {
        "image_url": "https://upload.wikimedia.org/wikipedia/commons/thumb/4/47/PNG_transparency_demonstration_1.png/640px-PNG_transparency_demonstration_1.png",
        "question": "What objects are in this picture and what colors are they?"
      },
      "max_request_bytes": 14680064
    }
  },
  "models": {
    "generate": "@cf/black-forest-labs/flux-1-schnell",
    "describe": "@cf/llava-hf/llava-1.5-7b-hf",
    "describe_fallback": "@cf/unum/uform-gen2-qwen-500m"
  },
  "limits": {
    "prompt_chars": [
      3,
      1500
    ],
    "steps": [
      1,
      8
    ],
    "max_image_bytes": 10485760,
    "max_question_chars": 500,
    "image_fetch_timeout_ms": 15000
  },
  "no_charge_on": [
    "400 invalid input or prompt not allowed",
    "413 body or image too large",
    "415 not an image",
    "502 AI model unavailable or image_url unreachable"
  ],
  "configured": true,
  "facilitator": "cdp"
}