{"access":{"authentication":{"format":"L402 {macaroon}:{proof_of_payment}","header":"Authorization","protocols":["L402","MPP"],"format_mpp":"Payment <base64url_json>"},"endpoint":"https://sats4ai.com/api/l402/edit-image","method":"POST"},"content_type":"api","description":"Edit an image using AI. Describe the change you want and what to keep.\n```\n{\n    \"prompt\": \"Change the jacket to red leather, keep the face and pose unchanged\",\n    \"image\": \"base64-encoded-image-data\",\n    \"aspect_ratio\": \"match_input_image\",\n    \"output_format\": \"png\"\n}\n```\nOne flat price of 200 sats per edit, at any output size. One reference image, in the `image` field. Supports: jpg, png, webp output. NOTE: png here is a container only — this model returns an OPAQUE image and cannot produce an alpha channel, whatever the prompt asks. For a genuine transparent cutout use /api/l402/remove-background. aspect_ratio options: match_input_image, auto, 1:1, 4:3, 3:4, 16:9, 9:16, 3:2, 2:3. resolution is accepted for compatibility and does not change the price.","name":"Image Editing"}