Premium text-to-image API for repeatable product, campaign, and design assets when a stand
Premium text-to-image API for repeatable product, campaign, and design assets when a standard draft needs a selected model tier. Send a prompt with optional dimensions, tier, and seed; receive a hosted PNG URL plus the resolved model, final canvas, prompt, seed, and timing. Keep the tier, dimensions, and seed fixed to rerun an approved asset. Tiers: 'balanced' (flux-2-pro, default), 'recraft' (recraft-v4), 'seedream' (seedream-v4), 'grok' (grok-imagine-image), and 'qwen' (qwen-image). Use it for Flux 2 Pro, Recraft, Seedream, Qwen Image, or Grok Imagine image generation.
Provider
x402.agentutility.ai · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x6c0752c09e7F6fA6526fCDf40e456a159ebB5621",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "60000",
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
"payTo": "FJqAJ4dXkFbrp3EEo8E9x98iaBGUQwaU8Srz5ePfUXLH",
"asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount": "60000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"discoverable": true,
"info": {
"input": {
"body": {
"height": 1024,
"prompt": "An ornate brass astrolabe on a velvet cushion, museum lighting, 4k product photography",
"tier": "balanced",
"width": 1024
},
"bodyType": "json",
"method": "POST",
"type": "http"
},
"output": {
"example": {
"elapsed_ms": 12000,
"height": 1024,
"image_url": "https://v3.fal.media/files/abc/xyz/image.png",
"model": "flux-2-pro",
"prompt": "An ornate brass astrolabe on a velvet cushion, museum lighting, 4k product photography",
"seed": null,
"source": "venice",
"tier": "balanced",
"venice_request_id": "ven_pro_4f8a2b...",
"width": 1024
},
"type": "json"
}
},
"related": [
"/image-asset-pipeline",
"/social-image-pack"
],
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"properties": {
"cfg_scale": {
"description": "Classifier-free guidance scale. Optional.",
"type": "number"
},
"height": {
"description": "Output height in pixels. Range [256, 1024]. Default 1024.",
"type": "number"
},
"model": {
"description": "Override the model. Allowed: flux-2-pro, qwen-image, qwen-image-2, recraft-v4, seedream-v4, seedream-v5-lite, grok-imagine-image, wan-2-7-text-to-image.",
"type": "string"
},
"negative_prompt": {
"description": "Negative prompt. Optional.",
"type": "string"
},
"prompt": {
"description": "Image description. Up to 3000 chars.",
"type": "string"
},
"seed": {
"description": "Random seed. Optional.",
"type": "number"
},
"steps": {
"description": "Diffusion steps. Optional; depends on model.",
"type": "number"
},
"tier": {
"description": "Model shorthand. balanced=flux-2-pro (default), recraft=recraft-v4, seedream=seedream-v4, grok=grok-imagine-image, qwen=qwen-image.",
"enum": [
"balanced",
"recraft",
"seedream",
"grok",
"qwen"
],
"type": "string"
},
"width": {
"description": "Output width in pixels. Range [256, 1024]. Default 1024.",
"type": "number"
}
},
"required": [
"prompt"
]
},
"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": {
"properties": {
"elapsed_ms": {
"type": "integer"
},
"height": {
"type": "integer"
},
"image_url": {
"type": "string"
},
"model": {
"type": "string"
},
"prompt": {
"type": "string"
},
"seed": {
"type": "null"
},
"source": {
"type": "string"
},
"tier": {
"type": "string"
},
"venice_request_id": {
"type": "string"
},
"width": {
"type": "integer"
}
},
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
},
"builder-code": {
"info": {
"a": "bc_awpbwsy3"
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"a": {
"description": "App builder code",
"pattern": "^[a-z0-9_]{1,32}$",
"type": "string"
},
"s": {
"description": "Service builder codes",
"items": {
"pattern": "^[a-z0-9_]{1,32}$",
"type": "string"
},
"type": "array"
},
"w": {
"description": "Wallet builder code",
"pattern": "^[a-z0-9_]{1,32}$",
"type": "string"
}
},
"type": "object"
}
}
}Use it
curl
curl "https://x402.agentutility.ai/image-generate-pro" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://x402.agentutility.ai/image-generate-pro");
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://x402.agentutility.ai/image-generate-pro")
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/5210.json, and this resource appears in /discovery/resources and /discovery/search.