# Pexels — card for AI agents

Free stock photos and videos with a search API.

Category: Stock photos and images (also: Stock video) · maker Pexels (Canva) · checked 2026-10-10

**Status: paused.** The API page says new API key issuance is currently paused.

## Price
- Price: Free
- Free tier: All content is free of charge.

## License
Pexels License — https://www.pexels.com/license/

- commercial: **yes** (Commercial use OK)
- attribution: **api-only** (No credit for the files; apps built on the API must credit it)
- in app: **conditions** (Ship inside your app with conditions)
- youtube: **conditions** (Monetized YouTube with conditions)
- ai training: **banned**
- bots: **banned**

## Rules to follow
- Show a prominent link to Pexels and credit the photographer when possible.
- Do not sell unaltered copies or redistribute files on other stock or wallpaper sites.
- Do not show identifiable people in a bad light or as endorsing anything.
- Do not scrape or bulk-copy content, including for machine learning.

## Can an AI agent use it by itself?
**No** · package: Agent installs a package or loads it from a CDN

## 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). (sign-in: api-key)
- 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)

Note on bots: the terms ban bots, scrapers and bulk downloading from the site. Do not script downloads from it; ask the user to download the files (or use the official API, if there is one) and add them to the project.

## How to connect
- Public API
- API docs: https://www.pexels.com/api/documentation/ (API key needed)
- API limits: 200 requests/hour and 20,000/month by default; limits can be lifted free if you attribute properly.
- npm: `npm install pexels`
- Website: https://www.pexels.com

## Notes
ToS bars compiling content to replicate a competing service and bars uploading generative-AI content. The license lists social media and ads among allowed uses but does not name YouTube. SDKs also on RubyGems (pexels) and NuGet (PexelsDotNetSDK); no PyPI package listed.

## Numbers (AgentGid data)
- Gid Score: 29
- Downloads last week: 76,488
- Used in 4 public projects set up for AI coding agents

## Lines to paste 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/)
```

Not verified: When API key issuance resumes; whether automated video generators count as copying core Pexels functionality; Content ID policy for videos; model/property release availability.

## Links
- AgentGid page: https://agentgid.com/assets/pexels/
- Source: https://www.pexels.com/api/documentation/
- Source: https://www.pexels.com/api/
- Source: https://www.pexels.com/license/
- Source: https://www.pexels.com/terms-of-service/
- Source: https://status.pexels.com


## 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 to 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: Fill a mock-up or a prototype with real photos instead of gray boxes, then swap in your own shots later. (idea, not from the official pages)

### How to start
- For single images, search pexels.com and download the photo or video; no account or credit is needed for use.
- 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
```

- Send the key in the Authorization header (the package does it for you) and show a visible link to Pexels and the photographer's name next to the results.

### 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.

### Good to know
- New keys for the search service cannot be requested at the moment, so an app that needs one may have to wait.
- With a key, the default limit is 200 searches an hour and 20,000 a month; higher limits are free if you credit Pexels properly.
- Bulk downloading or scraping the site is not allowed, including for training AI models.
- Do not suggest that people or brands in a photo support your product, and do not use a photo as part of a logo or brand name.
- The pages of pexels.com block automated readers, so an AI assistant may not be able to open them; check the license in a browser.

Checked 2026-11-19 against: https://www.pexels.com/license/, https://www.pexels.com/api/, https://www.pexels.com/api/documentation/, https://www.pexels.com/terms-of-service/, https://registry.npmjs.org/pexels, https://registry.npmjs.org/pexels/1.4.0, https://unpkg.com/pexels@1.4.0/dist/createClient.d.ts

### Mistakes to avoid
- Don't: createClient('<key>') in front-end code shipped to every visitor → Do: 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.)
- Don't: Showing API search results with no link to Pexels → Do: 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.)
- Don't: A script that downloads thousands of photos to build a dataset or a wallpaper site → Do: 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.)
- Don't: Building the feature around a new API key that the plan assumes is easy to get → Do: Check the API page first; until keys are issued again, use downloaded images or another library's API (New key requests are paused.)
- Don't: client.videoes.search(...) copied from the JavaScript example on the docs page → Do: client.videos.search({ query, per_page: 1 }) (The official client names the method videos; the docs example has a typo.)

### 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.

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
