Free File Host
A Free File Host via API
API Endpoint:
https://api.hyprlab.io/v1/uploadsImage Upload Examples
curl -X POST https://api.hyprlab.io/v1/uploads \
-H "Authorization: Bearer $HYPRLAB_API_KEY" \
-F "file=@/path/to/your/image.jpg" \
-F "output_format=webp"curl -X POST https://api.hyprlab.io/v1/uploads \
-H "Authorization: Bearer $HYPRLAB_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"image": "https://example/image.webp",
"output_format": "png"
}'curl -X POST https://api.hyprlab.io/v1/uploads \
-H "Authorization: Bearer $HYPRLAB_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA...",
"output_format": "png"
}'curl -X POST https://api.hyprlab.io/v1/uploads \
-H "Authorization: Bearer $HYPRLAB_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"image": "iVBORw0KGgoAAAANSUhEUgAAAAUA.....",
"output_format": "jpg"
}'Sample Response:
{
"imageUrl": "https://example.com/image.png"
}Video Upload Examples
curl -X POST https://api.hyprlab.io/v1/uploads \
-H "Authorization: Bearer $HYPRLAB_API_KEY" \
-F "file=@/path/to/your/video.mp4"curl -X POST https://api.hyprlab.io/v1/uploads \
-H "Authorization: Bearer $HYPRLAB_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"video": "http://example.com/video.mp4"
}'curl -X POST https://api.hyprlab.io/v1/uploads \
-H "Authorization: Bearer $HYPRLAB_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"video": "data:video/mp4;base64,AAAAHGZ0eXBNNFYgAAAC..."
}'curl -X POST https://api.hyprlab.io/v1/uploads \
-H "Authorization: Bearer $HYPRLAB_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"video": "AAAAHGZ0eXBNNFYgAAAC...."
}'Sample Response:
{
"videoUrl": "https://example.com/video.mp4"
}Last updated