新規ユーザーは無料クレジットを獲得、クレジットカード不要 はじめる
無料API
APIキー保護、無料で利用可能

Compress Image

Compress a single image to WebP with a 500px or 1200px target width.

エンドポイント
POST /api/free/compress-image
無料枠: 5 RPM。有料ユーザー: 500 RPM。制限はすべての無料APIエンドポイントで共有されます。

利用メモ

  • Accepts image/* request bodies or multipart form-data with an image/file field.
  • Returns a WebP image response.

API例

curl -X POST "https://api.apiany.ai/api/free/compress-image?size=1200" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: image/png" \
  --data-binary @input.png \
  --output output.webp

Playground

リクエストはブラウザからこのサイトへ、あなたのAPIキーを使って送信されます。

Image file *
Size *
APIキーと必須項目を入力すると実行できます。POST /api/free/compress-image