Image

Convert an image to another format

Convert between JPEG, PNG, WebP, and AVIF. Returns the image bytes (default) or JSON with base64.

post/image/convert

Request

  • Base URL: https://abundanceapis.com
  • URL: https://abundanceapis.com/image/convert
  • Auth: none declared

Request body

urlstring

Public image URL

base64string

Base64-encoded image (data URI ok)

output'binary' | 'base64'

Return the image bytes or JSON with base64

format'jpeg' | 'png' | 'webp' | 'avif' required

Output format (default: keep input)

qualityinteger

Output quality (lossy formats)

Example request

{
  "url": "https://picsum.photos/800"
}

Changes

No recorded changes to this operation across all 1 revision of this API.