← 返回
内容创作 中文

x402 Creative Resources

Access Xona's x402 creative resource APIs on api.xona-agent.com. Includes creative director (design research), image generation (nano-banana, seedream, grok-...
访问 api.xona-agent.com 上 Xona 的 x402 创意资源 API。包括创意总监(设计研究)、图像生成(nano-banana、seedream、grok-...)
xona-labs
内容创作 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 1,041
下载
💾 36
安装
1
版本
#latest

概述

x402 Creative Resources

All endpoints live on https://api.xona-agent.com and are paid via x402 (Solana USDC micropayments). The agent wallet pays automatically.

How to Call x402 Endpoints

Use the x402-fetch.js script in the workspace scripts folder. It handles the 402 payment flow automatically using the agent's Solana wallet.

node /home/node/.openclaw/workspace/scripts/x402-fetch.js <endpoint> [payload_json]

POST example:

node /home/node/.openclaw/workspace/scripts/x402-fetch.js /image/creative-director '{"idea":"futuristic Solana DeFi dashboard"}'

GET example:

node /home/node/.openclaw/workspace/scripts/x402-fetch.js /token/pumpfun-trending

The script outputs JSON. Parse the response and extract relevant fields (image_url, video_url, banner_url, etc.) to present to the user.

Resource Discovery

curl -s https://api.xona-agent.com/x402-resources

Creative Director (Design Research) — $0.03

Research trending design ideas on X and Google, analyze user intent, return refined creative direction.

node /home/node/.openclaw/workspace/scripts/x402-fetch.js /image/creative-director \
  '{"idea":"futuristic Solana DeFi dashboard aesthetic","reference_images":["https://example.com/ref.jpg"]}'
FieldRequiredDescription
------------------------------
ideaYesCreative idea or design research query
reference_imagesNoArray of reference image URLs

Response: { success, data: { intent, research, direction } }

The direction array contains generation plans with output_metadata.prompt — feed these into an image generation endpoint.


Image Generation

All image endpoints accept:

FieldRequiredDescription
------------------------------
promptYesDetailed image description
aspect_ratioNo1:1 (default), 16:9, 9:16, 4:3, 3:4
referenceImageNoArray of reference image URLs

All return: { success, data: { image_url, image_description, metadata } }

Designer (Style Blending) — $0.08

Also accepts style (array of keywords to blend into prompt).

node /home/node/.openclaw/workspace/scripts/x402-fetch.js /image/designer \
  '{"prompt":"a glowing Solana logo floating in space","style":["digital art","futuristic","neon"],"aspect_ratio":"16:9"}'

Grok Imagine — $0.04

Artistic, handles text-in-image well. Cheapest option.

node /home/node/.openclaw/workspace/scripts/x402-fetch.js /image/grok-imagine \
  '{"prompt":"...","aspect_ratio":"1:1"}'

Qwen Image — $0.05

Balanced quality and cost.

node /home/node/.openclaw/workspace/scripts/x402-fetch.js /image-model/qwen-image \
  '{"prompt":"...","aspect_ratio":"1:1"}'

Seedream 4.5 — $0.08

ByteDance photorealistic model. Best for high-detail, realistic images.

node /home/node/.openclaw/workspace/scripts/x402-fetch.js /image-model/seedream-4.5 \
  '{"prompt":"...","aspect_ratio":"1:1"}'

Nano Banana — $0.10

Fast creative generation. Good default.

node /home/node/.openclaw/workspace/scripts/x402-fetch.js /image/nano-banana \
  '{"prompt":"...","aspect_ratio":"1:1"}'

Nano Banana Pro — $0.20

Highest quality.

node /home/node/.openclaw/workspace/scripts/x402-fetch.js /image/nano-banana-pro \
  '{"prompt":"...","aspect_ratio":"1:1"}'

Model Selection Guide

ModelEndpointPriceBest for
----------------------------------
Grok Imagine/image/grok-imagine$0.04Artistic, text-in-image
Qwen Image/image-model/qwen-image$0.05Balanced quality/cost
Designer/image/designer$0.08Style-blended, art-directed
Seedream 4.5/image-model/seedream-4.5$0.08Photorealistic
Nano Banana/image/nano-banana$0.10Fast creative, good default
Nano Banana Pro/image/nano-banana-pro$0.20Highest quality

Video Generation — $0.50

10-second AI video using Grok Imagine Video. Supports text-to-video and image-to-video.

node /home/node/.openclaw/workspace/scripts/x402-fetch.js /video/short-generation \
  '{"prompt":"camera slowly orbiting a glowing Solana logo in deep space","aspect_ratio":"16:9"}'

For image-to-video, pass a previously generated image_url as image:

node /home/node/.openclaw/workspace/scripts/x402-fetch.js /video/short-generation \
  '{"prompt":"smooth zoom into center","aspect_ratio":"16:9","image":"https://cdn.example.com/img.jpg"}'
FieldRequiredDescription
------------------------------
promptYesVideo description with motion cues
aspect_ratioNoAspect ratio (default: 16:9)
imageNoStill image URL to animate

Response: { success, data: { video_url, duration, model, metadata } }

Takes up to 5 minutes. Let the user know it's processing.


X News Extraction — $0.50

Extract latest news from any X account, generate tweet draft and banner.

node /home/node/.openclaw/workspace/scripts/x402-fetch.js /ai/x-news \
  '{"x_username":"solana"}'
FieldRequiredDescription
------------------------------
x_usernameYesX username (with or without @)
x_personaNoX username whose style to mimic for tweet draft

Response: { success, data: { x_username, trending_news: { title, tweet_draft, banner_url } } }


PumpFun Token Intelligence

Trending Tokens — $0.10

node /home/node/.openclaw/workspace/scripts/x402-fetch.js /token/pumpfun-trending

Response: { success, data: { summary, suggestions, trending_tokens, count } }

Top Movers — $0.10

node /home/node/.openclaw/workspace/scripts/x402-fetch.js /token/pumpfun-movers

Same response format as trending.


Recommended Workflows

Full Creative Pipeline

  1. Call /image/creative-director with the user's idea
  2. Use the returned direction[].output_metadata.prompt to call an image endpoint
  3. Pass the generated image_url to /video/short-generation to animate it

News + Visual Pipeline

  1. Call /ai/x-news with a target X account
  2. Present the tweet_draft and banner_url

Market Intelligence

  1. Call /token/pumpfun-trending for current meta
  2. Call /token/pumpfun-movers for biggest moves
  3. Generate themed images based on the dominant narrative

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 08:51 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

YouTube

byungkyu
使用托管OAuth集成YouTube Data API,支持搜索视频、管理播放列表、获取频道数据及评论互动,适用于用户需要时使用此技能。
★ 141 📥 41,008
content-creation

Baidu Wenku AIPPT

ide-rea
使用百度文库 AI 智能生成 PPT,自动根据内容选择模板。
★ 66 📥 46,123
content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 857 📥 199,226