Skip to content
Last updated

🔨 In Development — This section is still being developed and may change.
POSThttps://api.freddy.aitronos.com/v1/images/cleanup

Remove unwanted objects, fix imperfections, and enhance images with Freddy cleanup tools.

Authentication

  • Authorization: Bearer $FREDDY_API_KEY

Request Body

image_url string required
Source image URL or base64-encoded image payload.

cleanup_instructions string required
Describe what to remove or repair in the image.

format string optional
Response format (png, jpeg, webp). Default is png.

strength string optional
Cleanup intensity: subtle, moderate, or aggressive. Default is moderate.

Returns

Processed image details.

{
  "data": [
    {
      "url": "https://api.freddy.aitronos.com/cleaned-images/img_abc123.jpg",
      "cleanup_mask": "https://api.freddy.aitronos.com/masks/cleanup_abc123.png",
      "objects_removed": [
        "trash can"
      ]
    }
  ]
}
Bash
curl -X POST "https://api.freddy.aitronos.com/v1/images/cleanup" \
  -H "Authorization: Bearer $FREDDY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image_url": "https://example.com/photo.jpg",
    "cleanup_instructions": "remove the trash can from the background",
    "format": "jpeg",
    "strength": "moderate"
  }'