Image Converter
netConvert an image between JPG, PNG and WebP, with quality control.
POST /api/v1/image-convert- API version
- v1
- Output schema
- 1
The endpoint path is always /v1. The schema number below tracks this tool's output shape and changes independently.
Create a free account →Network tool — this endpoint makes an outbound request.
Parameters
| Parameter | Type | Required | Default |
|---|---|---|---|
| image | file | yes | — |
| format | jpeg | png | webp | no | jpeg |
| quality | number | no | 82 |
Request
curl -X POST https://sinikoding.dev/api/v1/image-convert \ -H 'content-type: application/json' \ -H 'x-api-key: tk_live_…' \ -d '{"image":"…","format":"jpeg","quality":82}'
Returns
"output": { "kind": "file", "dataUri": "data:image/…;base64,…", "filename": "…", "mime": "…", "size": 0 }
Calls a same-origin sandbox endpoint, not /api/v1. No key needed, capped at 15 requests a minute.
Request
curl -X POST https://sinikoding.dev/api/v1/image-convert \ -H 'content-type: application/json' \ -H 'x-api-key: tk_live_…' \ -d '{"image":"","format":"jpeg","quality":"82"}'
Response
Send a request to see the response.