NewProfiles are here!View user profiles guide

Image Hosting for Developers API

3 min read36 viewsImgLink TeamMarch 14, 2026
developerapi

Image Hosting API for Developers

ImgLink provides a comprehensive REST API for programmatic image hosting. Upload, manage, and retrieve images from your applications, scripts, and services.

Getting Started

1. Create a Free Account


Sign up in 10 seconds. No credit card required.

2. Get Your API Key


Go to Dashboard → API Keys → Create New Key.

3. Authenticate


Include your API key in the Authorization header:
Authorization: Bearer YOUR_API_KEY

API Endpoints

Upload Image

POST /api/upload
Content-Type: multipart/form-data
Authorization: Bearer YOUR_API_KEY

Parameters:
FieldTypeRequiredDescription
fileFileYesImage file (PNG, JPEG, WebP, GIF, SVG)
visibilityStringNo"public" (default) or "private"

Response:

{
"images": [{
"id": "abc123",
"url": "https://imglink.cc/cdn/abc123.png",
"thumbnail": "https://imglink.cc/cdn/thumb/abc123.webp",
"viewer": "https://imglink.cc/i/abc123",
"width": 1920,
"height": 1080,
"size": 245678,
"mime": "image/png"
}]
}

Get Image Info

GET /api/images/:id

Returns image metadata, embed codes, and URLs.

Delete Image

DELETE /api/images/:id
Authorization: Bearer YOUR_API_KEY

List Your Images

GET /api/dashboard/images?page=1
Authorization: Bearer YOUR_API_KEY

Create Album

POST /api/albums
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

{"title": "My Album", "description": "Collection of screenshots"}

Code Examples

Node.js


import fs from 'fs';

const form = new FormData();
form.append('file', fs.createReadStream('image.png'));
form.append('visibility', 'public');

const res = await fetch('https://imglink.cc/api/upload', {
method: 'POST',
headers: { 'Authorization': 'Bearer ' + API_KEY },
body: form
});

const data = await res.json();
console.log(data.images[0].url);

Python


import requests

with open('image.png', 'rb') as f:
r = requests.post(
'https://imglink.cc/api/upload',
headers={'Authorization': f'Bearer {API_KEY}'},
files={'file': f},
data={'visibility': 'public'}
)

print(r.json()['images'][0]['url'])

cURL


curl -X POST https://imglink.cc/api/upload \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "[email protected]" \
-F "visibility=public"

Rate Limits


TierLimit
Free Account100 uploads/hour

Error Codes





CodeMeaning
400Bad request (invalid file, too large)
401Missing or invalid API key
429Rate limit exceeded
500Server error
Ready to start? Create a free ImgLink account in 10 seconds - no credit card, no BS. Unlimited uploads, albums, and API access.

Start hosting images for free today. Upload your first image now or create a free account to unlock albums, dashboard analytics, and developer API access. It takes 10 seconds.

Start hosting images for free

Free account, 10 seconds, no credit card. Unlimited uploads, albums, API access.