Upload images programmatically and get direct links. API access is a Pro feature.
https://www.sfimg.top
Use your API key as a Bearer token. Keys are created in API Keys.
Authorization: Bearer fk_your_api_key
POST /api/upload — multipart form, field name file.
curl -X POST "https://www.sfimg.top/api/upload" -H "Authorization: Bearer fk_your_api_key" -F "file=@photo.png"
Supported formats: JPG, JPEG, PNG, GIF, WEBP, BMP. Max 20MB per image for Pro.
{
"success": true,
"url": "https://www.sfimg.top/i/abc123.png",
"markdown": "",
"bbcode": "[img]https://www.sfimg.top/i/abc123.png[/img]",
"filename": "abc123.png",
"status": "pending_review"
}
| Period | Limit |
|---|---|
| Hourly | 120 uploads / key |
| Daily | 500 uploads / key |
When you hit a limit you will receive HTTP 429 with a JSON error message.
| Status | Meaning |
|---|---|
| 403 | Invalid or inactive API key / Pro required |
| 413 | File too large (over 20MB) |
| 415 | Unsupported or invalid image file |
| 429 | Rate limit reached or storage full |
| 507 | Site storage is full |