Api Endpoint

BlockRun.AI

Image editing and inpainting with multiple model support

Open interactive test console

Offering

Provider
BlockRun.AI
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
Creative
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://nano.blockrun.ai/api/v1/images/image2image
MIME type
application/json
First seen
2026-10-16T01:50:03.832Z
Last seen
Tags
X402, AI, blockchain, ai-&-ml

Payment pricing

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

Payment option 1
0.022 USDC
Atomic price: 22000 · Network: eip155:137 · Asset: USDC · Scheme: exact
Payment option 2
0.022 USDC
Atomic price: 22000 · Network: eip155:42161 · Asset: USDC · Scheme: exact
Payment option 3
0.022 USDC
Atomic price: 22000 · Network: eip155:10 · Asset: USDC · Scheme: exact
Payment option 4
22000 atomic units
Atomic price: 22000 · Network: eip155:130 · Asset: 0x078D782b760474a361dDA0AF3839290b0EF57AD6 · Scheme: exact
Payment option 5
0.022 USDC
Atomic price: 22000 · Network: eip155:43114 · Asset: USDC · Scheme: exact
Payment option 6
22000 atomic units
Atomic price: 22000 · Network: eip155:1 · Asset: 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 · Scheme: exact
Payment option 7
22000 atomic units
Atomic price: 22000 · Network: eip155:5042 · Asset: 0x3600000000000000000000000000000000000000 · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:137",
    "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
    "amount": "22000",
    "payTo": "0xe9030014F5DAe217d0A152f02A043567b16c1aBf"
  },
  {
    "scheme": "exact",
    "network": "eip155:42161",
    "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
    "amount": "22000",
    "payTo": "0xe9030014F5DAe217d0A152f02A043567b16c1aBf"
  },
  {
    "scheme": "exact",
    "network": "eip155:10",
    "asset": "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",
    "amount": "22000",
    "payTo": "0xe9030014F5DAe217d0A152f02A043567b16c1aBf"
  },
  {
    "scheme": "exact",
    "network": "eip155:130",
    "asset": "0x078D782b760474a361dDA0AF3839290b0EF57AD6",
    "amount": "22000",
    "payTo": "0xe9030014F5DAe217d0A152f02A043567b16c1aBf"
  },
  {
    "scheme": "exact",
    "network": "eip155:43114",
    "asset": "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",
    "amount": "22000",
    "payTo": "0xe9030014F5DAe217d0A152f02A043567b16c1aBf"
  },
  {
    "scheme": "exact",
    "network": "eip155:1",
    "asset": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
    "amount": "22000",
    "payTo": "0xe9030014F5DAe217d0A152f02A043567b16c1aBf"
  },
  {
    "scheme": "exact",
    "network": "eip155:5042",
    "asset": "0x3600000000000000000000000000000000000000",
    "amount": "22000",
    "payTo": "0xe9030014F5DAe217d0A152f02A043567b16c1aBf"
  }
]

Observed health

Status
Healthy
Latest latency
82 ms
Average latency
613 ms
HTTP status
204
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

{
  "body": {
    "type": "object",
    "required": [
      "prompt",
      "image"
    ],
    "properties": {
      "n": {
        "type": "integer",
        "default": 1,
        "maximum": 4,
        "minimum": 1
      },
      "mask": {
        "type": "string",
        "pattern": "^data:image/",
        "description": "Optional mask as base64 data URI; transparent pixels mark the editable region. OpenAI models only — rejected for Google models."
      },
      "size": {
        "enum": [
          "1024x1024",
          "1792x1024",
          "1024x1792"
        ],
        "type": "string",
        "default": "1024x1024"
      },
      "image": {
        "oneOf": [
          {
            "type": "string",
            "pattern": "^data:image/"
          },
          {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^data:image/"
            },
            "maxItems": 4,
            "minItems": 1
          }
        ],
        "description": "Source image(s) as base64 data URI(s). Pass a single string, or an array (OpenAI-compatible image[]) to fuse multiple sources — e.g. a reference image + a brand logo. Max 4 for OpenAI, 3 for Google. Multi-image cannot be combined with mask."
      },
      "model": {
        "enum": [
          "openai/gpt-image-1",
          "openai/gpt-image-2",
          "google/nano-banana",
          "google/nano-banana-2",
          "google/nano-banana-pro"
        ],
        "type": "string",
        "default": "openai/gpt-image-2"
      },
      "prompt": {
        "type": "string",
        "description": "Edit instructions for the image."
      }
    }
  },
  "type": "http",
  "method": "POST",
  "bodyType": "json"
}

Output schema

{
  "type": "object",
  "properties": {
    "example": {
      "type": "object",
      "properties": {
        "data": {
          "type": "array"
        },
        "created": {
          "type": "number"
        }
      }
    }
  }
}