Data APIs ยท Pexels
Pexels data API for AI agents
morigraph has one Pexels data API, Pexels Photo Search, that Claude, ChatGPT, Cursor, Codex or your own code can call. Search Pexels for free stock photos by keyword. Returns image URLs in several sizes, dimensions, alt text, the photographer's name and profile, and the photo's Pexels page. You need no Pexels developer account or API key, only one morigraph connection. A call costs 1.452 credits, about $145 for 1,000 calls, paid from one balance.
- APIs
- 1
- Price
- 1.452 credits a call
- Call it from
- MCP, command line and HTTP API
- Needs
- One morigraph connection. No Pexels account or API key
Three ways to call it
Every data API is run by one tool, data_api, with the API's id and its arguments. The example is Pexels Photo Search.
In your assistant (MCP). Connect once, then ask in plain words
claude mcp add --transport http --scope user morigraph https://morigraph.com/mcp
Use morigraph's Pexels Photo Search data API with {"limit":2,"query":"coffee"} and summarise what comes back.From a terminal or script (CLI)
npx @morigraph/cli@latest login
morigraph call data_api --json-args '{"api":"pexels.search_photos","input":{"limit":2,"query":"coffee"}}'From your own code (HTTP API)
curl https://api.morigraph.com/v1/tools/data_api \
-H "Authorization: Bearer $MORIGRAPH_API_KEY" \
-H "Content-Type: application/json" \
-d '{"api":"pexels.search_photos","input":{"limit":2,"query":"coffee"}}'Pexels Photo Search
Search Pexels for free stock photos by keyword. Returns image URLs in several sizes, dimensions, alt text, the photographer's name and profile, and the photo's Pexels page.
| Argument | Type | Required | What it is |
|---|---|---|---|
limit | integer | no | Maximum number of photos to return (1-20, default 20). You are billed per photo returned, so a lower limit costs less. |
minHeight | integer | no | Only return photos at least this many pixels tall. |
minWidth | integer | no | Only return photos at least this many pixels wide. |
orientation | landscape | portrait | square | no | Only return photos with this orientation. Omit for any orientation. |
peopleCount | 0 | 1 | 2 | no | Only return photos showing this many people: "0" for none, "1" or "2". Omit for any number. |
query | string | yes | Keyword or phrase to search Pexels photos for, e.g. "coffee" or "city skyline". |
Returns alt color colors createdUtc downloadUrl height id image imageMedium imageOriginal license orientation photographer photographerAvatarUrl photographerInstagramUsername photographerLocation photographerUrl photographerUsername photos publishedUtc tags thumbnail title url width
The call
data_api({"api":"pexels.search_photos","input":{"limit":2,"query":"coffee"}})Good to know
- The price shown is the usual one. A call can cost more when the first source fails and another serves it; the most it can cost is shown beside each API, and
max_creditssets your own limit. - These APIs return public data. What you may do with it depends on the platform's terms and the privacy law where you operate, and that responsibility is yours.
- A failed call is not charged.
When to choose something else
Choose a provider that specialises in Pexels data when you need it at high volume, on a schedule, or as bulk exports: you will get volume pricing and more control. Choose the platform's official API when you need data from your own account. These APIs are for an agent that needs an answer now, alongside other tools on the same balance.
Questions
Do I need a Pexels API key or developer account?
No. morigraph supplies the access. You connect morigraph once to your assistant, or use one morigraph API key from your own code, and call the API on this page.
What does Pexels data cost through morigraph?
1.452 credits a call, where a credit is about 10 cents. That is from about $145 for 1,000 calls. You pay per call from one balance, with no separate subscription.
Can Claude, ChatGPT or Cursor get Pexels data?
Yes. Add morigraph as an MCP server, sign in once, then ask in plain words. Your assistant finds the right API with one search and runs it with one call.
Prices and availability read from the production service on . A credit is about 10 cents of tool use; see pricing. Your assistant can quote the exact cost before a paid call.