图像生成
文生图和创意图像模型,包括设计师模型、FLUX、Nano Banana、Krea 等。
文生图和创意图像模型,包括设计师模型、FLUX、Nano Banana、Krea 等。共 13 个 endpoint,每个都由 x402 支付协议 控制访问,并以 USDC 结算。也可以通过 MCP 服务器 连接相同的 endpoint,用于智能体之间的调用。
FLUX.2 flex
最高质量的图像生成和编辑,支持参考图像。
POST /image/flux-2-flex价格
$0.06
网络
Solana
x402
v2
请求参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
prompt | textarea | 是 | 图像的详细提示词描述 |
aspect_ratio | string | 否 | 图像宽高比 |
referenceImage | string[] | 否 | 用于风格/构图引导的参考图像 URL |
响应
返回生成的图像 URL、提示词和生成元数据
示例
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
Black Forest Labs 保真度最高的图像模型。
POST /image/flux-2-max价格
$0.08
网络
Solana
x402
v2
请求参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
prompt | textarea | 是 | 图像的详细提示词描述 |
aspect_ratio | string | 否 | 图像宽高比 |
referenceImage | string[] | 否 | 用于风格/构图引导的参考图像 URL |
响应
返回生成的图像 URL、提示词和生成元数据
示例
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
高质量的图像生成和编辑,支持参考图像。
POST /image/flux-2-pro价格
$0.05
网络
Solana
x402
v2
请求参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
prompt | textarea | 是 | 图像的详细提示词描述 |
aspect_ratio | string | 否 | 图像宽高比 |
referenceImage | string[] | 否 | 用于风格/构图引导的参考图像 URL |
响应
返回生成的图像 URL、提示词和生成元数据
示例
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
通过 Replicate 调用 OpenAI 最先进的图像生成模型。高质量的照片级真实感、清晰的文字渲染和出色的指令遵循能力。质量:medium。
POST /image/gpt-image-2价格
$0.12
网络
Solana
x402
v2
请求参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
prompt | textarea | 是 | 描述所需图像的详细提示词 |
aspect_ratio | string | 否 | 1:1(方形)、3:2(横向)或 2:3(纵向) |
响应
返回生成的图像 URL、提示词以及包含模型和质量信息的生成元数据
示例
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
使用 Grok Imagine 模型进行 AI 图像生成。根据你的提示词,通过 xAI 的 Grok Imagine API 生成高质量图像。
POST /image/grok-imagine价格
$0.04
网络
Solana
x402
v2
也可在 X Layer (USDC)、Base (USDC) 上付款。
请求参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
prompt | textarea | 是 | 图像的详细提示词描述 |
referenceImage | string | 否 | 用于风格/构图引导的参考图像 URL(Grok 仅支持一张图像) |
响应
返回生成的图像 URL、提示词和生成元数据
示例
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
使用 Krea 2 Large 模型进行 AI 图像生成。Krea 2 中保真度最高的档位,支持情绪板和风格参考控制。
POST /image/krea-2-large价格
$0.07
网络
Solana
x402
v2
也可在 Base/SKALE (USDC)、Base (USDC)、X Layer (USDC)、BNB (USDC)、Arbitrum (USDC)、Robinhood (USDG)、Stable (USDT0) 上付款。
请求参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
prompt | textarea | 是 | 图像的详细提示词描述 |
aspect_ratio | string | 否 | 图像宽高比 |
creativity | string | 否 | 创意程度 |
moodboard_strength | number | 否 | 情绪板影响程度(0-1) |
style_reference_strength | number | 否 | 风格参考影响程度(0-1) |
referenceImage | string[] | 否 | 风格参考图像 URL |
响应
返回生成的图像 URL、提示词和生成元数据
示例
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
使用 Krea 2 Medium 模型进行 AI 图像生成。生成高质量图像,支持情绪板和风格参考控制。
POST /image/krea-2-medium价格
$0.05
网络
Solana
x402
v2
也可在 Base/SKALE (USDC)、Base (USDC)、X Layer (USDC)、BNB (USDC)、Arbitrum (USDC)、Robinhood (USDG)、Stable (USDT0) 上付款。
请求参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
prompt | textarea | 是 | 图像的详细提示词描述 |
aspect_ratio | string | 否 | 图像宽高比 |
creativity | string | 否 | 创意程度 |
moodboard_strength | number | 否 | 情绪板影响程度(0-1) |
style_reference_strength | number | 否 | 风格参考影响程度(0-1) |
referenceImage | string[] | 否 | 风格参考图像 URL |
响应
返回生成的图像 URL、提示词和生成元数据
示例
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
使用 Krea 2 Medium Turbo 模型进行 AI 图像生成。快速生成高质量图像,支持情绪板和风格参考控制。
POST /image/krea-2-medium-turbo价格
$0.02
网络
Solana
x402
v2
也可在 Base/SKALE (USDC)、Base (USDC)、X Layer (USDC)、BNB (USDC)、Arbitrum (USDC)、Robinhood (USDG)、Stable (USDT0) 上付款。
请求参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
prompt | textarea | 是 | 图像的详细提示词描述 |
aspect_ratio | string | 否 | 图像宽高比 |
creativity | string | 否 | 创意程度 |
moodboard_strength | number | 否 | 情绪板影响程度(0-1) |
style_reference_strength | number | 否 | 风格参考影响程度(0-1) |
referenceImage | string[] | 否 | 风格参考图像 URL |
响应
返回生成的图像 URL、提示词和生成元数据
示例
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
使用 nano-banana 模型进行 AI 图像生成。根据你的提示词直接生成高质量图像,不进行风格混合。
POST /image/nano-banana价格
$0.05
网络
Solana
x402
v2
请求参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
prompt | textarea | 是 | 图像的详细提示词描述 |
aspect_ratio | string | 否 | 图像宽高比 |
referenceImage | string[] | 否 | 用于风格/构图引导的参考图像 URL |
响应
返回生成的图像 URL、提示词和生成元数据
示例
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
使用 nano-banana-2 模型进行 AI 图像生成,按分辨率计价。动态价格:1K=$0.06,2K=$0.10,4K=$0.15。
POST /image/nano-banana-2价格
$0.06-$0.15
网络
Solana
x402
v2
请求参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
prompt | textarea | 是 | 图像的详细提示词描述 |
resolution | select | 否 | 输出分辨率决定价格:1K=$0.06,2K=$0.10,4K=$0.15。可选值:1k、2k、4k。 |
aspect_ratio | string | 否 | 图像宽高比 |
referenceImage | string[] | 否 | 用于风格/构图引导的参考图像 URL |
响应
返回生成的图像 URL、提示词、分辨率和生成元数据
示例
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
使用 nano-banana-pro 模型进行 AI 图像生成。根据你的提示词直接生成高质量图像,不进行风格混合。
POST /image/nano-banana-pro价格
$0.15
网络
Solana
x402
v2
请求参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
prompt | textarea | 是 | 图像的详细提示词描述 |
aspect_ratio | string | 否 | 图像宽高比 |
referenceImage | string[] | 否 | 用于风格/构图引导的参考图像 URL |
响应
返回生成的图像 URL、提示词和生成元数据
示例
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
使用 qwen/qwen-image 模型进行 AI 图像生成。借助 Dexter x402 v2 中间件,以先进的 AI 能力生成高质量图像。
POST /image-model/qwen-image价格
$0.05
网络
Solana
x402
v2
请求参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
prompt | textarea | 是 | 图像的详细提示词描述 |
aspect_ratio | string | 否 | 图像宽高比 |
referenceImage | string[] | 否 | 参考图像 URL(qwen/qwen-image 使用第一张图像) |
响应
返回生成的图像 URL、提示词和生成元数据
示例
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
使用字节跳动 Seedream-4.5 模型进行 AI 图像生成。借助 Dexter x402 v2 中间件,以先进的 AI 能力生成高质量图像。
POST /image-model/seedream-4.5价格
$0.08
网络
Solana
x402
v2
请求参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
prompt | textarea | 是 | 图像的详细提示词描述 |
aspect_ratio | string | 否 | 图像宽高比 |
referenceImage | string[] | 否 | 用于风格/构图引导的参考图像 URL |
响应
返回生成的图像 URL、提示词和生成元数据
示例
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"
}'