Image generation · seven-day hosted URL · 0% service fee launch promotion
Image generation · seven-day hosted URL · 0% service fee launch promotion
35000 (raw units)
price
4
calls / 30d
1
unique payers
2026-09-06
updated
Provider
onchainrouter.dev · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0xA7660dea6AadCc87CbB5e79ccd262d391e61dE5d",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "35000",
"maxTimeoutSeconds": 60
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"body": {
"aspect_ratio": "1:1",
"image_size": "1K",
"model": "gemini-3.1-flash-lite-image",
"n": 1,
"prompt": "A small observatory beneath a clear night sky, editorial illustration",
"response_format": "url"
},
"bodyType": "json",
"method": "POST",
"type": "http"
},
"output": {
"example": {
"aspect_ratio": "1:1",
"created": 0,
"data": [
{
"backed_up": true,
"url": "https://onchainrouter.dev/v1/media/images/00000000-0000-4000-8000-000000000000?access=capability"
}
],
"image_size": "1K",
"model": "gemini-3.1-flash-lite-image",
"price": {
"amount": "0.035",
"currency": "USD"
}
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"additionalProperties": false,
"properties": {
"aspect_ratio": {
"default": "1:1",
"enum": [
"1:1"
],
"type": "string"
},
"image_size": {
"default": "1K",
"enum": [
"1K"
],
"type": "string"
},
"model": {
"const": "gemini-3.1-flash-lite-image",
"type": "string"
},
"n": {
"const": 1,
"type": "integer"
},
"prompt": {
"maxLength": 4000,
"minLength": 1,
"type": "string"
},
"response_format": {
"default": "url",
"enum": [
"url",
"b64_json"
],
"type": "string"
}
},
"required": [
"model",
"prompt"
],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
},
"payment-identifier": {
"info": {
"required": false
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"id": {
"maxLength": 128,
"minLength": 16,
"pattern": "^[a-zA-Z0-9_-]+$",
"type": "string"
},
"required": {
"type": "boolean"
}
},
"required": [
"required"
],
"type": "object"
}
}
}Use it
curl
curl "https://onchainrouter.dev/v1/images/generations" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://onchainrouter.dev/v1/images/generations");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://onchainrouter.dev/v1/images/generations")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/8045.json, and this resource appears in /discovery/resources and /discovery/search.