weshopai/weshop-dsh-plugin/weshop-openapi
Claude Code and agent skill by weshopai/weshop-dsh-plugin
- community
Checking that the SKILL.md file is still in the repository.
Use for WeShop image and video generation, editing, and transformation tasks — virtual try-on, model swap, background replace, pose change, canvas expand, background removal, AI video generation, product/photo generation, and more.
Install
npx vskill@latest install weshopai/weshop-dsh-plugin/weshop-openapiSKILL.md
WeShop OpenAPI
Mandatory per-turn gate
For every new user turn that asks to generate, edit, transform, upscale, or animate content, this Skill must be invoked through the Skill tool before any WeShop generation call. Invoke it again even if it was already used earlier in the conversation, and again after context compaction, retry, or handoff. Reading this file or the package README with filesystem/Bash does not replace invoking the Skill.
Use the recipes in this Skill as the source of truth. Do not search the package source or the web for parameters already documented here.
WeShop generation runs server-side through the native Cordis tools (weshop_generate_run / weshop_get_run). The WESHOP_API_KEY lives in the Harness host process — never echo it, never put it in a tool argument or a canvas provenance record, and never send it anywhere other than https://openapi.weshop.ai/openapi/*. If the key is missing, stop before any API request and tell the user to open the WeShop canvas and click Configure API Key in its top bar, then retry; alternatively they may set WESHOP_API_KEY before starting Harness. Direct them to https://www.weshop.ai/apiKey only to obtain a key.
Workflow
- Read the canvas (
weshop_canvas_get_state) and use the selectedmaterialitem as the source. Use itsasset.localPathwhen available, else itsasset.url. - Choose the agent and version from the table below; read that agent's parameter notes.
- Call
weshop_generate_runwith{ agent, originalImage?, referenceImages?, taskName?, params, wait: true }. UseoriginalImagefor agents documented with one legacy source image. UsereferenceImagesfor agents documented withimages; local paths are uploaded and copied to bothinput.imagesandparams.imagesautomatically. Result URLs come back indata.executions[*].result[*].image(image agents) or*.video/*.videoPoster(video agents). - On success, publish each returned remote URL directly with
weshop_canvas_publish_result(images) orweshop_canvas_publish_asset(video/audio). Do not download the generated file first. Include complete provenance (method,agent,version,executionId,prompt/taskName,sourceItemIds, returned URL, completion time). A local path is supported only when the generating tool genuinely returns a local-only file. Never overwrite or reclassify the source material item. - If the run fails or times out, report the API error and offer to retry (the error envelope's
retryableflag signals whether a retry is worthwhile).
Agents (all v1.0)
| Agent | Use when | Required params (plus batchCount 1–16 optional) | |
|---|---|---|---|
aimodel | Fashion model photos — replace model/scene, keep garment | generatedContent (freeCreation/referToOrigin), maskType (autoApparelSegment, autoUpperApparelSegment, autoLowerApparelSegment, autoSubjectSegment, autoHumanSegment, inverseAutoHumanSegment, custom); one of textDescription/locationId/fashionModelId; optional negTextDescription, pose, customMaskUrl | |
aiproduct | Product still-life — replace/enhance background | generatedContent, maskType (autoSubjectSegment/custom); one of textDescription/locationId; optional negTextDescription, customMaskUrl | |
aipose | Change pose, keep garment | textDescription (pose instruction); optional generateVersion (lite default/pro) | |
expandimage | Expand canvas, AI fills new area | targetWidth, targetHeight (max 4096); optional fillLeft, fillTop (default centered) | |
removeBG | Remove/replace background | maskType (autoSubjectSegment/custom); optional backgroundHex or backgroundId (omit both → transparent), customMaskUrl | |
virtualtryon | Try a garment on a model | generateVersion (weshopFlash/weshopPro/bananaPro), descriptionType (custom/auto); textDescription required when custom ('Figure 1'=garment, 'Figure 2'=model, 'Figure 3'=background); optional aspectRatio, imageSize (bananaPro: 1K/2K/4K), model/background reference images | |
gpt-image | High-quality generation or reference-image editing with GPT Image 2 | textDescription, aspectRatio (auto, 1:1, 2:3, 3:2, 4:3, 3:4, 16:9, 9:16, 21:9; default 3:4), imageSize (1K/2K/4K; default 1K), quality (low/medium/high; default low); optional batchCount; pass 0–5 source images via top-level referenceImages, not originalImage |
Other common agents: seedream, nano-banana-edit, midjourney, z-image, qwen-image-edit, firered-image-edit (image); kling, seedance, veo-ai, vidu-ai, wan-ai, grok-imagine-video, hailuo-ai, sora-2 (video). When in doubt about an agent's parameters, prefer a documented agent in this table or ask one targeted question rather than guessing.
gpt-image recipes
Text-to-image (no source image):
Edit from selected canvas images: use the same payload and add "referenceImages": ["<selected localPath or URL>"] (up to 5). Describe what must change and what must remain unchanged in textDescription.
Notes
maskType= protected region: content inside the mask stays unchanged; everything outside is regenerated.customrequirescustomMaskUrl(public PNG URL) orcustomMask(base64 PNG without thedata:image/png;base64,prefix); dimensions should match the source.generatedContent:freeCreation= freer generation;referToOrigin= stay close to the source.batchCountdefault is1; set it explicitly for more variants.- Polling is handled by the tool (
wait: true); setwait: falsefor long video runs and poll withweshop_get_run.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/weshop-openapi/SKILL.md
Popularity
- Repository stars
- 13
- 7-day trend score
- 13
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/weshopai/weshop-dsh-plugin/weshop-openapi)