pixshop-creative-api

Pixshop 开发者 REST API — 图片生成/编辑、视频制作、提示词库、应用市场、社区 / Pixshop Developer REST API — image generation/editing, video, prompts, apps, community endpoints. Use when user wants to integrate Pixshop AI capabilities into their app via HTTP API, or call endpoints with curl/fetch.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "pixshop-creative-api" with this command: npx skills add lizhijun/pixshop-creative-api

Pixshop Creative API — 开发者 REST 接口 / Developer REST API

Pixshop (pixshop.app) — AI 图片编辑 & 视频创意平台

通过 REST API 将 Pixshop 的 AI 创意能力集成到任何应用。覆盖图片生成(15+ 模型)、16 种图片编辑工具、视频生成、48+ AI 应用、提示词库、社区功能。所有接口统一返回 { success, data?, error? } 格式。

Setup / 配置

获取 Auth Token

# 方式 1:通过 CLI 登录获取 token
npm install -g pixshop
pixshop login
cat ~/.pixshop-config.json | jq '.accessToken'

# 方式 2:通过 Supabase Auth API
curl -X POST 'https://<supabase-url>/auth/v1/token?grant_type=password' \
  -H 'apikey: <anon-key>' \
  -d '{"email":"...","password":"..."}'

请求通用格式

curl -X POST https://pixshop.app/api/<endpoint> \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{ ... }'

API 列表 (6 Groups, 30+ Endpoints)

1. AI 图片生成

POST /api/ai/generate — 文本生成图片

参数类型必需说明
promptstring图片描述
modelstring模型名(默认 nano-banana)
aspectRatiostring1:1, 16:9, 9:16, 4:3, 3:4
qualitystringstandard, hd
referenceImagestring参考图片 base64 或 URL
appIdstringNano Banana App ID

示例:

curl -X POST https://pixshop.app/api/ai/generate \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"prompt":"a cute cat in space","aspectRatio":"1:1"}'

返回: { "success": true, "data": { "imageUrl": "...", "metadata": {...} } }

POST /api/ai/generate-video — 视频生成

参数类型必需说明
imageUrlstring源图片 URL
promptstring运动描述
modelstring视频模型
durationstring时长 5/10/15 秒

POST /api/ai/adapt-parameters — 参数适配 (免费)

根据描述自动推荐最佳生成参数。

2. AI 图片编辑工具 (16 Tools)

所有工具统一格式:POST /api/tools/<tool-name>,需要 Auth Token。

POST /api/tools/face-swap — 人脸替换

参数类型必需说明
targetImagestring目标图片(base64 或 URL)
sourceImagestring人脸来源图片
modestringswap (默认) 或 analyze

POST /api/tools/upscale — 超分辨率

参数类型必需说明
imagestring图片
scalenumber2 或 4
modelTypestringgeneral, portrait, anime, art

POST /api/tools/try-on — 虚拟试穿

参数类型必需说明
personImagestring人物图片
garmentImagestring服装图片

POST /api/tools/makeup-studio/analyze — 妆容分析

参数类型必需说明
imagestring人脸图片

POST /api/tools/makeup-studio/apply — 妆容应用

参数类型必需说明
imagestring人脸图片
stylestring妆容风格

POST /api/tools/aice-ps — AI 修图

参数类型必需说明
imagestring图片
actionstringretouch, filter, adjust, erase, beautify
promptstring编辑指令

POST /api/tools/inpaint — 智能填充

参数类型必需说明
imagestring图片
maskstring遮罩区域
promptstring填充内容

POST /api/tools/fashion-photoshoot — 时尚大片

参数类型必需说明
imagestring模特图片
stylestring拍摄风格

POST /api/tools/id-photo — 证件照

参数类型必需说明
imagestring人像图片
backgroundstring背景颜色
sizestring尺寸预设

POST /api/tools/transform — 图片变换

参数类型必需说明
imagestring图片
promptstring变换指令

POST /api/tools/sticker-set — 贴纸生成

参数类型必需说明
promptstring贴纸描述
stylestring贴纸风格

POST /api/tools/pose-generate — 姿态生成

参数类型必需说明
promptstring姿态描述

POST /api/tools/angles — 多角度生成

参数类型必需说明
imagestring源图片

POST /api/tools/motion-control/generate — 运动控制

参数类型必需说明
imagestring源图片
promptstring运动描述

