1gateway.dev/v1/ai/vision
Use when an agent must understand a picture (screenshot, product photo, chart, scene). Input: url of a png, jpeg, webp or gif (max 5 MB), optional question (max 1000 chars), optional json=true for fields (objects, text, people count, colors...). Output: answer or fields, image info, model. Does not name people; exact text: /v1/convert/ocr. Not stored. Example: ?url=https://upload.wikimedia.org/wik
GET
https://1gateway.dev/v1/ai/visionUptime100% of 2 checks in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://1gateway.dev/v1/ai/vision?json=false&question=What+is+shown+in+this+image%3F&url=https%3A%2F%2Fupload.wikimedia.org%2Fwikipedia%2Fcommons%2F4%2F47%2FPNG_transparency_demonstration_1.png");
console.log(await res.json());Example input
{
"json": "false",
"question": "What is shown in this image?",
"url": "https://upload.wikimedia.org/wikipedia/commons/4/47/PNG_transparency_demonstration_1.png"
}