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
1. Price: pexels.com
All content is free of charge.
pexels.comNo quote yet: price is read from the official pages.
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/license3. Credit the author: pexels.com/license
Show a prominent link to Pexels and credit the photographer when possible.
pexels.com/license4. Agent access: pexels.com/api/documentation
An agent can use it by itself. 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).
pexels.com/api/documentationLicense 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
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
Anyone can read a key in browser code and use up your limits.
The API guidelines require a prominent link and ask for photographer credit.
Scraping, machine learning collection and copying the service are all forbidden.
New key requests are paused.
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.
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
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.
- 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/)
Agent installs a package or loads it from a CDN.
npm install pexelsPhotos provided by Pexels (link to https://www.pexels.com), photo by <photographer name>Alternatives
Pexels This page
Pick Unsplash for another large free photo library with a public API; its paid Unsplash+ adds a separately licensed collection.
Pick Pixabay when you also need free illustrations, vectors, music or sound effects, not only photos and videos.
Pick Shutterstock for paid stock with a broader catalog of images, video and music under a commercial license.
Stock photos, vectors, PSDs, icons and videos plus AI generation tools, via the Magnific API.
Icons, illustrations, photos and music with a REST API and an official MCP server (as reported).
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.