# Pexels

> Pexels offers a free API that provides access to a vast library of high-quality photos and videos, enabling seamless integration into applications and web…

Pexels offers a free API that provides access to a vast library of high-quality photos and videos, enabling seamless integration into applications and websites.

This is a first-class FlyMyAI MCP. Agents **discover it automatically** via tool search and call the actions below on demand - you never wire it up by hand. See the [Composio catalog](https://docs.flymy.ai/mcp/composio.md) for how discovery works.

## Connect

**Pexels** authenticates with an API key. Generate the credential in your Pexels account, then paste it into FlyMyAI the first time an agent uses a Pexels action.

[Get your Pexels credential →](https://www.pexels.com/api)

### Fields to fill in FlyMyAI

| Field | Details |
| --- | --- |
| `Pexels API Key` | Your unique Pexels API key _(required)_ |

## Actions

Every action this integration exposes. Agents pick the right one from the task; you do not call them by name.

| Action | What it does | Required inputs |
| --- | --- | --- |
| `PEXELS_COLLECTION_MEDIA` | Tool to get all media within a collection by its id. use when you need to fetch paginated media from a specific collection. | `id` |
| `PEXELS_CURATED_PHOTOS` | Tool to get real-time curated photos. use when you need to fetch curated photos with pagination support. | - |
| `PEXELS_FEATURED_COLLECTIONS` | Tool to get featured collections. use when you need curated collections of photos and videos with pagination support. | - |
| `PEXELS_GET_PHOTO` | Tool to retrieve detailed information about a specific photo. use when you have a valid photo id to fetch metadata including dimensions, photographer details, and image urls. use after confirming the photo id from search or curated endpoints. | `id` |
| `PEXELS_MY_COLLECTIONS` | Tool to get all of the user's collections on pexels. use when you need to list a user's collections with pagination support. | - |
| `PEXELS_POPULAR_VIDEOS` | Tool to retrieve current popular pexels videos. use when you want to fetch trending videos from pexels. | - |
| `PEXELS_SEARCH_PHOTOS` | Tool to search for photos on pexels. use when you need to retrieve photos by a search term and optional filters. call after confirming you have a valid pexels api key. | `query` |
| `PEXELS_SEARCH_VIDEOS` | Tool to search for videos on pexels by query and optional filters. use when you need to find relevant video assets. | `query` |

## Links

- [Pexels website](https://www.pexels.com/api/)
- [Get API key / credential](https://www.pexels.com/api)
- [Browse the full Composio catalog](https://docs.flymy.ai/mcp/composio.md)
