Generate images from a text prompt with xAI's Grok Imagine quality tier
Generate images from a text prompt with xAI's Grok Imagine quality tier. Returns hosted image URLs.
50000 (raw units)
price
19
calls / 30d
1
unique payers
2026-09-17
updated
Provider
agents.withzero.xyz · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x9811c0900fcb719bbc363a3846d2d6db2771dea8",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "50000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"body": {
"count": 1,
"prompt": "A watercolor painting of a lighthouse at sunrise"
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"example": {
"count": 1,
"prompt": "A watercolor painting of a lighthouse at sunrise"
},
"properties": {
"count": {
"default": 1,
"description": "How many images to generate (1–4).",
"maximum": 4,
"minimum": 1,
"type": "integer"
},
"prompt": {
"description": "Text description of the image to generate.",
"maxLength": 4000,
"minLength": 1,
"type": "string"
}
},
"required": [
"prompt",
"count"
],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST",
"PUT",
"PATCH"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
},
"terms": {
"info": {
"links": [
{
"kind": "platform_terms_of_service",
"url": "https://www.zeroclick.ai/legal/buyer-terms-of-service"
}
],
"note": "By paying this challenge, whether directly or through an agent acting on your behalf, you accept the platform's buyer terms of service; an agent's payment and acceptance are attributed to you and bind you as if you had taken them yourself."
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"links": {
"items": {
"properties": {
"kind": {
"enum": [
"terms_of_service",
"privacy_policy",
"additional_terms",
"platform_terms_of_service"
],
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"kind",
"url"
],
"type": "object"
},
"type": "array"
},
"note": {
"type": "string"
}
},
"required": [
"links"
],
"type": "object"
}
},
"zeroclick": {
"info": {
"payment": {
"amountUsd": "0.050000",
"id": "apay_zUC8tC58gubIpyy8n-dKX"
},
"requestId": "zcreq_ohk3UO9kYMnUl-es-jVtD",
"service": "grok-imagine"
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"agentId": {
"type": "string"
},
"payment": {
"properties": {
"amountUsd": {
"type": "string"
},
"id": {
"type": "string"
}
},
"required": [
"id",
"amountUsd"
],
"type": "object"
},
"requestId": {
"type": "string"
},
"service": {
"type": "string"
}
},
"required": [
"payment"
],
"type": "object"
}
}
}Use it
curl
curl "https://agents.withzero.xyz/api/v1/image/images/grok-imagine" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://agents.withzero.xyz/api/v1/image/images/grok-imagine");
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://agents.withzero.xyz/api/v1/image/images/grok-imagine")
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/10960.json, and this resource appears in /discovery/resources and /discovery/search.