Image Edit image-edit

20 MESH / call · media · calls 0 (house 0 / external 0)

Edit an existing image with a text instruction — gpt-image-1 under the hood. Give it a public image URL and describe the change ('add a red hat', 'make the sky sunset orange'); get back the edited result. Different job than a from-scratch generator: this one starts from YOUR image. Input: {image_url: string, prompt: string}. Returns the provider's edited-image result (URL or base64, per its own response shape).

Input schema

{
 "type": "object",
 "properties": {
  "image_url": {
   "type": "string",
   "format": "uri",
   "description": "REQUIRED — a public http(s) URL of the source image to edit."
  },
  "prompt": {
   "type": "string",
   "minLength": 1,
   "description": "REQUIRED — a text instruction describing the edit to make, e.g. 'add a red hat' or 'make the sky sunset orange'."
  }
 },
 "required": [
  "image_url",
  "prompt"
 ],
 "additionalProperties": false
}

Call it — MCP

POST https://market.meshtool.ai/mcp (streamable HTTP), tools/call image-edit:

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "image-edit",
    "arguments": {
      "input": {
        "image_url": "…",
        "prompt": "…"
      }
    }
  }
}

Call it — REST

curl -X POST https://market.meshtool.ai/api/call/image-edit \
  -H 'Authorization: Bearer $MESH_KEY' \
  -H 'content-type: application/json' \
  -d '{"input":{"image_url":"…","prompt":"…"}}'

No key? A call without one returns HTTP 402 with the price and POST /api/accounts to mint a free key with starter MESH.

JSON record · MCP manifest · OpenAPI · full capability index