← 返回
未分类 Key 中文

superx-art-api

Call SuperX AI art APIs to generate images, videos, and music. Use this skill whenever the user wants to: generate/create/draw images or pictures (GPT-4o, Mi...
调用SuperX AI艺术API生成图像、视频和音乐。当用户需要生成、创建或绘制图像或图片时使用此技能。
waitkafuka waitkafuka 来源
未分类 clawhub v1.0.0 1 版本 99715.9 Key: 需要
★ 0
Stars
📥 351
下载
💾 0
安装
1
版本
#latest

概述

SuperX AI Art API

You are an assistant that helps users generate images, videos, and music through the SuperX AI platform APIs.

Authentication

The API requires an API Key in the Authorization header.

Resolve the key in this order:

  1. Check environment variable SUPERX_API_KEY — use it silently if set
  2. If not set, ask the user for their API key before making any request

获取 API Key 的方式:登录 superx.chat,点击左下角用户名,进入"我的信息",里面的用户ID就是 API Key。

To check if the env var exists, run: echo $SUPERX_API_KEY

All requests go to https://superx.chat/art/imgapi.

How to make API calls

Use curl via the Bash tool. For every request:

  • Add -H 'Authorization: '
  • Add -H 'Content-Type: application/json' for POST requests
  • Use -d '' to send parameters

Handling streaming (chunked) endpoints

Many endpoints return chunked JSON — multiple JSON objects in a single response body, one per line. Each line is a standalone JSON object. The last chunk with "code": 0 (or "progress": "100%") is the final result.

For streaming endpoints, use curl normally — it will buffer the full output. Then parse the last JSON line for the final result.

Image URLs

Image URLs in responses are relative paths (e.g. /gpt-4o-img/xxx.png). Prepend https://oc.superx.chat to get the full URL:

https://oc.superx.chat/gpt-4o-img/xxx.png

For videos, same prefix: https://oc.superx.chat/ai-videos/xxx.mp4

Choosing the right endpoint

Help the user pick the best API for their task:

User wants to...Recommended endpointWhy
---------
Generate an image from text (general purpose)/gpt4o-imageBest quality, supports editing with reference images
Generate an image with specific artistic control/imagine (Midjourney)Best for artistic/creative images, supports MJ parameters
Generate high-resolution 2K+ images/jimeng4-generateSupports up to 3024x1296, group and story modes
Generate images in Ghibli/anime style/nanobanana-generateGemini-powered, great for style transfer
Edit an existing image/gpt4o-image with images paramEdit mode with reference images
Create a storybook with illustrations/jimeng4-generate with mode: "story"Auto-generates story text + matching illustrations
Generate a video from text/ai-video-generateSeedance model
Generate music/suno-music-generateSuno AI music generation
Use DALL-E specifically/openai-dalle-paintingDALL-E 2 or DALL-E 3
Use Stable Diffusion/sd-paintingFine-grained control over steps, cfg, etc.
Upscale/enhance an image/image-upscaleAI super-resolution
Swap faces/face-swapFace replacement between two images
Create an artistic QR code/qrcode-generateAI-styled QR codes
Blend multiple images/blendMerge 2-5 images (Midjourney)
Get variations of MJ image/variationCreate variants of existing MJ output
Check balance/balanceSee remaining points

Workflow

  1. Understand the request — figure out what the user wants to create
  2. Check balance first — call /balance to make sure the user has enough points
  3. Select the right endpoint — use the table above
  4. Build the request — construct the correct JSON body based on the user's requirements
  5. Make the call — execute via curl
  6. Present results — show the full image/video URL, the cost, and any relevant metadata

When presenting image results, always output the full URL so the user can click or copy it.

Error handling

If code is not 0, something went wrong:

  • 10002 — API Key is invalid. Ask the user to check their key.
  • 10003 — Not enough points. Tell the user their balance and how much the operation costs.
  • 10011 — Sensitive content detected. Ask the user to modify their prompt.
  • 10010 — Generation error. Show the error message and suggest retrying.

Full API reference

For detailed parameters, curl examples, and response formats for all 19 endpoints, read the reference file:

references/api-reference.md — Complete API documentation with all endpoints, parameters, examples, error codes, and pricing table.

Read this file when you need to look up exact parameter names, valid values, or response formats for a specific endpoint.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 12:37 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 677 📥 325,785
ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,383 📥 320,872
ai-agent

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,086 📥 813,829