Edit an image
Edit or inpaint an existing image using a text prompt. The response format follows
the same output_type rules as /image/generate.
Authorization
SIWx Base64-encoded JSON envelope containing a CAIP-122 sign-in message and its cryptographic signature.
{
"message": "<CAIP-122 message>",
"signature": "<base58 for Solana, hex for EVM>"
}In: header
Request Body
application/json
Canonical model slug.
Input images. The first image is the base image.
Image source — provide either b64 (data URL) or url (HTTPS URL).
Text prompt describing the desired edit.
Things to avoid.
Number of output variants (1–6).
1 <= value <= 6Output image width in pixels.
Output image height in pixels.
Aspect ratio hint.
Whether to extend the prompt automatically.
Whether to add a watermark.
"png" | "jpeg" | "webp""data_url" | "file"Seed for reproducibility.
Guidance scale (0.0–50.0).
Whether to stream intermediate results.
End-user identifier.
Free-form metadata.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://beta.aimo.network/api/v1/image/edit" \ -H "Content-Type: application/json" \ -d '{ "model": "string", "images": [ {} ], "prompt": "string" }'{
"id": "string",
"created": 0,
"status": "completed",
"images": [
{
"index": 0,
"data_url": "string",
"width": 0,
"height": 0,
"format": "string",
"seed": 0
}
],
"input_images": [
{
"width": 0,
"height": 0
}
],
"error": {
"error": {
"code": "string",
"message": "string"
}
},
"provider_metadata": {
"provider": "string",
"raw": {}
}
}{
"error": {
"code": "string",
"message": "string"
}
}{
"error": {
"code": "string",
"message": "string"
}
}{
"error": {
"code": "string",
"message": "string"
}
}