3. Nano Banana Apps

GET /api/nano-banana/apps — 应用列表

参数类型必需说明
categoryquery分类筛选
searchquery搜索
featuredquery精选应用
curl https://pixshop.app/api/nano-banana/apps?category=generation

GET /api/nano-banana/apps/[id] — 应用详情

GET /api/nano-banana/apps/categories — 分类列表

GET /api/nano-banana/apps/featured — 精选应用

GET /api/nano-banana/apps/popular — 热门应用

4. 提示词库

GET /api/prompt-library — 提示词列表

参数类型必需说明
searchquery搜索关键词
category_idquery分类 ID
tagsquery标签筛选
pagequery页码
per_pagequery每页数量
curl "https://pixshop.app/api/prompt-library?search=cyberpunk&per_page=10"

GET /api/prompt-library/[id] — 提示词详情

POST /api/prompt-library/submit — 提交提示词(需登录)

GET /api/prompt-library/related?id=xxx — 相关推荐

5. 表情包生成

POST /api/meme — 表情包生成

参数类型必需说明
imagestring源图片
captionstring文字
stylestring风格

6. Agent Skills

GET /api/agent/skills — 技能列表

返回所有可用 AI 技能及其参数定义。

POST /api/agent/skills/[id]/execute — 执行技能

参数类型必需说明
...object技能对应的输入参数
curl -X POST https://pixshop.app/api/agent/skills/image-generate/execute \
  -H "Authorization: Bearer $TOKEN" \
  -d '{"prompt":"a sunset","aspectRatio":"16:9"}'

GET /api/agent/discover — 工具发现

浏览完整的 AI 工具目录。

统一响应格式

// 成功
{ "success": true, "data": { "imageUrl": "...", ... } }

// 失败
{ "success": false, "error": { "code": "AUTH_REQUIRED", "message": "..." } }

错误码:

状态码错误码说明
401AUTH_REQUIRED未登录
402INSUFFICIENT_CREDITS积分不足
429RATE_LIMIT_EXCEEDED速率限制
500INTERNAL_ERROR服务错误

典型工作流

开发者集成

获取 Token → GET /api/agent/discover 查看工具目录 → POST /api/ai/generate 生成图片 → POST /api/tools/upscale 超分放大

批量处理

GET /api/prompt-library → 获取提示词列表 → 循环调用 POST /api/ai/generate → 批量生成

电商场景

POST /api/tools/face-swap 换脸 → POST /api/tools/fashion-photoshoot 生成大片 → POST /api/tools/upscale 放大

注意事项

  • 认证:除 GET /api/nano-banana/appsGET /api/prompt-library 外,所有写操作需 Bearer Token
  • 积分:AI 生成/编辑操作消耗积分,GET 查询免费
  • 速率限制:每个用户每分钟有请求上限,超出返回 429
  • 图片输入:支持 base64 data URL 或 HTTP URL
  • 异步操作:视频生成等长时间操作返回任务 ID,需轮询结果
  • CORS:API 支持跨域请求

在线体验


Powered by Pixshop — AI 图片编辑 & 视频创意平台

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

Pixshop CLI — AI Image & Video Generation

Pixshop CLI 命令行工具 — AI 图片/视频生成、编辑工具、应用市场、提示词库 / Pixshop CLI — command-line AI image/video generation, editing tools, apps, prompts. Use when user wants to ge...

Registry SourceRecently Updated
0135
Profile unavailable
Coding

Fliz AI Video Generator

Complete integration guide for the Fliz REST API - an AI-powered video generation platform that transforms text content into professional videos with voiceovers, AI-generated images, and subtitles. Use this skill when: - Creating integrations with Fliz API (WordPress, Zapier, Make, n8n, custom apps) - Building video generation workflows via API - Implementing webhook handlers for video completion notifications - Developing automation tools that create, manage, or translate videos - Troubleshooting Fliz API errors or authentication issues - Understanding video processing steps and status polling Key capabilities: video creation from text/Brief, video status monitoring, translation, duplication, voice/music listing, webhook notifications.

Registry SourceRecently Updated
11.6K
Profile unavailable
Coding

ImaginePro AI Image Generation API

Generate AI images via ImaginePro API (Midjourney, Flux, Nano Banana, Lumi Girl, video)

Registry SourceRecently Updated
0285
Profile unavailable