Api Endpoint

haven-media

Edit an image from a text instruction. SFW only.

Open interactive test console

Offering

Provider
api.havenagent.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://api.havenagent.ai/x402/api/v1/image/edit
MIME type
Not provided
First seen
2026-10-16T01:52:40.118Z
Last seen
Tags
None supplied

Payment pricing

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

Payment option 1
0.1 USDC
Atomic price: 100000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "100000",
    "payTo": "0xa8f73f2fDFDa46f6591759458614BC2883529d77"
  }
]

Observed health

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

{
  "additionalProperties": false,
  "properties": {
    "body": {
      "properties": {
        "imageBase64": {
          "description": "base64 image bytes, no data-URI prefix",
          "type": "string"
        },
        "mediaType": {
          "enum": [
            "image/png",
            "image/jpeg"
          ],
          "type": "string"
        },
        "negativePrompt": {
          "type": "string"
        },
        "prompt": {
          "maxLength": 2000,
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "prompt",
        "imageBase64",
        "mediaType"
      ],
      "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 schema

{
  "properties": {
    "example": {
      "properties": {
        "aiDisclosure": {
          "properties": {
            "aiGenerated": {
              "type": "boolean"
            },
            "embeddedIn": {
              "type": "string"
            },
            "label": {
              "type": "string"
            },
            "statement": {
              "type": "string"
            },
            "termsUrl": {
              "type": "string"
            }
          },
          "required": [
            "aiGenerated",
            "statement",
            "termsUrl"
          ],
          "type": "object"
        },
        "etaSeconds": {
          "type": "number"
        },
        "jobId": {
          "type": "string"
        },
        "kind": {
          "enum": [
            "music",
            "image_generate",
            "image_edit",
            "image_upscale",
            "image_restore",
            "video",
            "video_sound"
          ],
          "type": "string"
        },
        "pollBudgetSeconds": {
          "type": "number"
        },
        "resultUrl": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "statusUrl": {
          "type": "string"
        }
      },
      "required": [
        "jobId",
        "status",
        "statusUrl",
        "resultUrl",
        "etaSeconds",
        "pollBudgetSeconds"
      ],
      "type": "object"
    },
    "type": {
      "type": "string"
    }
  },
  "required": [
    "type"
  ],
  "type": "object"
}