{
  "x402Version": 2,
  "id": 38175,
  "slug": "38175",
  "resource": "https://base.mapleai.shop/api/v1/images/image2image",
  "description": "Edit an image, priced per image and size",
  "type": "http",
  "resourceType": "Market Data",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x63db6eaf635a31bbc6714fe37bdc85243864f611",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "21000",
      "amountUsd": 0.021,
      "maxTimeoutSeconds": 120
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAADElEQVR4nGP4z8AAAAMBAQDJ/pLvAAAAAElFTkSuQmCC",
            "model": "gpt-image-2",
            "n": 1,
            "prompt": "Make the leaf green",
            "size": "1024x1024"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "created": 1700000000,
            "data": [
              {
                "url": "https://example.com/image.png"
              }
            ]
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "image": {
                    "description": "PNG, JPEG or WebP data URI, maximum 10 MB",
                    "type": "string"
                  },
                  "model": {
                    "enum": [
                      "gpt-image-2",
                      "gpt-image-2.5",
                      "gpt-image-2.5-flare",
                      "gpt-image-2.5-sunburst",
                      "grok-imagine-image",
                      "gpt-image-2-2k",
                      "gpt-image-2.5-sunburst-2k"
                    ],
                    "type": "string"
                  },
                  "n": {
                    "maximum": 4,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "prompt": {
                    "type": "string"
                  },
                  "size": {
                    "type": "string"
                  }
                },
                "required": [
                  "model",
                  "size",
                  "prompt",
                  "image"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "base.mapleai.shop",
  "lastUpdated": "2026-09-27T17:45:24.181Z",
  "quality": {
    "calls30d": 1,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-09-27T17:45:23.698Z"
  },
  "metadata": {
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAADElEQVR4nGP4z8AAAAMBAQDJ/pLvAAAAAElFTkSuQmCC",
              "model": "gpt-image-2",
              "n": 1,
              "prompt": "Make the leaf green",
              "size": "1024x1024"
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "created": 1700000000,
              "data": [
                {
                  "url": "https://example.com/image.png"
                }
              ]
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "properties": {
                    "image": {
                      "description": "PNG, JPEG or WebP data URI, maximum 10 MB",
                      "type": "string"
                    },
                    "model": {
                      "enum": [
                        "gpt-image-2",
                        "gpt-image-2.5",
                        "gpt-image-2.5-flare",
                        "gpt-image-2.5-sunburst",
                        "grok-imagine-image",
                        "gpt-image-2-2k",
                        "gpt-image-2.5-sunburst-2k"
                      ],
                      "type": "string"
                    },
                    "n": {
                      "maximum": 4,
                      "minimum": 1,
                      "type": "integer"
                    },
                    "prompt": {
                      "type": "string"
                    },
                    "size": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "model",
                    "size",
                    "prompt",
                    "image"
                  ],
                  "type": "object"
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "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": "base.mapleai.shop",
    "manifest_name": "base.mapleai.shop",
    "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": {
    "example": {},
    "type": "string"
  }
}