Generate images via OpenAI through a pay-per-request x402 agent on Base.
What it does
This Questflow-hosted x402 endpoint wraps an OpenAI image-generation agent behind a micropayment wall on the Base network. Callers send a POST request with a text prompt in the `input` field and, after satisfying the x402 payment challenge (paid in USDC on Base), receive a generated image or image-related response from the agent.
The endpoint follows the x402 protocol: an unauthenticated request returns HTTP 402 with a JSON challenge specifying the payment asset (USDC at `0x8335…2913` on Base), the maximum amount required (0.10 USDC, given 6-decimal precision), the payee address, and a timeout of up to 1200 seconds. Once the `X-PAYMENT` header is supplied with a valid payment proof, the agent processes the prompt and returns a string response.
Documentation beyond the x402 challenge itself is sparse. Questflow's public site focuses on its "AI Clone" trading-agent platform rather than this specific image-generation endpoint. No OpenAPI spec, usage examples, rate limits, or detailed output format documentation were found. The output schema in the challenge indicates a simple `{"response": "..."}` JSON object, but it is unclear whether the response contains a URL to the generated image, base64-encoded data, or something else.
Capabilities
Use cases
- —Generate images from text prompts with per-request USDC micropayments
- —Integrate AI image generation into agent workflows without API key management
- —On-demand creative asset generation paid via Base L2
Fit
Best for
- —Developers wanting pay-per-use image generation without OpenAI API keys
- —Agent-to-agent workflows needing on-chain-settled image creation
- —Prototyping image generation behind a crypto-native paywall
Not for
- —High-volume batch image generation (per-request payment overhead)
- —Users who need detailed control over image model parameters (size, style, etc.)
- —Applications requiring deterministic or documented output formats
Quick start
curl -X POST https://api.questflow.ai/x402/agent/qrn:agent:687df6abb234010b7d3318ae \
-H "Content-Type: application/json" \
-H "X-PAYMENT: <payment-proof>" \
-d '{"input": "A futuristic city skyline at sunset"}'Example
Request
{
"input": "A futuristic city skyline at sunset"
}Response
{
"response": "<image URL or data returned by the agent>"
}Endpoint
Quality
The endpoint is live (402 challenge confirmed) with a clear input/output schema, but documentation is minimal—no OpenAPI spec, no usage examples, no details on the image output format, and no rate-limit or capability information beyond the challenge itself.
Warnings
- —No API documentation or OpenAPI spec found; /docs returns 404
- —Output format unclear—schema says response is a string but does not specify whether it is a URL, base64 data, or markdown
- —No information on which OpenAI image model is used or what parameters are supported
- —Questflow's main site focuses on trading clones; this image endpoint appears to be a secondary offering with limited public documentation
Citations
- —The endpoint returns HTTP 402 with an x402 challenge requiring USDC payment on Basehttps://api.questflow.ai/x402/agent/qrn:agent:687df6abb234010b7d3318ae
- —Maximum amount required is 100000 units of USDC (0.10 USDC with 6 decimals)https://api.questflow.ai/x402/agent/qrn:agent:687df6abb234010b7d3318ae
- —The challenge description states 'Generate high-quality images using OpenAI'https://api.questflow.ai/x402/agent/qrn:agent:687df6abb234010b7d3318ae
- —Questflow's public site focuses on AI Clone trading agents across prediction and crypto marketshttps://api.questflow.ai