Upload and host images instantly via a simple REST API.
- Upload Base64‑encoded images
- Automatic content type detection
- Returns hosted image URL
- Fast and lightweight
curl --location 'https://api.myapi.rest/api/image/upload' --header 'Authorization: Bearer <API_KEY>' --header 'Content-Type: application/json' --data '{
"file_base64": "<BASE_64_DATA>",
"file_name": "logo.png"
}'Sample response:
{
"id": "11",
"url": "https://myapi.rest/images/11/29086085d6124aeabb7629c013563d3f.png",
"size": 1592,
"content_type": "image/png",
"ms": 67
}See the /docs folder for full usage guides, examples, errors, and endpoint details.
Language examples are available in the /examples directory, including:
- C#
- JavaScript
- Python
- PHP
- Postman Collection
This API is part of the broader myapi.rest developer suite.
For all APIs, documentation, and examples, visit: