{
  "x402Version": 2,
  "id": 31030,
  "slug": "31030",
  "resource": "https://flat-rate-llm.kikoribera03.workers.dev/v1/ai/image-edit",
  "description": "Edits an image you provide instead of generating one from scratch: pass the image and a black-and-white mask, and Stable Diffusion inpainting repaints only the white area following your prompt. Image and mask go as https URLs or as base64, up to 10 MB each. Returns a hosted image URL valid for 24 hours. You are only charged if the edit is delivered. No API key, no account.",
  "type": "http",
  "resourceType": "AI Inference",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xc210Ea7D5692a6401ADf25BbCB7aCDe9cDB7e9Ff",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "20000",
      "amountUsd": 0.02,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0xc210Ea7D5692a6401ADf25BbCB7aCDe9cDB7e9Ff",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "20000",
      "amountUsd": 0.02,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0xc210Ea7D5692a6401ADf25BbCB7aCDe9cDB7e9Ff",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "20000",
      "amountUsd": 0.02,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "mask_url": "https://flat-rate-llm.kikoribera03.workers.dev/m/muestra-mascara.png",
            "prompt": "a blue wool hat on the fox",
            "url": "https://flat-rate-llm.kikoribera03.workers.dev/m/muestra-imagen.jpg"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "bytes": 465282,
            "expires": "2026-10-02T00:00:00.000Z",
            "mime": "image/png",
            "model": "@cf/runwayml/stable-diffusion-v1-5-inpainting",
            "url": "https://flat-rate-llm.kikoribera03.workers.dev/m/0425f0c2a9e47b1d3e8a6c1f.png"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET"
                ],
                "type": "string"
              },
              "queryParams": {
                "properties": {
                  "guidance": {
                    "description": "How closely to follow the prompt, 0-20.",
                    "type": "number"
                  },
                  "image": {
                    "description": "The image to edit, as base64. Use this or url.",
                    "type": "string"
                  },
                  "mask": {
                    "description": "The mask, as base64. Use this or mask_url.",
                    "type": "string"
                  },
                  "mask_url": {
                    "description": "https URL of the mask: white where it should repaint, black where it must not. Use this or mask.",
                    "type": "string"
                  },
                  "prompt": {
                    "description": "What to paint into the masked area, up to 2048 characters.",
                    "type": "string"
                  },
                  "seed": {
                    "description": "Same inputs and same seed give the same edit.",
                    "type": "number"
                  },
                  "steps": {
                    "description": "Diffusion steps, 1-20.",
                    "type": "number"
                  },
                  "url": {
                    "description": "https URL of the image to edit. Use this or image.",
                    "type": "string"
                  }
                },
                "required": [
                  "prompt"
                ],
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "inpainting",
    "image editing",
    "edit image",
    "mask",
    "remove object",
    "bazaar"
  ],
  "sourceHost": "flat-rate-llm.kikoribera03.workers.dev",
  "lastUpdated": "2026-10-08T06:14:56.752Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-08T06:14:56.618Z"
  },
  "metadata": {
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "method": "GET",
            "queryParams": {
              "mask_url": "https://flat-rate-llm.kikoribera03.workers.dev/m/muestra-mascara.png",
              "prompt": "a blue wool hat on the fox",
              "url": "https://flat-rate-llm.kikoribera03.workers.dev/m/muestra-imagen.jpg"
            },
            "type": "http"
          },
          "output": {
            "example": {
              "bytes": 465282,
              "expires": "2026-10-02T00:00:00.000Z",
              "mime": "image/png",
              "model": "@cf/runwayml/stable-diffusion-v1-5-inpainting",
              "url": "https://flat-rate-llm.kikoribera03.workers.dev/m/0425f0c2a9e47b1d3e8a6c1f.png"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "method": {
                  "enum": [
                    "GET"
                  ],
                  "type": "string"
                },
                "queryParams": {
                  "properties": {
                    "guidance": {
                      "description": "How closely to follow the prompt, 0-20.",
                      "type": "number"
                    },
                    "image": {
                      "description": "The image to edit, as base64. Use this or url.",
                      "type": "string"
                    },
                    "mask": {
                      "description": "The mask, as base64. Use this or mask_url.",
                      "type": "string"
                    },
                    "mask_url": {
                      "description": "https URL of the mask: white where it should repaint, black where it must not. Use this or mask.",
                      "type": "string"
                    },
                    "prompt": {
                      "description": "What to paint into the masked area, up to 2048 characters.",
                      "type": "string"
                    },
                    "seed": {
                      "description": "Same inputs and same seed give the same edit.",
                      "type": "number"
                    },
                    "steps": {
                      "description": "Diffusion steps, 1-20.",
                      "type": "number"
                    },
                    "url": {
                      "description": "https URL of the image to edit. Use this or image.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "prompt"
                  ],
                  "type": "object"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "flat-rate-llm.kikoribera03.workers.dev",
    "manifest_name": "flat-rate-llm.kikoribera03.workers.dev",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "bytes": 465282,
    "expires": "2026-10-02T00:00:00.000Z",
    "mime": "image/png",
    "model": "@cf/runwayml/stable-diffusion-v1-5-inpainting",
    "url": "https://flat-rate-llm.kikoribera03.workers.dev/m/0425f0c2a9e47b1d3e8a6c1f.png"
  }
}