{"skill":{"slug":"qwen-image-plus-sophnet","displayName":"Qwen Image Plus Sophnet","summary":"Generate images via Sophnet Qwen-Image-Plus and poll for task completion. Use when the user asks for Sophnet image generation, Qwen-Image-Plus, or requests an image from the Sophnet API.","description":"---\nname: qwen-image-plus-sophnet\ndescription: Generate images via Sophnet Qwen-Image-Plus and poll for task completion. Use when the user asks for Sophnet image generation, Qwen-Image-Plus, or requests an image from the Sophnet API.\n---\n\n# Qwen-Image-Plus (Sophnet) Image Generation\n\nUse the Sophnet image generator API to create an image task, poll until it\nfinishes, then return the image URL.\n\n## Quick Start\n\nSet the API key (preferred):\n```bash\nexport SOPHNET_API_KEY=\"YOUR_API_KEY\"\n```\n\nRun the script with an absolute path (do NOT cd to the skill directory):\n```bash\nbash /home/shutongshan/.openclaw/workspace/skills/qwen-image-plus-sophnet/scripts/generate_image.sh --prompt \"your prompt\"\n```\n\n## Script Options\n\n- `--prompt` (required): user prompt\n- `--negative-prompt` (optional)\n- `--size` (optional, default `1024*1024`)\n- `--n` (optional, default `1`)\n- `--watermark` (optional, default `false`)\n- `--prompt-extend` (optional, default `true`)\n- `--api-key` (optional, overrides `SOPHNET_API_KEY`)\n- `--poll-interval` (optional, default `2`)\n- `--max-wait` (optional, default `300`)\n\n## Output Contract\n\nThe script prints:\n- `TASK_ID=...`\n- `STATUS=succeeded`\n- `IMAGE_URL=...` (one or more lines)\n\nUse the `IMAGE_URL` value to respond to the user.\n\n## Workflow\n\n1. POST create-task with `model=Qwen-Image-Plus` and user prompt\n2. Poll GET task status until `SUCCEEDED`\n3. Extract `url` and return to the user\n\n## Real Example (captured run)\n\nPrompt:\n```text\nA scenic mountain landscape in ink wash style\n```\n\nCommand:\n```bash\nbash /home/shutongshan/.openclaw/workspace/skills/qwen-image-plus-sophnet/scripts/generate_image.sh \\\n  --prompt \"A scenic mountain landscape in ink wash style\" \\\n  --negative-prompt \"blurry, low quality\" \\\n  --size \"1024*1024\" \\\n  --n 1 \\\n  --watermark false \\\n  --prompt-extend true\n```\n\nOutput:\n```text\nTASK_ID=7BWFICt0zgLvuaTKg8ZoDg\nSTATUS=succeeded\nIMAGE_URL=https://dashscope-result-wlcb-acdr-1.oss-cn-wulanchabu-acdr-1.aliyuncs.com/7d/d5/20260203/cfc32567/f0e3ac18-31f6-4a1a-b680-a71d3e6bcbe03032414431.png?Expires=1770714400&OSSAccessKeyId=LTAI5tKPD3TMqf2Lna1fASuh&Signature=fF12GZ7RgGsC7OpEkGCapkBUXws%3D\n```\n\n## Common Errors\n\n- `Error: No API key provided.` -> set `SOPHNET_API_KEY` or pass `--api-key`\n- `STATUS=failed` -> check key permissions/quota or prompt parameters\n- `Error: url not found in response` -> inspect API response manually\n","tags":{"latest":"1.0.0"},"stats":{"comments":0,"downloads":2139,"installsAllTime":81,"installsCurrent":5,"stars":1,"versions":1},"createdAt":1770109527834,"updatedAt":1778486000320},"latestVersion":{"version":"1.0.0","createdAt":1770109527834,"changelog":"- Initial release of qwen-image-plus-sophnet skill.\n- Enables image generation via Sophnet Qwen-Image-Plus API, including task creation and polling until completion.\n- Supports user-configurable options: prompt, negative-prompt, image size, number of images, watermark, prompt extension, API key, poll interval, and max wait time.\n- Outputs image URL(s) for use in user responses.\n- Provides clear workflow, example usage, and troubleshooting for common errors.","license":null},"metadata":null,"owner":{"handle":"duffycoder","userId":"s170bw17nfrr7s5xcpphpphy0s8853tw","displayName":"Shan Shutong","image":"https://avatars.githubusercontent.com/u/147493434?v=4"},"moderation":null}