Skip to content
Fourohtwo

Use when an agent needs an image from a text prompt

1gateway.dev/v1/ai/image

Use when an agent needs an image from a text prompt. Input: prompt (max 1000 chars), optional steps (1-8, default 4). Output: JSON with a 1024x1024 JPEG (base64), steps, model, safety verdicts. Prompt screened by blocklist + Llama Guard 3, image by a vision check; sexual, minor, deepfake or gore requests refused 422, not charged. Not stored. Example: ?prompt=isometric%20illustration%20of%20a%20tin

BaseMonadSolanaAnswering
GEThttps://1gateway.dev/v1/ai/image

Uptime100% of 1 check 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

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://1gateway.dev/v1/ai/image?prompt=isometric+illustration+of+a+tiny+robot+cafe%2C+soft+pastel+colors&steps=4");
console.log(await res.json());

Example input

{
  "prompt": "isometric illustration of a tiny robot cafe, soft pastel colors",
  "steps": 4
}