Free Stock Photo APIs Compared: Unsplash, Pexels, Pixabay, Openverse & Pexafy
Ten criteria, five APIs, every number taken from the providers' own docs: what each free tier really gives you, and where each one — including Pexafy — is the wrong choice.
You need free-to-use photos inside a product. The obvious move is to grab an API key from Unsplash, Pexels or Pixabay and ship. Two weeks later you discover the part nobody compares: each library is a separate integration, and your search results are only as good as the tags a stranger typed years ago.
This page is the comparison we wanted when we started building Pexafy: quotas in the same unit and what each API can and cannot do. Every competitor number comes from the provider's own docs, linked at the bottom. We also say plainly where Pexafy is not the right answer.
The comparison table
Five options, ten criteria. Unsplash, Pexels and Pixabay are single libraries with their own APIs. Openverse and Pexafy are aggregators — they search many libraries at once — which is the distinction most comparison articles quietly skip.
| UnsplashAPI | PexelsAPI | PixabayAPI | Openverseaggregator | Pexafyaggregator | |
|---|---|---|---|---|---|
| Free quota | 50 req/hour (demo) | 200 req/hour 20,000/month |
100 req/minute | No key needed (throttled) | 5,000 req/month |
| Higher tier | 1,000 req/hour after approval1 | Paused | On request (full API) | Register an app | From $5/mo · 25,000 req |
| Key issued | Instantly (demo only) | Paused no new keys2 | Instantly | Not required | Instantly no card |
| Search matches on | Keywords & tags | Keywords & tags | Keywords & tags | Keywords & metadata | Meaning semantic |
| Full-sentence queries | Degrade results | Degrade results | 100 characters max | Degrade results | 500 chars — improve results |
| Image → image search | No | No | No | No | Yes + “more like this” |
| Query languages | lang param (beta) |
28 locales | 26 language codes | English-centric | 100+, one index |
| Libraries per request | 1 | 1 | 1 | Many (CC sources) | 9 |
| Response schema | Its own | Its own | Its own | Unified | Unified + credit string |
| MCP server for AI agents | No official one | No official one | No official one | No official one | Yes hosted, OAuth 2.1 |
Sources: each provider's public documentation, checked 14 August 2026 and re-checked 11 October 2026 — links and details in the references at the end. Found something out of date? Tell us and we'll correct it.
Quotas: read the unit, not the number
Quota comparisons are where these articles usually go wrong, because the four APIs count four different things over four different windows. Converted to a common unit — a search a user actually sees — the ranking changes:
| Free plan | As documented | Per hour | What one request buys you |
|---|---|---|---|
| Unsplash | 50 req/hour (demo) · 1,000 after approval | 50 · 1,000 | One library, keyword-ranked |
| Pexels | 200 req/hour · 20,000/month | 200 | One library, keyword-ranked |
| Pixabay | 100 req/minute | 6,000 | One library, keyword-ranked |
| Pexafy | 5,000 req/month · 20 req/min | 1,200 (burst) | 9 libraries, semantically ranked, deduplicated, one schema |
Be honest about what this says: if you need raw volume against a single library, Pixabay's 100 requests per minute is the most generous free tier on this page, and we won't pretend otherwise. What it doesn't give you is coverage. To put the same result set together yourself from three libraries, the cost isn't one request — it's three, plus everything around them:
| To ship “one search across 3 libraries” | Direct APIs | Pexafy |
|---|---|---|
| Accounts & API keys to manage | 3 | 1 |
| HTTP calls per user search | 3 | 1 |
| Rate-limit windows to respect | 3 (hour, hour, minute) | 1 |
| JSON shapes to normalise | 3 | 1 |
| Merge, dedupe & re-rank logic | You write and maintain it | Included |
| Relevance across libraries | 3 separate keyword rankings, stitched | One ranking, one score |
The unit that matters. One Pexafy request = one semantic search across 9 libraries, deduplicated and ranked in a single list. With the providers' own APIs, the same user-facing search costs 3 to 5 calls plus the merge layer — code you write, test, and pay for in maintenance forever.
Keyword vs semantic: what changes in the results
Every API on this page except Pexafy matches your words against words attached to a photo — tags, titles, descriptions. Pexafy compares meaning: your sentence and every image are turned into numerical fingerprints, and the closest ones come back. Two consequences show up immediately in production.
First: coverage you didn't ask for. Here is one real Pexafy request — one query, one ranked list. Look at the source badges:
Second: the query stops being a keyword puzzle. With tag matching, every extra word is
one more thing the tags probably don't contain, so you learn to type tree field and scroll.
With semantic search the opposite holds — “a lone tree standing in an empty green field under a wide blue
sky” is a better query than “tree”, because every detail sharpens the match. Same effect for
moods (calm, nostalgic, minimal) and for languages: the sentence lands in the
same place whether you write it in English, French or Japanese, against the same single index.
We took that apart with real searches in
semantic image search vs keywords.
One schema instead of three
This is the part that costs the most engineering time and never appears in a comparison table. The same concept — “the medium-size image URL” and “who took it” — is named differently in every API:
// Unsplash
results[].urls.regular results[].user.name
// Pexels
photos[].src.large photos[].photographer
// Pixabay
hits[].webformatURL hits[].user
Multiply that by dimensions, orientation, dominant colour, source page URL, licence and pagination, and you get an adapter per provider, a normalisation layer, a dedupe pass (the same photo is often on several libraries) and a re-ranking heuristic — typically a few hundred lines that must be kept in step with three changelogs. With Pexafy that layer is the product:
curl -H "X-Api-Key: $PEXAFY_KEY" \
"https://api.pexafy.com/api/v1/search/photos?q=a+lone+tree+in+an+empty+green+field"
{
"success": true,
"data": [
{
"photo_id": "019e4cd9-6369-70c3-ab2b-0ffd7e7965ad",
"urls": { "thumb": "…", "small": "…", "regular": "…", "large": "…", "full": "…" },
"width": 5376, "height": 3584, "orientation": "landscape",
"color_name": "xanadu", "color_hex": "#697E77",
"photographer_full_name": "Viktor Hanacek",
"photographer_url": "https://picjumbo.com/about-viktor-hanacek/",
"source": "Picjumbo", "license_type": "free",
"relevance_score": 0.80,
"alt_description": "A single tree standing in a wide green field",
"attribution": { "html": "Photo by …", "plain": "Photo by …" }
}
],
"meta": { "took_ms": 147 }
}
Identical fields for a Picjumbo photo, an Unsplash photo and a Pixabay photo. One relevance_score
comparable across every source, because they were ranked together rather than stitched. And an
attribution block you can render as-is.
Two things none of the others do
1 · Search by image, not just by words
Give Pexafy an image — a URL, or one you upload — and it returns visually and semantically similar photos across every indexed library. You can steer it with text at the same time (“like this photo, but at sunset”). It's how you build “more like this”, or how you find a free alternative to an image you can't license. None of Unsplash, Pexels, Pixabay or Openverse exposes an image-to-image endpoint.
2 · An MCP server, so AI agents can search images natively
Pexafy runs a hosted Model Context Protocol server at
mcp.pexafy.com/mcp with OAuth 2.1 — connect it to Claude, or to your own agent, and the model
searches 9 photo libraries by itself, sees the thumbnails inline, and hands
back credited images. Three tools: text search, search-by-image, and similar-photos. The other providers
have no official MCP server; what exists are community wrappers you host and key yourself.
If you are building an agent that needs pictures, that difference is the whole integration.
Which one should you actually use?
A comparison where one product wins every row is marketing, not information. Here is the honest split:
- Pixabay — you need high-volume, single-library access on a free tier and you can host the images yourself. 100 requests/minute is unmatched here.
- Unsplash — the visual identity of your product depends on Unsplash's editorial style specifically: integrate their API directly, following its guidelines.
- Pexels — you already hold a key and want one clean library with a generous hourly rate and no infrastructure obligations. New keys and limit increases have been paused since the end of September 2026: what changed and what to use instead.
- Openverse — you need Creative Commons and public-domain material beyond the commercial stock libraries, including museum and institutional collections.
- Pexafy — you want breadth without integration work: one key, 9 libraries, one schema, meaning-based ranking, image-to-image search, and an MCP server for AI agents. Or you're an agency, a CMS, or an AI product where “find the right picture” is a feature, not a page.
You can also use both: a lot of teams keep a direct Unsplash integration for brand photography and use Pexafy for everything else.
References & footnotes
1 Unsplash's documentation states that demo applications are limited to 50 requests/hour and that the limit is raised to 1,000 requests/hour once the application is approved for production.
2 Since the end of September 2026, the Pexels API page and help center say “New API key issuance is currently paused” and “API rate limit increases are currently paused”; keys issued before keep the default 200 requests/hour and 20,000/month. Checked on 14 October 2026 — dates and sources in Pexels has paused new API keys.
Documentation checked on 14 August 2026: Unsplash API docs · Pexels API docs · Pixabay API docs · Openverse API docs · Pexafy API docs. Pexafy figures reflect the plans published on 9 October 2026.
Re-checked on 11 October 2026: Unsplash still documents demo mode at 50 requests/hour, raised to 1,000 requests/hour after approval for production; Pixabay still allows 100 requests per 60 seconds; Openverse still serves anonymous and registered users, all of them rate-limited. Pexels' documentation answered our request with a bot check that day, so its figures stand as checked on 14 August.
Frequently asked questions
Which free stock photo API has the best free tier?
Is attribution required when using these APIs?
Can I search stock photos with a full sentence through an API?
Can an AI agent search stock photos directly?
mcp.pexafy.com/mcp, secured with OAuth 2.1. Connect it to Claude or your own agent and the model searches every indexed library itself — by text or by image — and returns credited photos. Unsplash, Pexels, Pixabay and Openverse have no official MCP server; only community-maintained wrappers you host yourself.