Built for developers
An image search API for your next idea.
Find existing AI-generated photos for your app, CMS, or content workflow. Search in plain language, preview the matches, then download the original you choose.
Start with 100 credits. No payment is required for signup; searches and new downloads consume credits.
import { runQuickstart } from "./pix4less-quickstart.mjs";
const result = await runQuickstart({
apiKey: process.env.PIX4LESS_API_KEY,
allowCreditCharges: true,
maxCredits: Number(process.env.PIX4LESS_MAX_CREDITS)
});
if (result.download) {
// No API-key header: the short-lived signed URL grants access.
const image = await fetch(result.download.url);
if (!image.ok) throw new Error("Image delivery failed");
// Stream image.body to your destination. Do not log the URL.
}
// No match? Handle it in your app; do not auto-retry a search.Search. Preview. Choose.
Search retrieves the existing catalog; it does not generate a new image during the request. You control what gets downloaded and what happens when there is no useful match.
1. Search with constraints
Describe the subject, then add orientation, size, aspect-ratio, or other supported filters. Start broad before narrowing your request.
2. Preview the result
Inspect preview URLs and image metadata. Preview URLs are stable and unsigned, so keep the image ID as the durable identity; search results never grant original access.
3. Authorize an original
Request the download endpoint for your chosen image. Store the original for permitted uses under the license terms, not the signed download URL, which is short-lived.
Live price book
Know what your first request costs.
One search plus one new catalog download currently uses 2 credits. Search and download are separate charges, not an all-inclusive image price.
- Quick search
- 1 credit / request · 30 candidates · up to 12 images
- Thorough search
- 3 credits / request · 100 candidates · up to 12 images
- New catalog download
- 1 credit / image (HD: 3 credits, 4K: 10 credits)
- Previously purchased image
- No duplicate download charge
Metered searches charge only after a valid search returns at least one result. Invalid input, service failures, and empty results do not use search credits. Search requests are not idempotent, so do not retry an uncertain request automatically. Existing download ownership does not bypass authentication, image availability, or rate limits.
Plans, top-ups, and generation pricingMake your first call.
- Create an account and create a key in the dashboard. Keep the key on your server, never in browser code.
- Download and inspect the helper. Run
node pix4less-quickstart.mjsto read current pricing without a key or credit charge. - Set
PIX4LESS_API_KEYsecurely. SetPIX4LESS_MAX_CREDITSto an allowance you choose from the live price book, then use the example above. The allowance is a preflight estimate, not an atomic server spending cap.
Review images for your use case. Searchable catalog assets are not all human-reviewed, and the API does not guarantee subjective fit, universal rights clearance, or a match for every query. Generation is a separate paid-standing workflow, not an automatic API fallback.
Integrate with the API docs