無料API
APIキー保護、無料で利用可能
Flexible Image Compression
Resize and recompress a single image with custom output format, size, and quality.
エンドポイント
POST /api/free/compress-image-stream無料枠: 5 RPM。有料ユーザー: 500 RPM。制限はすべての無料APIエンドポイントで共有されます。
利用メモ
- Use size=custom with width between 1 and 8192.
- Uses local Sharp processing; no third-party compression key is required.
API例
curl -X POST "https://api.apiany.ai/api/free/compress-image-stream" \ -H "Authorization: Bearer $API_KEY" \ -F "image=@input.png" \ -F "format=webp" \ -F "size=custom" \ -F "width=1024" \ -F "quality=82" \ --output output.webp
Playground
リクエストはブラウザからこのサイトへ、あなたのAPIキーを使って送信されます。
Image file *
Output format
Size
Custom width
Quality
APIキーと必須項目を入力すると実行できます。POST /api/free/compress-image-stream