Lorem Picsum API
Overview
Lorem Picsum provides free, beautiful placeholder images sourced from Unsplash with a simple URL-based API that requires no authentication. You can get random or specific photos in any size by specifying dimensions in the URL. It is perfect for quickly filling designs and prototypes with realistic-looking photos.
Beginner Tip
Use the URL pattern https://picsum.photos/{width}/{height} to get a random photo at the exact size you need with no API key or sign-up required. Add ?grayscale or ?blur=2 as query parameters to apply simple effects instantly.
Available Data
Example Response
{
"id": "Dwu85P9SOIk",
"urls": {
"full": "https://images.unsplash.com/photo-...",
"regular": "https://images.unsplash.com/photo-...?w=1080",
"thumb": "https://images.unsplash.com/photo-...?w=200"
},
"width": 4000,
"height": 3000,
"user": {
"name": "John Doe",
"username": "johndoe"
}
} Field Reference
id Unique identifier of the photo, usable in https://picsum.photos/id/{id}/{width}/{height} for a consistent image. author Name of the photographer who took the photo on Unsplash. width Original width of the photo in pixels before any resizing. height Original height of the photo in pixels before any resizing. url Link to the original Unsplash photo page for attribution. download_url Direct URL to a full-resolution version of the photo. Implementation Example
const url = "https://picsum.photos/";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Matrix Score Breakdown
Fully tested on Apr 5, 2026
Technical Specifications
Related Tags
Similar APIs
View All →Imsea
Imsea provides programmatic access to free image search via REST API.
PlaceKeanu
⭐ Beginner's PickPlaceKeanu is a fun, free placeholder image API that serves Keanu Reeves photos in any size you specify in the URL with no API key or sign-up needed.
Readme typing SVG
⭐ Beginner's PickReadme Typing SVG generates animated SVG images that display a customizable typing-and-deleting text animation, commonly used in GitHub profile READMEs to add a dynamic introduction.
ReSmush.it
⭐ Beginner's PickReSmush.it is a free image optimization API that compresses photos to reduce file size without visibly losing quality.
Screenshotlayer
⭐ Beginner's PickScreenshotlayer is a simple API that converts any URL into a screenshot image with a single HTTP request.