Generate images via Replicate Flux, paid per-request with USDC on Base via x402.
What it does
This x402-enabled endpoint on Questflow exposes a Replicate Flux image generation agent. You send a text prompt as a POST request with an x402 payment header, and the agent returns a generated image or image URL. Payment is made in USDC on the Base network, with a maximum cost of 0.1 USDC per request (100000 in raw units, assuming 6-decimal USDC). The endpoint has a maximum timeout of 1200 seconds (20 minutes), reflecting the potentially longer processing time for image generation.
The request schema is minimal: a single required `input` field of type string containing your prompt or message to the agent. The response is also a single `response` string field. No OpenAPI spec or detailed documentation is available beyond the x402 challenge metadata. Questflow is primarily an AI agent platform focused on onchain trading and prediction markets, but this particular agent wraps Replicate's Flux model for image generation.
Because there is no formal API documentation, no example outputs, and no detailed schema beyond the x402 challenge, the integration details are sparse. The endpoint is live and returns a valid x402 challenge, confirming it is operational. However, specifics about supported image sizes, formats, model parameters, or rate limits are not documented.
Capabilities
Use cases
- —Generating images from text prompts with per-request crypto payment
- —Agent-to-agent workflows that need on-demand image creation
- —Integrating pay-per-use image generation into onchain applications
- —Prototyping visual content without subscription commitments
Fit
Best for
- —Developers wanting pay-per-request image generation without API keys or subscriptions
- —AI agents that need to autonomously generate images and can pay with USDC on Base
- —x402-native applications looking for image generation endpoints
Not for
- —High-volume batch image generation (no documented rate limits or bulk pricing)
- —Users who need fine-grained control over image parameters (resolution, aspect ratio, etc.)
- —Applications requiring non-crypto payment methods
Quick start
curl -X POST https://api.questflow.ai/x402/agent/qrn:agent:687df6a5b234010b7d33186d \
-H "Content-Type: application/json" \
-H "X-PAYMENT: <x402-payment-header>" \
-d '{"input": "A futuristic cityscape at sunset, cyberpunk style"}'Example
Request
{
"input": "A futuristic cityscape at sunset, cyberpunk style"
}Response
{
"response": "https://replicate.delivery/example/generated-image.png"
}Endpoint
Quality
The endpoint is live and returns a valid x402 challenge with basic input/output schema, but there is no OpenAPI spec, no documentation page, no example responses, and no details on image parameters or rate limits. The response format is inferred (likely a URL string) but not confirmed.
Warnings
- —No formal API documentation available; /docs, /api, /pricing, /README all return 404
- —Output format is inferred — the response string may be a URL or base64-encoded image, unconfirmed
- —No documented rate limits, image size options, or model configuration parameters
- —Example response is speculative based on typical Replicate Flux behavior
Citations
- —x402 challenge confirms USDC payment on Base network with maxAmountRequired of 100000 and maxTimeoutSeconds of 1200https://api.questflow.ai/x402/agent/qrn:agent:687df6a5b234010b7d33186d
- —Payment address is 0xDF2615b1C13C2bE92a977cD2cb98B2A445fd22bE, asset is USDC at 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913https://api.questflow.ai/x402/agent/qrn:agent:687df6a5b234010b7d33186d
- —Questflow is an AI agent platform focused on onchain marketshttps://api.questflow.ai