Edit by Prompt
edit_by_promptEdit an image by applying a natural-language instruction, with an optional reference image for guided changes. Accepts HTTPS URLs or data URIs and charges the API account per use.
Instructions
Edit an image with a natural-language instruction, optionally using an attached reference image. Image inputs accept public HTTPS URLs or image data URIs. Charges the API account; cost and balance are in USD.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"image": "<image>",
"prompt": "<prompt>"
},
"name": "edit_by_prompt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | URL of the source image — a sketch, line drawing, 3D/CAD model screenshot, or photo. Either a public HTTPS URL reachable by MyArchitectAI, or an inline data:image/<mime>;base64,<payload> URI for a local file. | |
| prompt | Yes | Natural-language instruction describing the edit. | |
| referenceImage | No | Optional reference image URL or image data URI. Refer to it as "attached image" in the prompt. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| cost | No | ||
| error | No | ||
| output | No | URLs of generated images, or a video URL for animate. | |
| balance | No | ||
| requestId | No |