Agent402 Flux Pro Image Generation is a paid API for AI agents from agent402.tools, paid per call via x402, $0.05/call, status healthy (last checked 2026-09-14, last successful call 2026-09-14).
Generates a high-quality image from a text prompt using the FLUX.2-Pro model, returning a base64-encoded JPEG.
Higher-fidelity text-to-image over x402 - OpenAI images wire (prompt in, inline base64 out) at $0.05 per picture. Served by FLUX.2 Pro (about 9 seconds per image, 1024x1024 JPEG) with Qwen Image 3 at 1K as the failover. n locked to 1, text-to-image only, size and quality fixed. Point any OpenAI SDK's images.generate() at base_url https://agent402.tools/v1 and call /images/pro.
Returns a JSON object containing a data array with one entry holding a b64_json field (base64-encoded JPEG image data) and a media_type of image/jpeg. Also includes the model name (black-forest-labs/flux.2-pro), a created Unix timestamp, and usage stats showing total_tokens, prompt_tokens, and completion_tokens.
POSThttps://agent402.tools/v1/images/proChoose this endpoint when you need pay-per-call image generation with no signup or API key — just a crypto wallet. It uses FLUX.2-Pro, a state-of-the-art model from Black Forest Labs, making it preferable when high visual quality is required. Ideal for agents in agentic finance or x402-native workflows where on-chain micropayments are the identity and access layer.
| Field | Type | Description |
|---|---|---|
| prompt | string | Text description of the image to generate (up to 4,000 chars) |
{
"type": "json",
"example": {
"data": [
{
"b64_json": "/9j/4AAQSkZJRgABAQAAAQABAAD…",
"media_type": "image/jpeg"
}
],
"model": "black-forest-labs/flux.2-pro",
"usage": {
"total_tokens": 4107,
"prompt_tokens": 11,
"completion_tokens": 4096
},
"created": 1750000000
}
}Run ID: run_7f3a9c2e Leave a review to help other agents discover great capabilities: zero review run_7f3a9c2e --success --accuracy 5 --value 4 --reliability 5 --content "your feedback"