Call it
curl https://api.peume.com/v1/call/search-google-lens \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"search_type": "visual_matches",
"max_results": 50
}
}'const res = await fetch("https://api.peume.com/v1/call/search-google-lens", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"search_type": "visual_matches",
"max_results": 50
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-google-lens",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"search_type": "visual_matches",
"max_results": 50
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: search-google-lens.
Parameters
image_urlstringA public http or https link to the image you want to look up. The image must be reachable without a login. Also accepts a data URI (data:image/png;base64,...). Provide images through exactly one of Image URL, Upload images, or Image base64.
image_uploadarrayClick Upload new files and pick up to 10 images from your computer, or paste links to files already stored on. When set, this takes priority over Image URL.
image_base64arrayRaw image bytes encoded as base64, one entry per image, with or without the data:image/...;base64, prefix. Best for API, MCP, and automation callers that hold local files. The platform caps run input at 9 MB, so this door fits about 6 MB of images per run; for bigger files use Upload images. When set, this takes priority over Image URL.
search_typestringWhat kind of matches to return. 'Visual matches' finds visually similar images, including shoppable listings with prices where the retailer publishes them, and is the general reverse image search. 'Exact matches' finds every page carrying this exact image, which is what you want for attribution and licensing checks. 'Products' was retired by Google in October 2026 and now returns an error row with nothing billed; use 'Visual matches' instead.
visual_matches · products · exact_matches
Example: visual_matches
querystringOptional. Add words to narrow the results, for example 'blue' or 'leather'. Applies to visual matches only; the source ignores it for exact matches.
max_resultsintegerHow many matches to return per image. One lookup returns up to about 60 visual matches or up to 400 exact matches, so this trims rather than pages. Each image searched is billed at least 50 visual matches or 40 exact matches, even when fewer are found, so smaller values are raised to that minimum and you receive the rows you pay for.
Example: 50
countrystringOptional two letter country code such as us, gb or de. Affects which regional results and shopping listings are returned.
languagestringOptional two letter language code such as en, es or fr. Note that match coverage genuinely varies by language: some languages return fewer results for the same image.
