Image Generation
Text-to-image and creative image models — designers, FLUX, Nano Banana, Krea, and more.
Text-to-image and creative image models — designers, FLUX, Nano Banana, Krea, and more. 13 endpoints, each gated by the x402 payment protocol and settled in USDC. Connect the same endpoints over the MCP server for agent-to-agent use.
FLUX.2 flex
Max-quality image generation and editing with support for reference images.
POST /image/flux-2-flexPrice
$0.06
Network
Solana
x402
v2
Request parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
prompt | textarea | Yes | Detailed prompt description for the image |
aspect_ratio | string | No | Image aspect ratio |
referenceImage | string[] | No | URLs of reference images for style/composition guidance |
Response
Returns generated image URL, prompt, and generation metadata
Example
curl -X POST "https://api.xona-agent.com/image/flux-2-flex" \
-H "Content-Type: application/json" \
-H "X-PAYMENT: <x402-payment-payload>" \
-d '{
"prompt": "A vibrant digital illustration depicting futuristic Solana tokens with neon colors...",
"aspect_ratio": "1:1",
"referenceImage": "https://example.com/reference.jpg"
}'FLUX.2 max
The highest fidelity image model from Black Forest Labs.
POST /image/flux-2-maxPrice
$0.08
Network
Solana
x402
v2
Request parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
prompt | textarea | Yes | Detailed prompt description for the image |
aspect_ratio | string | No | Image aspect ratio |
referenceImage | string[] | No | URLs of reference images for style/composition guidance |
Response
Returns generated image URL, prompt, and generation metadata
Example
curl -X POST "https://api.xona-agent.com/image/flux-2-max" \
-H "Content-Type: application/json" \
-H "X-PAYMENT: <x402-payment-payload>" \
-d '{
"prompt": "A vibrant digital illustration depicting futuristic Solana tokens with neon colors...",
"aspect_ratio": "1:1",
"referenceImage": "https://example.com/reference.jpg"
}'FLUX.2 pro
High-quality image generation and editing with support for reference images.
POST /image/flux-2-proPrice
$0.05
Network
Solana
x402
v2
Request parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
prompt | textarea | Yes | Detailed prompt description for the image |
aspect_ratio | string | No | Image aspect ratio |
referenceImage | string[] | No | URLs of reference images for style/composition guidance |
Response
Returns generated image URL, prompt, and generation metadata
Example
curl -X POST "https://api.xona-agent.com/image/flux-2-pro" \
-H "Content-Type: application/json" \
-H "X-PAYMENT: <x402-payment-payload>" \
-d '{
"prompt": "A vibrant digital illustration depicting futuristic Solana tokens with neon colors...",
"aspect_ratio": "1:1",
"referenceImage": "https://example.com/reference.jpg"
}'GPT Image 2
OpenAI state-of-the-art image generation via Replicate. High-quality photorealism, sharp text rendering, and strong instruction following. Quality: medium.
POST /image/gpt-image-2Price
$0.12
Network
Solana
x402
v2
Request parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
prompt | textarea | Yes | Detailed prompt describing the desired image |
aspect_ratio | string | No | 1:1 (square), 3:2 (landscape), or 2:3 (portrait) |
Response
Returns generated image URL, prompt, and generation metadata including model and quality info
Example
curl -X POST "https://api.xona-agent.com/image/gpt-image-2" \
-H "Content-Type: application/json" \
-H "X-PAYMENT: <x402-payment-payload>" \
-d '{
"prompt": "A photorealistic image of...",
"aspect_ratio": "1:1"
}'Grok Imagine
AI image generation using Grok Imagine model. Takes your prompt and generates a high-quality image using xAI's Grok Imagine API.
POST /image/grok-imaginePrice
$0.04
Network
Solana
x402
v2
Also payable on X Layer (USDC), Base (USDC).
Request parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
prompt | textarea | Yes | Detailed prompt description for the image |
referenceImage | string | No | URL of reference image for style/composition guidance (Grok only supports one image) |
Response
Returns generated image URL, prompt, and generation metadata
Example
curl -X POST "https://api.xona-agent.com/image/grok-imagine" \
-H "Content-Type: application/json" \
-H "X-PAYMENT: <x402-payment-payload>" \
-d '{
"prompt": "A golden retriever playing fetch on a sunny beach at sunset",
"referenceImage": "https://example.com/reference.jpg"
}'Krea 2 Large
AI image generation using Krea 2 Large model. Highest-fidelity Krea 2 tier with moodboard and style-reference controls.
POST /image/krea-2-largePrice
$0.07
Network
Solana
x402
v2
Also payable on Base/SKALE (USDC), Base (USDC), X Layer (USDC), BNB (USDC), Arbitrum (USDC).
Request parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
prompt | textarea | Yes | Detailed prompt description for the image |
aspect_ratio | string | No | Image aspect ratio |
creativity | string | No | Creativity level |
moodboard_strength | number | No | Moodboard influence (0-1) |
style_reference_strength | number | No | Style reference influence (0-1) |
referenceImage | string[] | No | URLs of style reference images |
Response
Returns generated image URL, prompt, and generation metadata
Example
curl -X POST "https://api.xona-agent.com/image/krea-2-large" \
-H "Content-Type: application/json" \
-H "X-PAYMENT: <x402-payment-payload>" \
-d '{
"prompt": "A color film-inspired portrait of a young woman looking out a school bus window...",
"aspect_ratio": "4:3",
"creativity": "medium",
"moodboard_strength": 0.35,
"style_reference_strength": 0.5,
"referenceImage": "https://example.com/reference.jpg"
}'Krea 2 Medium
AI image generation using Krea 2 Medium model. High-quality images with moodboard and style-reference controls.
POST /image/krea-2-mediumPrice
$0.05
Network
Solana
x402
v2
Also payable on Base/SKALE (USDC), Base (USDC), X Layer (USDC), BNB (USDC), Arbitrum (USDC).
Request parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
prompt | textarea | Yes | Detailed prompt description for the image |
aspect_ratio | string | No | Image aspect ratio |
creativity | string | No | Creativity level |
moodboard_strength | number | No | Moodboard influence (0-1) |
style_reference_strength | number | No | Style reference influence (0-1) |
referenceImage | string[] | No | URLs of style reference images |
Response
Returns generated image URL, prompt, and generation metadata
Example
curl -X POST "https://api.xona-agent.com/image/krea-2-medium" \
-H "Content-Type: application/json" \
-H "X-PAYMENT: <x402-payment-payload>" \
-d '{
"prompt": "A color film-inspired portrait of a young woman looking out a school bus window...",
"aspect_ratio": "4:3",
"creativity": "medium",
"moodboard_strength": 0.35,
"style_reference_strength": 0.5,
"referenceImage": "https://example.com/reference.jpg"
}'Krea 2 Medium Turbo
AI image generation using Krea 2 Medium Turbo model. Fast, high-quality images with moodboard and style-reference controls.
POST /image/krea-2-medium-turboPrice
$0.02
Network
Solana
x402
v2
Also payable on Base/SKALE (USDC), Base (USDC), X Layer (USDC), BNB (USDC), Arbitrum (USDC).
Request parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
prompt | textarea | Yes | Detailed prompt description for the image |
aspect_ratio | string | No | Image aspect ratio |
creativity | string | No | Creativity level |
moodboard_strength | number | No | Moodboard influence (0-1) |
style_reference_strength | number | No | Style reference influence (0-1) |
referenceImage | string[] | No | URLs of style reference images |
Response
Returns generated image URL, prompt, and generation metadata
Example
curl -X POST "https://api.xona-agent.com/image/krea-2-medium-turbo" \
-H "Content-Type: application/json" \
-H "X-PAYMENT: <x402-payment-payload>" \
-d '{
"prompt": "A color film-inspired portrait of a young woman looking out a school bus window...",
"aspect_ratio": "4:3",
"creativity": "medium",
"moodboard_strength": 0.35,
"style_reference_strength": 0.5,
"referenceImage": "https://example.com/reference.jpg"
}'Nano Banana
AI image generation using nano-banana model. Takes your prompt and generates a high-quality image directly without style blending.
POST /image/nano-bananaPrice
$0.05
Network
Solana
x402
v2
Request parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
prompt | textarea | Yes | Detailed prompt description for the image |
aspect_ratio | string | No | Image aspect ratio |
referenceImage | string[] | No | URLs of reference images for style/composition guidance |
Response
Returns generated image URL, prompt, and generation metadata
Example
curl -X POST "https://api.xona-agent.com/image/nano-banana" \
-H "Content-Type: application/json" \
-H "X-PAYMENT: <x402-payment-payload>" \
-d '{
"prompt": "A vibrant digital illustration depicting futuristic Solana tokens with neon colors...",
"aspect_ratio": "1:1",
"referenceImage": "https://example.com/reference.jpg"
}'Nano Banana 2
AI image generation using nano-banana-2 model with resolution-based pricing. Dynamic pricing: 1K=$0.06, 2K=$0.10, 4K=$0.15.
POST /image/nano-banana-2Price
$0.06-$0.15
Network
Solana
x402
v2
Request parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
prompt | textarea | Yes | Detailed prompt description for the image |
resolution | select | No | Output resolution determines price: 1K=$0.06, 2K=$0.10, 4K=$0.15 One of: 1k, 2k, 4k. |
aspect_ratio | string | No | Image aspect ratio |
referenceImage | string[] | No | URLs of reference images for style/composition guidance |
Response
Returns generated image URL, prompt, resolution, and generation metadata
Example
curl -X POST "https://api.xona-agent.com/image/nano-banana-2" \
-H "Content-Type: application/json" \
-H "X-PAYMENT: <x402-payment-payload>" \
-d '{
"prompt": "A vibrant digital illustration depicting futuristic Solana tokens with neon colors...",
"resolution": "1k",
"aspect_ratio": "1:1",
"referenceImage": "https://example.com/reference.jpg"
}'Nano Banana Pro
AI image generation using nano-banana-pro model. Takes your prompt and generates a high-quality image directly without style blending.
POST /image/nano-banana-proPrice
$0.15
Network
Solana
x402
v2
Request parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
prompt | textarea | Yes | Detailed prompt description for the image |
aspect_ratio | string | No | Image aspect ratio |
referenceImage | string[] | No | URLs of reference images for style/composition guidance |
Response
Returns generated image URL, prompt, and generation metadata
Example
curl -X POST "https://api.xona-agent.com/image/nano-banana-pro" \
-H "Content-Type: application/json" \
-H "X-PAYMENT: <x402-payment-payload>" \
-d '{
"prompt": "A vibrant digital illustration depicting futuristic Solana tokens with neon colors...",
"aspect_ratio": "1:1",
"referenceImage": "https://example.com/reference.jpg"
}'Qwen Image
AI image generation using qwen/qwen-image model. Generate high-quality images with advanced AI capabilities using Dexter x402 v2 middleware.
POST /image-model/qwen-imagePrice
$0.05
Network
Solana
x402
v2
Request parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
prompt | textarea | Yes | Detailed prompt description for the image |
aspect_ratio | string | No | Image aspect ratio |
referenceImage | string[] | No | URLs of reference images (uses first image for qwen/qwen-image) |
Response
Returns generated image URL, prompt, and generation metadata
Example
curl -X POST "https://api.xona-agent.com/image-model/qwen-image" \
-H "Content-Type: application/json" \
-H "X-PAYMENT: <x402-payment-payload>" \
-d '{
"prompt": "A vibrant digital illustration depicting futuristic Solana tokens with neon colors...",
"aspect_ratio": "1:1",
"referenceImage": "https://example.com/reference.jpg"
}'Seedream 4.5
AI image generation using ByteDance Seedream-4.5 model. Generate high-quality images with advanced AI capabilities using Dexter x402 v2 middleware.
POST /image-model/seedream-4.5Price
$0.08
Network
Solana
x402
v2
Request parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
prompt | textarea | Yes | Detailed prompt description for the image |
aspect_ratio | string | No | Image aspect ratio |
referenceImage | string[] | No | URLs of reference images for style/composition guidance |
Response
Returns generated image URL, prompt, and generation metadata
Example
curl -X POST "https://api.xona-agent.com/image-model/seedream-4.5" \
-H "Content-Type: application/json" \
-H "X-PAYMENT: <x402-payment-payload>" \
-d '{
"prompt": "A vibrant digital illustration depicting futuristic Solana tokens with neon colors...",
"aspect_ratio": "1:1",
"referenceImage": "https://example.com/reference.jpg"
}'