Edit an image you already have (inpainting)
Use when an agent must change part of an image and leave the rest untouched: 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.
Offering
- Provider
- flat-rate-llm.kikoribera03.workers.dev
- Method
- GET
- Offering type
- Api Endpoint
- Transport type
- http
- Category
- Creative
- Delivery
- Not provided
- Pricing model
- Not provided
- x402 version
- 2
Endpoint context
- URL
https://flat-rate-llm.kikoribera03.workers.dev/v1/ai/image-edit- MIME type
- Not provided
- First seen
- 2026-10-16T01:51:40.954Z
- Last seen
- Tags
- inpainting, image editing, edit image, mask, remove object, stable diffusion
Payment pricing
x402 payment terms are the authoritative price for calling this endpoint.
- Payment option 1
- 0.02 USDC
Atomic price: 20000 · Network: eip155:8453 · Asset: USDC · Scheme: exact - Payment option 2
- 0.02 USDC
Atomic price: 20000 · Network: eip155:137 · Asset: USDC · Scheme: exact - Payment option 3
- 0.02 USDC
Atomic price: 20000 · Network: eip155:42161 · Asset: USDC · Scheme: exact
Raw x402 terms
[
{
"scheme": "exact",
"network": "eip155:8453",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "20000",
"payTo": "0xc210Ea7D5692a6401ADf25BbCB7aCDe9cDB7e9Ff"
},
{
"scheme": "exact",
"network": "eip155:137",
"asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
"amount": "20000",
"payTo": "0xc210Ea7D5692a6401ADf25BbCB7aCDe9cDB7e9Ff"
},
{
"scheme": "exact",
"network": "eip155:42161",
"asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
"amount": "20000",
"payTo": "0xc210Ea7D5692a6401ADf25BbCB7aCDe9cDB7e9Ff"
}
]Observed health
- Status
- Healthy
- Latest latency
- 419 ms
- Average latency
- 1249 ms
- HTTP status
- 402
- Last checked
- Reachability
- 100% over 14 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 paint into the masked area, up to 2048 characters."
},
"url": {
"type": "string",
"description": "https URL of the image to edit. Use this or image."
},
"image": {
"type": "string",
"description": "The image to edit, as base64. Use this or url."
},
"mask_url": {
"type": "string",
"description": "https URL of the mask: white where it should repaint, black where it must not. Use this or mask."
},
"mask": {
"type": "string",
"description": "The mask, as base64. Use this or mask_url."
},
"steps": {
"type": "number",
"description": "Diffusion steps, 1-20."
},
"guidance": {
"type": "number",
"description": "How closely to follow the prompt, 0-20."
},
"seed": {
"type": "number",
"description": "Same inputs and same seed give the same edit."
}
},
"required": [
"prompt"
]
}
},
"required": [
"type",
"method"
],
"additionalProperties": false
}Output 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"
}