Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 4 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

Pexels

by Pexels (Canva)

Free stock photos and videos with a search API.

Paused. The API page says new API key issuance is currently paused. Alternatives to Pexels

Stock photos and images Code library

WebsiteAPI docs

2. Commercial use: pexels.com/license

Free to use and edit; no unedited resale, no use in a logo or brand name, no implied endorsement.

pexels.com/license

License checked Oct 10, 2026 against 1 official page. Tap a verdict to see its source. How we checked Report an error

Pexels: free stock photos and videos

Pexels is a large library of photos and videos that anyone can use for free, with no credit required. You can edit them and use them in paid work, but not resell them as they are. There is also an API for searching the library from an app, but new keys for it are paused right now.

Where you can use it

Hero images for a landing page

Pick a photo of an office, a coffee shop or a city for the top of a page, download it and use it without a credit line.

Edited images for social posts and ads

Crop, recolor or add text to a photo for a post, a banner or a slide. Editing is allowed.

Photo search inside your own app

Let users search for a picture by word, for example in a blog editor or a slide maker, and show the results with a link to Pexels. This needs an API key, and new keys are paused.

Background video for a hero section

Put a short, silent stock video behind a headline on a landing page or in a presentation, from the free video library.

Placeholder images while designing Idea

Fill a mock-up or a prototype with real photos instead of gray boxes, then swap in your own shots later.

As reported by Pexels (Canva): 200 requests per hour and 20,000 per month by default.

Pexels popularity

29 / 100
Gid Score, same scale as developer tools
76.5K
npm downloads, last 7 days
+24.9% in 4 weeks
4
AI-agent projects using it, from our repo scan of 4,753
Pexels: downloads per weeknpm, pexels 78,817

Downloads from api.npmjs.org, stars from GitHub, checked Nov 26, 2026. How the Gid Score is calculated

How to start

Tell your AI assistant

“Use a Pexels photo I downloaded as the hero image (no credit needed); if we add search, use the pexels package with PEXELS_API_KEY on the server only, and show "Photos provided by Pexels" with a link plus the photographer name.”

Show code

For an app, install the official package; it needs an API key from a Pexels account, and new keys are paused.

npm install pexels --save

Mistakes to avoid

createClient('<key>') in front-end code shipped to every visitor
Call the Pexels API from your server and read the key from an environment variable such as PEXELS_API_KEY

Anyone can read a key in browser code and use up your limits.

Showing API search results with no link to Pexels
Show a visible "Photos provided by Pexels" link and the photographer's name next to each photo

The API guidelines require a prominent link and ask for photographer credit.

A script that downloads thousands of photos to build a dataset or a wallpaper site
Use the API within its limits for your app's own search, and never mirror the library

Scraping, machine learning collection and copying the service are all forbidden.

Building the feature around a new API key that the plan assumes is easy to get
Check the API page first; until keys are issued again, use downloaded images or another library's API

New key requests are paused.

client.videoes.search(...) copied from the JavaScript example on the docs page
client.videos.search({ query, per_page: 1 })

The official client names the method videos; the docs example has a typo.

License

Pexels License. Free for personal and paid projects, and you may edit the files. Do not resell unedited copies, put them on other stock or wallpaper sites, use them in your logo, or show people in a bad light.

Commercial use
Yes
Credit
API apps only
Inside your app or game
With conditions
Pass the files on to your users
Not allowed

Do not put the files on other stock photo or wallpaper platforms.

“Don't redistribute or sell the photos and videos on other stock photo or wallpaper platforms.” pexels.com/license

Monetized YouTube
With conditions
AI training
Banned by the terms
Bots and bulk downloads
Banned by the terms

AllowedWith conditionsNot allowedNot stated or not checked yet

Not legal advice. Check the license page before you ship.

For your agent

License rules tell your agent what it may do with Pexels. Paste them into your prompt or AGENTS.md.

License rules
- Pexels (Stock photos and images, Stock video). Free stock photos and videos with a search API. Price: free; commercial use OK; no credit for the files; apps built on the API must credit it; ship inside your app with conditions; no AI training on its content; no bots or bulk downloading (get files by hand or through the official API, if there is one). Status: paused (The API page says new API key issuance is currently paused.).
  Connect: API docs https://www.pexels.com/api/documentation/ (API key needed); npm pexels. Limits: 200 requests/hour and 20,000/month by default; limits can be lifted free if you attribute properly.
  Get files: Pexels API: GET https://api.pexels.com/v1/search?query=<term> (photos), /v1/videos/search?query=<term> (videos), /v1/curated; send the API key in an Authorization header. Photo files are in the 'src' object (original, large, medium, ..); videos list 'video_files' (hd, sd, hls).
  Not allowed: Show a prominent link to Pexels and credit photographers when possible when using the API
  Not allowed: Do not copy or replicate Pexels' core functionality (e.g. a wallpaper app)
  Rule: Show a prominent link to Pexels and credit the photographer when possible.
  Rule: Do not sell unaltered copies or redistribute files on other stock or wallpaper sites.
  Rule: Do not show identifiable people in a bad light or as endorsing anything.
  Rule: Do not scrape or bulk-copy content, including for machine learning.
  License: https://www.pexels.com/license/ (checked 2026-10-10; details: https://agentgid.com/assets/pexels/)
Can an agent use it by itself?
No.

Agent installs a package or loads it from a CDN.

Install
npm install pexels
How an agent gets files
Pexels API: GET https://api.pexels.com/v1/search?query=<term> (photos), /v1/videos/search?query=<term> (videos), /v1/curated; send the API key in an Authorization header. Photo files are in the 'src' object (original, large, medium, ...); videos list 'video_files' (hd, sd, hls).
API, key or account
API key needed. API docs
Limits
200 requests/hour and 20,000/month by default; limits can be lifted free if you attribute properly.
MCP server
None found
Credit line, if you want one
Photos provided by Pexels (link to https://www.pexels.com), photo by <photographer name>
This card for machines

Alternatives

Pexels This page

Free Commercial OK API, npm

Unsplash

Pick Unsplash for another large free photo library with a public API; its paid Unsplash+ adds a separately licensed collection.

Free tier Commercial OK API

Pixabay

Pick Pixabay when you also need free illustrations, vectors, music or sound effects, not only photos and videos.

Free Commercial OK API

Shutterstock

Pick Shutterstock for paid stock with a broader catalog of images, video and music under a commercial license.

Free tier Unclear API, npm

Freepik (Magnific)

Stock photos, vectors, PSDs, icons and videos plus AI generation tools, via the Magnific API.

Free tier With conditions MCP, API

Icons8

Icons, illustrations, photos and music with a REST API and an official MCP server (as reported).

Free tier With conditions MCP, API

All stock photos and images

Questions

Do I have to credit Pexels or the photographer?

Not for normal use; credit is appreciated. Apps using the API must show a visible link to Pexels.

Can I sell products with Pexels photos?

Only after changing the photo. Selling unedited copies as posters, prints or other products is not allowed.

Can I get an API key now?

No. New key requests are paused on the API page.

Can I use Pexels photos to train an AI model?

Not by scraping or bulk collection; the terms forbid it for machine learning without permission.