ai icon indicating copy to clipboard operation
ai copied to clipboard

Registry entry: Pexafy, semantic search over free stock photos

Open matijani opened this issue 1 month ago • 2 comments

Description

I maintain pexafy-ai-sdk (npm). It gives AI SDK agents three tools to find real, free-to-use stock photos by describing the scene: searchPhotos, findSimilarPhotos and getPhoto, across Unsplash, Pexels, Pixabay and six more sources. Each photo comes back with its URL, alt text, license and the credit line to print.

import { anthropic } from '@ai-sdk/anthropic';
import { generateText, isStepCount } from 'ai';
import { pexafyTools } from 'pexafy-ai-sdk';

const { text } = await generateText({
  model: anthropic('claude-haiku-4-5'),
  tools: pexafyTools(),
  stopWhen: isStepCount(5),
  prompt: 'Find a header photo for a post about remote work, with its credit line.',
});

How it works with the AI SDK: https://docs.pexafy.com/ai-sdk

There is no image or photo search tool in the tools registry today. I opened a pull request with the registry entry, following contributing/add-new-tool-to-registry.md, and I am happy to adjust it to the shape you prefer.

Reproduction

https://github.com/Pexafy/pexafy-ai-sdk/blob/main/examples/agent.ts

AI SDK Version

7.0.129

Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

matijani avatar Oct 07 '26 00:10 matijani

Pull request with the registry entry: #22205

matijani avatar Oct 07 '26 00:10 matijani

Identify issue type

Identified as Feature
Confidence: High

Rationale

This is a request to expand the tools registry with a new third-party integration, not a report of broken existing behavior.

Evidence

  • Requests adding Pexafy as a new AI SDK tools registry entry.
  • The proposed integration adds semantic stock-photo search tools, a capability not currently in the registry.
  • A corresponding implementation pull request (#22205) was submitted.

ai-sdk-factory[bot] avatar Oct 07 '26 00:10 ai-sdk-factory[bot]