Cover Image

Image Hosting Services

Quickly host your images with simple and easy steps for free, no registration required! We also provide an API for you to integrate with your favourite applications.

How it works?
Served completely serverless using Cloudflare Workers and Cloudflare R2.

Upload Your Image

or use our API to do so


API

Use our API to upload your images through POST request

Endpoint https://img.thr.fi/img/create
Method POST
Content-Type multipart/form-data;

You can send a POST request to the endpoint with the image file in the body with the key image. Make sure that your image is less than 10MB and is of type JPG, PNG or GIF. Below is an example of a request using Postman.

Successful Request

Request
User-Agent: PostmanRuntime/7.32.3
Accept: */*
Cache-Control: no-cache
Postman-Token: ...
Host: https://img.thr.fi
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Content-Type: multipart/form-data; boundary=--------------------------791398935748019206849110
Content-Length: 32261

image: ...
                        
Response
Content-Length: 71
Content-Type: application/json
Access-Control-Allow-Origin: null
Access-Control-Allow-Methods: GET, POST
Access-Control-Max-Age: 86400

{
    "url": ...
}
                        

Failed Request

Request
User-Agent: PostmanRuntime/7.32.3
Accept: */*
Cache-Control: no-cache
Postman-Token: ...
Host: https://img.thr.fi
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Content-Type: multipart/form-data; boundary=--------------------------045718419904143887365714
Content-Length: 248951

image: ...
                        
Response
Content-Length: 54
Content-Type: application/json; charset=utf-8
Access-Control-Allow-Origin: null
Access-Control-Allow-Methods: GET, POST
Access-Control-Max-Age: 86400

{
    "status": 400,
    "error": "Only jpg, png, or gif allowed"
}
                        


Created by Thirafi Najwan