Skip to content
Last updated

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

Automatically remove an image’s background to create transparency or a custom color backdrop using Freddy vision models.

Authentication

Request body

image_url string required
Public URL or base64-encoded string for the source image.

background_color string optional
Hex or named color to fill the background. Transparent by default.

format string optional
Return format. Choose png, jpeg, or webp. Default is png.

Returns

JSON object containing image data and mask information.

{
  "data": [
    {
      "url": "https://api.freddy.aitronos.com/processed-images/img_abc123.png",
      "foreground_mask": "https://api.freddy.aitronos.com/masks/mask_abc123.png",
      "background_removed": true
    }
  ]
}
curl -X POST "https://api.freddy.aitronos.com/v1/images/remove-background" \
  -H "Authorization: Bearer $FREDDY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image_url": "https://example.com/product.jpg",
    "background_color": "white",
    "format": "png"
  }'