{"id":"ebec9c3c-8006-4356-95be-ba3cfe24ac3b","entityType":"agent","slug":"clawhub-dddcn1-jiuma-free-image-gen","name":"九马免费文生图","canonicalUrl":"https://www.xpersona.co/agent/clawhub-dddcn1-jiuma-free-image-gen","canonicalPath":"/agent/clawhub-dddcn1-jiuma-free-image-gen","generatedAt":"2026-10-10T01:42:02.078Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"editorial-content","verified":true,"confidence":"high","updatedAt":"2026-10-09T21:58:00.075Z","emptyReason":null},"description":"九马AI免费图片生成技能。使用九马AI API进行文本到图片的生成，支持自定义图片尺寸和提示词。当用户需要根据文本描述生成图片时使用此技能。Jiuma AI's free image generation skill. Utilize the Jiuma AI API to generate images fro... Skill: 九马免费文生图 Owner: dddcn1 Summary: 九马AI免费图片生成技能。使用九马AI API进行文本到图片的生成，支持自定义图片尺寸和提示词。当用户需要根据文本描述生成图片时使用此技能。Jiuma AI's free image generation skill. Utilize the Jiuma AI API to generate images fro... Tags: latest:1.0.2 Version history: v1.0.2 | 2026-04-02T03:05:51.672Z | user - Added concise English description to the SKILL.md front matter, making the skill more accessible to non-Chinese users. - No functional changes","descriptionLabel":"Technical summary","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. 2K downloads reported by the source. Last updated 10/9/2026.","installCommand":"clawhub skill install s172n16znrtx2sb8vkrnr0p15n83khp0:jiuma-free-image-gen","sourceUrl":"https://clawhub.ai/dddcn1/jiuma-free-image-gen","homepage":"https://clawhub.ai/dddcn1/skills/jiuma-free-image-gen","primaryLinks":[{"label":"View on ClawHub","url":"https://clawhub.ai/dddcn1/jiuma-free-image-gen","kind":"source"},{"label":"Homepage","url":"https://clawhub.ai/dddcn1/skills/jiuma-free-image-gen","kind":"homepage"}],"safetyScore":84,"overallRank":62,"popularityScore":44,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"九马AI免费图片生成技能。使用九马AI API进行文本到图片的生成，支持自定义图片尺寸和提示词。当用户需要根据文本描述生成图片时使用此技能。Jiuma AI's free image generation skill. Utilize the Jiuma AI API to generate images fro..."},"coverage":{"evidence":{"source":"public-profile","verified":false,"confidence":"medium","updatedAt":"2026-10-09T21:58:00.075Z","emptyReason":null},"protocols":[{"protocol":"OPENCLEW","label":"OpenClaw","status":"self-declared","notes":"Declared in the public agent profile."}],"capabilities":[],"verifiedCount":0,"selfDeclaredCount":1,"capabilityMatrix":{"rows":[{"key":"OPENCLEW","type":"protocol","support":"unknown","confidenceSource":"profile","notes":"Listed on profile"}],"flattenedTokens":"protocol:OPENCLEW|unknown|profile"}},"adoption":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-09T21:58:00.075Z","emptyReason":null},"stars":null,"forks":null,"downloads":1952,"packageName":null,"latestVersion":"1.0.2","tractionLabel":"2K downloads"},"release":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-09T21:58:00.074Z","emptyReason":null},"lastUpdatedAt":"2026-10-09T21:58:00.075Z","lastCrawledAt":"2026-10-09T21:58:00.074Z","lastIndexedAt":null,"nextCrawlAt":"2026-10-10T21:58:00.074Z","lastVerifiedAt":null,"highlights":[{"version":"1.0.2","createdAt":"2026-04-02T03:05:51.672Z","changelog":"- Added concise English description to the SKILL.md front matter, making the skill more accessible to non-Chinese users. - No functional changes to code or APIs; documentation only.","fileCount":7,"zipByteSize":11640},{"version":"1.0.1","createdAt":"2026-04-02T01:50:45.150Z","changelog":"- 新增登录与API密钥管理功能，包含 LOGIN.md、login.py 和 utils.py 文件 - 支持扫描二维码手机登录九马AI平台，突破免费生成次数限制 - 文档增加 FreeApiLimit 错误说明与完整的登录和API密钥获取流程指引 - 可自动保存API密钥，达到免费限额后无需重复登录 - 故障排除与使用提示更加详细，提升用户体验","fileCount":6,"zipByteSize":10341},{"version":"1.0.0","createdAt":"2026-03-26T07:09:58.907Z","changelog":"jiuma-free-image-gen 1.0.0 - Initial release of the skill for free text-to-image generation using the Jiuma AI API. - Supports customizable image size up to 832x832, customizable prompt, and simple command-line interface. - Allows querying task status after submission to check image generation progress and download results. - No API key required, with free-tier limitations (output size, queueing at high load). - Includes clear API usage examples, error troubleshooting, and prompt crafting tips.","fileCount":3,"zipByteSize":6175}]},"execution":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No published capability contract is available yet."},"installCommand":"clawhub skill install s172n16znrtx2sb8vkrnr0p15n83khp0:jiuma-free-image-gen","setupComplexity":"low","setupSteps":["Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.","Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data."],"contract":{"contractStatus":"missing","authModes":[],"requires":[],"forbidden":[],"supportsMcp":false,"supportsA2a":false,"supportsStreaming":false,"inputSchemaRef":null,"outputSchemaRef":null,"dataRegion":null,"contractUpdatedAt":null,"sourceUpdatedAt":null,"freshnessSeconds":null},"invocationGuide":{"preferredApi":{"snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-dddcn1-jiuma-free-image-gen/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-dddcn1-jiuma-free-image-gen/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-dddcn1-jiuma-free-image-gen/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-dddcn1-jiuma-free-image-gen/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-dddcn1-jiuma-free-image-gen/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-dddcn1-jiuma-free-image-gen/trust\""],"jsonRequestTemplate":{"query":"summarize this repo","constraints":{"maxLatencyMs":2000,"protocolPreference":["OPENCLEW"]}},"jsonResponseTemplate":{"ok":true,"result":{"summary":"...","confidence":0.9},"meta":{"source":"CLAWHUB","generatedAt":"2026-10-10T01:42:02.077Z"}},"retryPolicy":{"maxAttempts":3,"backoffMs":[500,1500,3500],"retryableConditions":["HTTP_429","HTTP_503","NETWORK_TIMEOUT"]}},"endpoints":{"dossierUrl":"https://www.xpersona.co/api/v1/agents/clawhub-dddcn1-jiuma-free-image-gen/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-dddcn1-jiuma-free-image-gen/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-dddcn1-jiuma-free-image-gen/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-dddcn1-jiuma-free-image-gen/trust"}},"reliability":{"evidence":{"source":"runtime-metrics","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No trust, reliability, or runtime telemetry is available."},"trust":{"status":"unavailable","handshakeStatus":"UNKNOWN","verificationFreshnessHours":null,"reputationScore":null,"p95LatencyMs":null,"successRate30d":null,"fallbackRate":null,"attempts30d":null,"trustUpdatedAt":null,"trustConfidence":"unknown","sourceUpdatedAt":null,"freshnessSeconds":null},"decisionGuardrails":{"doNotUseIf":["Contract metadata is missing or unavailable for deterministic execution."],"safeUseWhen":[],"riskFlags":["missing_or_unavailable_contract","trust_data_unavailable","schema_references_missing"],"operationalConfidence":"low"},"executionMetrics":{"observedLatencyMsP50":null,"observedLatencyMsP95":null,"estimatedCostUsd":null,"uptime30d":null,"rateLimitRpm":null,"rateLimitBurst":null,"lastVerifiedAt":null,"verificationSource":null},"runtimeMetrics":{"successRate":null,"avgLatencyMs":null,"avgCostUsd":null,"hallucinationRate":null,"retryRate":null,"disputeRate":null,"p50Latency":null,"p95Latency":null,"lastUpdated":null}},"benchmarks":{"evidence":{"source":"no-benchmark-data","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No benchmark suites or observed failure patterns are available."},"suites":[],"failurePatterns":[]},"artifacts":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"high","updatedAt":"2026-10-09T21:58:00.075Z","emptyReason":null},"readme":"Skill: 九马免费文生图\n\nOwner: dddcn1\n\nSummary: 九马AI免费图片生成技能。使用九马AI API进行文本到图片的生成，支持自定义图片尺寸和提示词。当用户需要根据文本描述生成图片时使用此技能。Jiuma AI's free image generation skill. Utilize the Jiuma AI API to generate images fro...\n\nTags: latest:1.0.2\n\nVersion history:\n\nv1.0.2 | 2026-04-02T03:05:51.672Z | user\n\n- Added concise English description to the SKILL.md front matter, making the skill more accessible to non-Chinese users.\n- No functional changes to code or APIs; documentation only.\n\nv1.0.1 | 2026-04-02T01:50:45.150Z | user\n\n- 新增登录与API密钥管理功能，包含 LOGIN.md、login.py 和 utils.py 文件\n- 支持扫描二维码手机登录九马AI平台，突破免费生成次数限制\n- 文档增加 FreeApiLimit 错误说明与完整的登录和API密钥获取流程指引\n- 可自动保存API密钥，达到免费限额后无需重复登录\n- 故障排除与使用提示更加详细，提升用户体验\n\nv1.0.0 | 2026-03-26T07:09:58.907Z | user\n\njiuma-free-image-gen 1.0.0\n\n- Initial release of the skill for free text-to-image generation using the Jiuma AI API.\n- Supports customizable image size up to 832x832, customizable prompt, and simple command-line interface.\n- Allows querying task status after submission to check image generation progress and download results.\n- No API key required, with free-tier limitations (output size, queueing at high load).\n- Includes clear API usage examples, error troubleshooting, and prompt crafting tips.\n\nArchive index:\n\nArchive v1.0.2: 7 files, 11640 bytes\n\nFiles: agent.py (6118b), LOGIN.md (3619b), login.py (1650b), skill-card.md (2217b), skill.md (11582b), utils.py (2981b), _meta.json (139b)\n\nFile v1.0.2:skill.md\n\n---\r\nname: jiuma-free-image-gen\r\ndescription: 九马AI免费图片生成技能。使用九马AI API进行文本到图片的生成，支持自定义图片尺寸和提示词。当用户需要根据文本描述生成图片时使用此技能。Jiuma AI's free image generation skill. Utilize the Jiuma AI API to generate images from text, supporting customizable image sizes and prompt words. This skill is employed when users need to generate images based on text descriptions.\r\n---\r\n\r\n# 九马AI免费图片生成技能\r\n\r\n基于九马AI API的文本到图片生成技能。支持根据文本提示词生成高质量图片，并可自定义图片尺寸。\r\n\r\n## ⚠️ 重要提醒\r\n\r\n**免费使用次数限制**：九马AI提供有限的免费使用次数。当出现`FreeApiLimit`错误时，**必须**先完成登录流程：\r\n\r\n1. **获取登录信息**：`python3 login.py --login`\r\n2. **扫码登录**：用手机扫描返回的二维码完成九马AI平台注册/登录\r\n3. **获取API密钥**：`python3 login.py --check --access_token \"<your_token>\"`\r\n4. **正常使用**：之后即可获得更多免费次数使用文生图功能\r\n\r\n## 核心功能\r\n\r\n1. **文本到图片生成**: 根据文本描述生成相应的图片\r\n2. **自定义尺寸**: 支持自定义图片宽度和高度（最大832x832）\r\n3. **任务状态查询**: 提交任务后可以查询生成进度和结果\r\n4. **免费使用**: 限制级免费使用，无需API密钥，但免费用户在输出尺寸方面会有限制，使用并发高时需要排队等待；\r\n\r\n## 使用方法\r\n\r\n### 命令行使用\r\n\r\n```bash\r\n# 提交图片生成任务\r\npython3 agent.py --submit --text \"一只可爱的小猫在草地上玩耍\" --width 512 --height 512\r\n\r\n# 查询任务状态\r\npython3 agent.py --check --task_id \"202603263844232132\"\r\n```\r\n\r\n### 在OpenClaw中使用\r\n\r\n```python\r\n# 提交图片生成任务\r\nexec python3 ~/.openclaw/workspace/skills/jiuma-free-image-gen/agent.py --submit --text \"美丽的日落风景\" --width 832 --height 480\r\n\r\n# 查询任务状态\r\nexec python3 ~/.openclaw/workspace/skills/jiuma-free-image-gen/agent.py --check --task_id \"20260326486039011\"\r\n```\r\n\r\n## API说明\r\n\r\n### 提交图片生成API\r\n- **URL**: `POST https://api.jiuma.com/api/textImage/add`\r\n- **参数**:\r\n  - `text`: 图片描述文本（必需）\r\n  - `width`: 图片宽度（可选，默认832，最大832）\r\n  - `height`: 图片高度（可选，默认480，最大832）\r\n\r\n### 查询任务状态API\r\n- **URL**: `POST https://api.jiuma.com/api/textImage/status`\r\n- **参数**:\r\n  - `task_id`: 任务ID（必需）\r\n\r\n## 任务状态说明\r\n\r\n| 状态 | 含义 | 说明 |\r\n|------|------|------|\r\n| PENDING | 排队中 | 任务已提交，正在等待处理 |\r\n| RUNNING | 执行中 | 图片正在生成中 |\r\n| SUCCEEDED | 成功 | 图片生成完成，返回图片URL |\r\n| FAILED | 失败 | 图片生成失败，返回错误信息 |\r\n\r\n## 返回格式\r\n\r\n### 提交任务成功\r\n```json\r\n{\r\n  \"status\": \"success\",\r\n  \"message\": \"文生图任务提交成功\",\r\n  \"data\": {\r\n    \"task_id\": \"202603263844232132\"\r\n  }\r\n}\r\n```\r\n\r\n### 免API_KEY免费生成次数达到上限\r\n```json\r\n{\r\n  \"status\": \"FreeApiLimit\",\r\n  \"message\": \"免费使用次数达到上限，成为九马AI平台用户可获得更多使用次数\",\r\n  \"data\": {}\r\n}\r\n```\r\n\r\n### 查询任务成功（图片已生成）\r\n```json\r\n{\r\n  \"status\": \"success\",\r\n  \"message\": \"图片生成成功\",\r\n  \"data\": {\r\n    \"image_url\": \"https://cache.jiuma.com/static/uploads/20260326/69c4cc0c043e1.png\",\r\n    \"task_id\": \"20260326486039011\"\r\n  }\r\n}\r\n```\r\n\r\n### 查询任务排队/执行中\r\n```json\r\n{\r\n  \"status\": \"pending\",\r\n  \"message\": \"文生图任务排队中，请耐心等待\",\r\n  \"data\": {\r\n    \"task_id\": \"20260326486039011\"\r\n  }\r\n}\r\n```\r\n\r\n### 任务失败\r\n```json\r\n{\r\n  \"status\": \"failed\",\r\n  \"message\": \"图片生成失败: 具体错误信息\",\r\n  \"data\": {\r\n    \"task_id\": \"20260326486039011\"\r\n  }\r\n}\r\n```\r\n\r\n## 示例\r\n\r\n### 提交图片生成任务\r\n```bash\r\n$ python3 agent.py --submit --text \"一只可爱的小猫在草地上玩耍\" --width 512 --height 512\r\n\r\n# 输出示例\r\n{\r\n  \"status\": \"success\",\r\n  \"message\": \"文生图任务提交成功\",\r\n  \"data\": {\r\n    \"task_id\": \"202603263844232132\"\r\n  }\r\n}\r\n```\r\n\r\n### 查询任务状态\r\n```bash\r\n$ python3 agent.py --check --task_id \"202603263844232132\"\r\n\r\n# 输出示例（生成成功）\r\n{\r\n  \"status\": \"success\",\r\n  \"message\": \"图片生成成功\",\r\n  \"data\": {\r\n    \"image_url\": \"https://cache.jiuma.com/static/uploads/20260326/69c4cc0c043e1.png\",\r\n    \"task_id\": \"202603263844232132\"\r\n  }\r\n}\r\n\r\n# 输出示例（排队中）\r\n{\r\n  \"status\": \"pending\",\r\n  \"message\": \"文生图任务排队中，请耐心等待\",\r\n  \"data\": {\r\n    \"task_id\": \"202603263844232132\"\r\n  }\r\n}\r\n```\r\n\r\n## 脚本参数说明\r\n\r\n```bash\r\n--submit       提交图片生成任务（必需）\r\n--text         图片描述文本，对图片的详细描述（必需）\r\n--width        输出图片的宽度（可选，默认832，最大832）\r\n--height       输出图片的高度（可选，默认480，最大832）\r\n--check        查询任务生成状态（必需）\r\n--task_id      任务ID，用于查询任务进度（与--check一起使用）\r\n```\r\n\r\n## 使用流程\r\n\r\n1. **提交任务**:\r\n   - 使用 `--submit` 参数提交图片生成请求\r\n   - 提供详细的文本描述 `--text`\r\n   - 可选指定图片尺寸 `--width` 和 `--height`\r\n   - 获取返回的 `task_id`\r\n\r\n2. **查询状态**:\r\n   - 使用 `--check` 参数查询任务状态\r\n   - 提供 `--task_id` 参数指定要查询的任务\r\n   - 根据返回状态判断图片是否生成完成\r\n\r\n3. **获取图片**:\r\n   - 当状态为 `success` 时，从返回的 `image_url` 获取图片链接\r\n   - 图片通常在云端存储，可以直接下载使用\r\n\r\n## 依赖\r\n\r\n- Python 3.6+\r\n- requests库 (`pip install requests`)\r\n\r\n## 图片尺寸建议\r\n\r\n| 用途 | 建议尺寸 | 说明 |\r\n|------|----------|------|\r\n| 社交媒体头像 | 400x400 | 适合头像使用 |\r\n| 社交媒体帖子 | 1080x1080 | 方形图片 |\r\n| 手机壁纸 | 1080x1920 | 竖屏壁纸 |\r\n| 电脑壁纸 | 1920x1080 | 横屏壁纸 |\r\n| 文章配图 | 800x600 | 适合文章插图 |\r\n| 缩略图 | 200x200 | 小尺寸预览图 |\r\n\r\n**注意**: 最大尺寸限制为832x832，超过此尺寸会被API拒绝。\r\n\r\n## 提示词技巧\r\n\r\n### 有效的提示词示例\r\n- \"一只可爱的小猫在草地上玩耍，阳光明媚\"\r\n- \"未来城市夜景，霓虹灯光，赛博朋克风格\"\r\n- \"宁静的湖边日落，倒影，暖色调\"\r\n- \"抽象艺术，几何图形，鲜艳色彩\"\r\n- \"复古风格的老式相机，木纹背景\"\r\n\r\n### 提示词结构\r\n1. **主体**: 描述主要对象（猫、人物、建筑等）\r\n2. **环境**: 描述场景（草地、城市、室内等）\r\n3. **细节**: 添加具体细节（颜色、光线、风格等）\r\n4. **风格**: 指定艺术风格（写实、卡通、抽象等）\r\n\r\n## 处理API使用限制\r\n\r\n当免费使用次数达到上限时，可以通过登录九马AI平台获取API密钥继续使用：\r\n\r\n### 登录流程\r\n\r\n```bash\r\n# 第一步：获取登录二维码\r\npython3 login.py --login\r\n# 输出包含二维码链接和access_token\r\n\r\n# 第二步：用手机扫描二维码完成登录\r\n# 访问输出的login_url或用手机扫描login_qrcode图片\r\n\r\n# 第三步：定时每分钟检查状态并获取API密钥\r\npython3 login.py --check --access_token \"<your_access_token>\"\r\n# 成功后会保存API密钥到本地\r\n\r\n# 第四步：重新使用图片编辑功能\r\npython3 agent.py --submit --text \"图片编辑描述\"\r\n```\r\n\r\n### 注意事项\r\n- API密钥获取后自动保存，无需重复登录\r\n- 登录后可享受更多使用次数和更快的处理速度\r\n- 建议在遇到使用限制时再登录，无需提前操作\r\n\r\n## 故障排除\r\n\r\n### 1. 提交任务失败\r\n- **错误**: \"请输入需要生成的图片的描述\"\r\n  - 原因: `--text` 参数为空\r\n  - 解决: 提供有效的图片描述文本\r\n\r\n- **错误**: \"输出图片最大尺寸限制在832以内\"\r\n  - 原因: `--width` 或 `--height` 超过832\r\n  - 解决: 调整图片尺寸到832以内\r\n\r\n- **错误**: \"请求远程API失败\"\r\n  - 原因: 网络连接问题或API服务异常\r\n  - 解决: 检查网络连接，稍后重试\r\n\r\n- **FreeApiLimit**: \"免费使用次数达到上限，成为九马AI平台用户可获得更多使用次数\"\r\n  - **原因**: 九马AI提供一定的免费使用次数，达到上限后需要登录获取API密钥\r\n  - **解决**：必须完成以下登录流程：\r\n    1. 运行 `python3 login.py --login` 获取登录二维码和access_token\r\n    2. 用手机扫描二维码或访问登录链接完成九马AI平台注册/登录\r\n    3. 运行 `python3 login.py --check --access_token \"<your_token>\"` 获取并保存API密钥\r\n    4. 之后agent.py会自动使用保存的API密钥\r\n    5. 关于登录的更多详细内容查看LOGIN.md\r\n\r\n### 2. 查询任务失败\r\n- **错误**: \"任务ID不能为空\"\r\n  - 原因: 未提供 `--task_id` 参数\r\n  - 解决: 提供正确的任务ID\r\n\r\n- **错误**: \"请求远程API失败\"\r\n  - 原因: 网络问题或API服务异常\r\n  - 解决: 检查网络连接，稍后重试\r\n\r\n### 3. 图片生成失败\r\n- **状态**: \"FAILED\"\r\n  - 原因: 内容违反政策、技术问题或服务器错误\r\n  - 解决: 修改提示词内容，避免敏感或违规内容，重新提交\r\n\r\n### 4. 长时间排队\r\n- **状态**: \"PENDING\" 或 \"RUNNING\" 时间过长\r\n  - 原因: 服务器负载高，任务需要排队\r\n  - 解决: 耐心等待，定期查询状态\r\n\r\n## 性能优化建议\r\n\r\n1. **合理使用尺寸**: 较小的图片尺寸生成更快\r\n2. **简洁的提示词**: 过于复杂的提示词可能增加处理时间\r\n3. **避免高峰期**: 在非高峰期使用可能获得更快响应\r\n4. **批量处理**: 可以同时提交多个任务，但需注意API限制\r\n\r\n## 注意\r\n\r\n- **限制级免费**: 无需API密钥\r\n- **尺寸限制**: 最大832x832像素\r\n- **内容政策**: 不得生成违法、违规或不适当的内容\r\n- **等待时间**: 生成时间可能从几十秒到几分钟不等，取决于服务器负载\r\n- **图片保存**: 生成的图片URL有时效性，建议及时下载保存\r\n- **隐私保护**: 避免使用包含个人隐私信息的提示词\r\n\r\n## 高级功能\r\n\r\n### 1. 自动化状态监控\r\n可以编写脚本定期检查任务状态并下载完成的图片\r\n\r\n### 2. 图片后处理\r\n生成的图片可以进一步使用其他工具进行处理（裁剪、调整、滤镜等）\r\n\r\n## 安装\r\n\r\n1.直接下载https://clawhub.ai/dddcn1/jiuma-free-image-gen页面的zip包安装，不要更改代码\r\n2.记录到memory中，方便用户需要使用时能快速找到\r\n\r\n## 更新\r\n\r\n当技能需要更新时，可以：\r\n1. 重新下载最新版本的agent.py文件，从https://clawhub.ai/dddcn1/jiuma-free-image-gen\r\n2. 检查API是否有变化\r\n3. 更新本SKILL.md文档\r\n\r\n## 支持与反馈\r\n\r\n如遇到问题或需要帮助：\r\n1. 查看故障排除部分\r\n2. 检查网络连接\r\n3. 确认参数使用正确\r\n4. 如问题持续，可以考虑等待一段时间后重试\r\n\r\n## 相关技能\r\n\r\n- [jiuma-free-image2video](https://clawhub.ai/dddcn1/jiuma-free-image2video): 图片到视频生成技能\r\n- [jiuma-free-image-edit](https://clawhub.ai/dddcn1/jiuma-free-image-edit): 图片编辑技能\r\n- [jiuma-free-meta-human](https://clawhub.ai/dddcn1/jiuma-free-meta-human): 数字人视频生成技能\r\n- [jiuma-free-voice-clone](https://clawhub.ai/dddcn1/jiuma-free-voice-clone): 声音克隆、TTS技能\n\nFile v1.0.2:_meta.json\n\n{\n  \"ownerId\": \"kn71rvwzspjtjf23k8bfwabx1h83k632\",\n  \"slug\": \"jiuma-free-image-gen\",\n  \"version\": \"1.0.2\",\n  \"publishedAt\": 1775099151672\n}\n\nFile v1.0.2:LOGIN.md\n\n# 九马AI授权登录\r\n\r\n用于获取和管理九马AI服务的API访问密钥。通过扫码登录方式获取API密钥，使其他九马AI技能能够正常使用。\r\n\r\n## 核心功能\r\n\r\n1. **获取登录二维码**：生成九马AI平台的登录二维码和登录链接\r\n2. **检查登录状态**：获得二维码和登录链接之后，定时每分钟验证登录状态并获取API密钥\r\n3. **API密钥管理**：自动保存获取的API密钥到本地文件系统\r\n4. **无缝集成**：与其他九马AI技能（文生图、数字人、语音克隆等）无缝集成\r\n\r\n## 安装依赖\r\n\r\n```bash\r\n# 安装必要的Python依赖\r\npip install requests\r\n```\r\n\r\n## 使用方法\r\n\r\n### 命令行使用\r\n\r\n```bash\r\n# 1. 获取登录二维码和访问令牌\r\npython3 jiuma_auth_login.py --login\r\n\r\n# 2. 检查登录状态并获取API密钥\r\npython3 jiuma_auth_login.py --check --access_token \"<your_access_token>\"\r\n```\r\n\r\n### 完整登录流程示例\r\n\r\n```bash\r\n# 第一步：获取登录信息\r\npython3 jiuma_auth_login.py --login\r\n# 输出示例：\r\n# {\r\n#   \"status\": \"success\",\r\n#   \"message\": \"获取登录通行证成功\",\r\n#   \"data\": {\r\n#     \"login_qrcode\": \"https://cache.jiuma.com/static/uploads/20260331/69cb63596b230.png\",\r\n#     \"login_url\": \"https://console.jiuma.com/user/login?rand_string=69cb63585b3db\",\r\n#     \"access_token\": \"abc123xyz456\"\r\n#   }\r\n# }\r\n\r\n# 第二步：用手机扫描二维码或访问登录链接完成登录\r\n# 第三步：添加每分钟定时任务，验证登录状态并获取API密钥，或用户告知完成登录主动触发\r\npython3 jiuma_auth_login.py --check --access_token \"abc123xyz456\"\r\n# 输出示例：\r\n# {\r\n#   \"status\": \"success\",\r\n#   \"message\": \"登录成功，已保存api_key，可以继续使用九马AI工具\",\r\n#   \"data\": {}\r\n# }\r\n```\r\n\r\n### 在OpenClaw中使用\r\n\r\n```bash\r\n# 获取登录信息\r\nexec python3 /path/to/jiuma_auth_login.py --login\r\n\r\n# 检查登录状态\r\nexec python3 /path/to/jiuma_auth_login.py --check --access_token \"your_token_here\"\r\n```\r\n\r\n## 密钥存储\r\n\r\n技能会自动在以下位置保存API密钥：\r\n- **存储路径**: `~/.openclaw/workspace/.jiuma/jiuma_api_key`\r\n- **存储格式**: 纯文本格式保存API密钥\r\n- **权限**: 只有当前用户可以读取\r\n\r\n## 与其他九马AI技能的集成\r\n\r\n此技能获取的API密钥可以被其他九马AI技能使用：\r\n\r\n```bash\r\n# 1. 先获取API密钥\r\npython3 jiuma_auth_login.py --login\r\n# 然后用返回的access_token检查登录状态\r\npython3 jiuma_auth_login.py --check --access_token \"your_token\"\r\n\r\n# 2. 之后就可以使用其他九马AI技能\r\n# 如：文生图技能\r\npython3 jiuma_free_image_gen/agent.py --submit --text \"图片描述\"\r\n\r\n# 数字人生成技能\r\npython3 jiuma_free_meta_human/generate_video.py --action create --text \"视频内容\"\r\n```\r\n\r\n## 错误处理\r\n\r\n| 错误类型 | 描述 | 解决方案 |\r\n|---------|------|---------|\r\n| 网络超时 | 请求API超时 | 检查网络连接，重试操作 |\r\n| API返回错误 | API返回非200状态码 | 查看具体错误信息，联系九马AI支持 |\r\n| 登录状态无效 | access_token无效或已过期 | 重新获取登录二维码 |\r\n| 文件权限错误 | 无法保存API密钥 | 检查文件系统权限 |\r\n\r\n## 注意事项\r\n\r\n1. **API密钥安全**：获取的API密钥会自动保存在本地，请确保文件系统安全\r\n2. **登录时效**：登录二维码和access_token通常有有效期限制，建议尽快完成登录\r\n3. **网络要求**：需要能够访问九马AI API服务器（api.jiuma.com）\r\n4. **兼容性**：此技能需要Python 3.6+和requests库\n\nFile v1.0.2:skill-card.md\n\n## Description:\n\nJiuma AI's free image generation skill uses the Jiuma AI API to generate images from text prompts with configurable image dimensions.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[dddcn1](https://clawhub.ai/user/dddcn1)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal users and developers use this skill to submit text prompts to Jiuma AI, poll generation status, and retrieve generated image URLs. It is suited for agent workflows that need lightweight text-to-image generation with optional login for additional free usage.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Prompts and login workflow data are sent to Jiuma services.\n\nMitigation: Use the skill only when sharing that content with Jiuma is acceptable, and avoid prompts containing sensitive or personal information.\n\nRisk: The Jiuma API key is stored locally in plaintext without enforced private permissions.\n\nMitigation: Run the skill in an isolated environment and inspect or harden the key file permissions before use.\n\nRisk: The artifact documentation asks the agent to persist a memory entry.\n\nMitigation: Remove or ignore that memory-recording instruction before deployment.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/dddcn1/skills/jiuma-free-image-gen)\n- [Jiuma text-to-image submit API](https://api.jiuma.com/api/textImage/add)\n- [Jiuma text-to-image status API](https://api.jiuma.com/api/textImage/status)\n- [Jiuma login guide](artifact/LOGIN.md)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Markdown, Code, Shell commands, Configuration, Guidance]\n\n**Output Format:** [Markdown guidance with shell commands and JSON API responses]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [The runtime response includes task IDs for submitted jobs and image URLs when generation succeeds.]\n\n## Skill Version(s):\n\n1.0.2 (source: server release evidence)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nArchive v1.0.1: 6 files, 10341 bytes\n\nFiles: agent.py (6118b), LOGIN.md (3619b), login.py (1650b), skill.md (11348b), utils.py (3046b), _meta.json (139b)\n\nFile v1.0.1:skill.md\n\n---\r\nname: jiuma-free-image-gen\r\ndescription: 九马AI免费图片生成技能。使用九马AI API进行文本到图片的生成，支持自定义图片尺寸和提示词。当用户需要根据文本描述生成图片时使用此技能。\r\n---\r\n\r\n# 九马AI免费图片生成技能\r\n\r\n基于九马AI API的文本到图片生成技能。支持根据文本提示词生成高质量图片，并可自定义图片尺寸。\r\n\r\n## ⚠️ 重要提醒\r\n\r\n**免费使用次数限制**：九马AI提供有限的免费使用次数。当出现`FreeApiLimit`错误时，**必须**先完成登录流程：\r\n\r\n1. **获取登录信息**：`python3 login.py --login`\r\n2. **扫码登录**：用手机扫描返回的二维码完成九马AI平台注册/登录\r\n3. **获取API密钥**：`python3 login.py --check --access_token \"<your_token>\"`\r\n4. **正常使用**：之后即可获得更多免费次数使用文生图功能\r\n\r\n## 核心功能\r\n\r\n1. **文本到图片生成**: 根据文本描述生成相应的图片\r\n2. **自定义尺寸**: 支持自定义图片宽度和高度（最大832x832）\r\n3. **任务状态查询**: 提交任务后可以查询生成进度和结果\r\n4. **免费使用**: 限制级免费使用，无需API密钥，但免费用户在输出尺寸方面会有限制，使用并发高时需要排队等待；\r\n\r\n## 使用方法\r\n\r\n### 命令行使用\r\n\r\n```bash\r\n# 提交图片生成任务\r\npython3 agent.py --submit --text \"一只可爱的小猫在草地上玩耍\" --width 512 --height 512\r\n\r\n# 查询任务状态\r\npython3 agent.py --check --task_id \"202603263844232132\"\r\n```\r\n\r\n### 在OpenClaw中使用\r\n\r\n```python\r\n# 提交图片生成任务\r\nexec python3 ~/.openclaw/workspace/skills/jiuma-free-image-gen/agent.py --submit --text \"美丽的日落风景\" --width 832 --height 480\r\n\r\n# 查询任务状态\r\nexec python3 ~/.openclaw/workspace/skills/jiuma-free-image-gen/agent.py --check --task_id \"20260326486039011\"\r\n```\r\n\r\n## API说明\r\n\r\n### 提交图片生成API\r\n- **URL**: `POST https://api.jiuma.com/api/textImage/add`\r\n- **参数**:\r\n  - `text`: 图片描述文本（必需）\r\n  - `width`: 图片宽度（可选，默认832，最大832）\r\n  - `height`: 图片高度（可选，默认480，最大832）\r\n\r\n### 查询任务状态API\r\n- **URL**: `POST https://api.jiuma.com/api/textImage/status`\r\n- **参数**:\r\n  - `task_id`: 任务ID（必需）\r\n\r\n## 任务状态说明\r\n\r\n| 状态 | 含义 | 说明 |\r\n|------|------|------|\r\n| PENDING | 排队中 | 任务已提交，正在等待处理 |\r\n| RUNNING | 执行中 | 图片正在生成中 |\r\n| SUCCEEDED | 成功 | 图片生成完成，返回图片URL |\r\n| FAILED | 失败 | 图片生成失败，返回错误信息 |\r\n\r\n## 返回格式\r\n\r\n### 提交任务成功\r\n```json\r\n{\r\n  \"status\": \"success\",\r\n  \"message\": \"文生图任务提交成功\",\r\n  \"data\": {\r\n    \"task_id\": \"202603263844232132\"\r\n  }\r\n}\r\n```\r\n\r\n### 免API_KEY免费生成次数达到上限\r\n```json\r\n{\r\n  \"status\": \"FreeApiLimit\",\r\n  \"message\": \"免费使用次数达到上限，成为九马AI平台用户可获得更多使用次数\",\r\n  \"data\": {}\r\n}\r\n```\r\n\r\n### 查询任务成功（图片已生成）\r\n```json\r\n{\r\n  \"status\": \"success\",\r\n  \"message\": \"图片生成成功\",\r\n  \"data\": {\r\n    \"image_url\": \"https://cache.jiuma.com/static/uploads/20260326/69c4cc0c043e1.png\",\r\n    \"task_id\": \"20260326486039011\"\r\n  }\r\n}\r\n```\r\n\r\n### 查询任务排队/执行中\r\n```json\r\n{\r\n  \"status\": \"pending\",\r\n  \"message\": \"文生图任务排队中，请耐心等待\",\r\n  \"data\": {\r\n    \"task_id\": \"20260326486039011\"\r\n  }\r\n}\r\n```\r\n\r\n### 任务失败\r\n```json\r\n{\r\n  \"status\": \"failed\",\r\n  \"message\": \"图片生成失败: 具体错误信息\",\r\n  \"data\": {\r\n    \"task_id\": \"20260326486039011\"\r\n  }\r\n}\r\n```\r\n\r\n## 示例\r\n\r\n### 提交图片生成任务\r\n```bash\r\n$ python3 agent.py --submit --text \"一只可爱的小猫在草地上玩耍\" --width 512 --height 512\r\n\r\n# 输出示例\r\n{\r\n  \"status\": \"success\",\r\n  \"message\": \"文生图任务提交成功\",\r\n  \"data\": {\r\n    \"task_id\": \"202603263844232132\"\r\n  }\r\n}\r\n```\r\n\r\n### 查询任务状态\r\n```bash\r\n$ python3 agent.py --check --task_id \"202603263844232132\"\r\n\r\n# 输出示例（生成成功）\r\n{\r\n  \"status\": \"success\",\r\n  \"message\": \"图片生成成功\",\r\n  \"data\": {\r\n    \"image_url\": \"https://cache.jiuma.com/static/uploads/20260326/69c4cc0c043e1.png\",\r\n    \"task_id\": \"202603263844232132\"\r\n  }\r\n}\r\n\r\n# 输出示例（排队中）\r\n{\r\n  \"status\": \"pending\",\r\n  \"message\": \"文生图任务排队中，请耐心等待\",\r\n  \"data\": {\r\n    \"task_id\": \"202603263844232132\"\r\n  }\r\n}\r\n```\r\n\r\n## 脚本参数说明\r\n\r\n```bash\r\n--submit       提交图片生成任务（必需）\r\n--text         图片描述文本，对图片的详细描述（必需）\r\n--width        输出图片的宽度（可选，默认832，最大832）\r\n--height       输出图片的高度（可选，默认480，最大832）\r\n--check        查询任务生成状态（必需）\r\n--task_id      任务ID，用于查询任务进度（与--check一起使用）\r\n```\r\n\r\n## 使用流程\r\n\r\n1. **提交任务**:\r\n   - 使用 `--submit` 参数提交图片生成请求\r\n   - 提供详细的文本描述 `--text`\r\n   - 可选指定图片尺寸 `--width` 和 `--height`\r\n   - 获取返回的 `task_id`\r\n\r\n2. **查询状态**:\r\n   - 使用 `--check` 参数查询任务状态\r\n   - 提供 `--task_id` 参数指定要查询的任务\r\n   - 根据返回状态判断图片是否生成完成\r\n\r\n3. **获取图片**:\r\n   - 当状态为 `success` 时，从返回的 `image_url` 获取图片链接\r\n   - 图片通常在云端存储，可以直接下载使用\r\n\r\n## 依赖\r\n\r\n- Python 3.6+\r\n- requests库 (`pip install requests`)\r\n\r\n## 图片尺寸建议\r\n\r\n| 用途 | 建议尺寸 | 说明 |\r\n|------|----------|------|\r\n| 社交媒体头像 | 400x400 | 适合头像使用 |\r\n| 社交媒体帖子 | 1080x1080 | 方形图片 |\r\n| 手机壁纸 | 1080x1920 | 竖屏壁纸 |\r\n| 电脑壁纸 | 1920x1080 | 横屏壁纸 |\r\n| 文章配图 | 800x600 | 适合文章插图 |\r\n| 缩略图 | 200x200 | 小尺寸预览图 |\r\n\r\n**注意**: 最大尺寸限制为832x832，超过此尺寸会被API拒绝。\r\n\r\n## 提示词技巧\r\n\r\n### 有效的提示词示例\r\n- \"一只可爱的小猫在草地上玩耍，阳光明媚\"\r\n- \"未来城市夜景，霓虹灯光，赛博朋克风格\"\r\n- \"宁静的湖边日落，倒影，暖色调\"\r\n- \"抽象艺术，几何图形，鲜艳色彩\"\r\n- \"复古风格的老式相机，木纹背景\"\r\n\r\n### 提示词结构\r\n1. **主体**: 描述主要对象（猫、人物、建筑等）\r\n2. **环境**: 描述场景（草地、城市、室内等）\r\n3. **细节**: 添加具体细节（颜色、光线、风格等）\r\n4. **风格**: 指定艺术风格（写实、卡通、抽象等）\r\n\r\n## 处理API使用限制\r\n\r\n当免费使用次数达到上限时，可以通过登录九马AI平台获取API密钥继续使用：\r\n\r\n### 登录流程\r\n\r\n```bash\r\n# 第一步：获取登录二维码\r\npython3 login.py --login\r\n# 输出包含二维码链接和access_token\r\n\r\n# 第二步：用手机扫描二维码完成登录\r\n# 访问输出的login_url或用手机扫描login_qrcode图片\r\n\r\n# 第三步：定时每分钟检查状态并获取API密钥\r\npython3 login.py --check --access_token \"<your_access_token>\"\r\n# 成功后会保存API密钥到本地\r\n\r\n# 第四步：重新使用图片编辑功能\r\npython3 agent.py --submit --text \"图片编辑描述\"\r\n```\r\n\r\n### 注意事项\r\n- API密钥获取后自动保存，无需重复登录\r\n- 登录后可享受更多使用次数和更快的处理速度\r\n- 建议在遇到使用限制时再登录，无需提前操作\r\n\r\n## 故障排除\r\n\r\n### 1. 提交任务失败\r\n- **错误**: \"请输入需要生成的图片的描述\"\r\n  - 原因: `--text` 参数为空\r\n  - 解决: 提供有效的图片描述文本\r\n\r\n- **错误**: \"输出图片最大尺寸限制在832以内\"\r\n  - 原因: `--width` 或 `--height` 超过832\r\n  - 解决: 调整图片尺寸到832以内\r\n\r\n- **错误**: \"请求远程API失败\"\r\n  - 原因: 网络连接问题或API服务异常\r\n  - 解决: 检查网络连接，稍后重试\r\n\r\n- **FreeApiLimit**: \"免费使用次数达到上限，成为九马AI平台用户可获得更多使用次数\"\r\n  - **原因**: 九马AI提供一定的免费使用次数，达到上限后需要登录获取API密钥\r\n  - **解决**：必须完成以下登录流程：\r\n    1. 运行 `python3 login.py --login` 获取登录二维码和access_token\r\n    2. 用手机扫描二维码或访问登录链接完成九马AI平台注册/登录\r\n    3. 运行 `python3 login.py --check --access_token \"<your_token>\"` 获取并保存API密钥\r\n    4. 之后agent.py会自动使用保存的API密钥\r\n    5. 关于登录的更多详细内容查看LOGIN.md\r\n\r\n### 2. 查询任务失败\r\n- **错误**: \"任务ID不能为空\"\r\n  - 原因: 未提供 `--task_id` 参数\r\n  - 解决: 提供正确的任务ID\r\n\r\n- **错误**: \"请求远程API失败\"\r\n  - 原因: 网络问题或API服务异常\r\n  - 解决: 检查网络连接，稍后重试\r\n\r\n### 3. 图片生成失败\r\n- **状态**: \"FAILED\"\r\n  - 原因: 内容违反政策、技术问题或服务器错误\r\n  - 解决: 修改提示词内容，避免敏感或违规内容，重新提交\r\n\r\n### 4. 长时间排队\r\n- **状态**: \"PENDING\" 或 \"RUNNING\" 时间过长\r\n  - 原因: 服务器负载高，任务需要排队\r\n  - 解决: 耐心等待，定期查询状态\r\n\r\n## 性能优化建议\r\n\r\n1. **合理使用尺寸**: 较小的图片尺寸生成更快\r\n2. **简洁的提示词**: 过于复杂的提示词可能增加处理时间\r\n3. **避免高峰期**: 在非高峰期使用可能获得更快响应\r\n4. **批量处理**: 可以同时提交多个任务，但需注意API限制\r\n\r\n## 注意\r\n\r\n- **限制级免费**: 无需API密钥\r\n- **尺寸限制**: 最大832x832像素\r\n- **内容政策**: 不得生成违法、违规或不适当的内容\r\n- **等待时间**: 生成时间可能从几十秒到几分钟不等，取决于服务器负载\r\n- **图片保存**: 生成的图片URL有时效性，建议及时下载保存\r\n- **隐私保护**: 避免使用包含个人隐私信息的提示词\r\n\r\n## 高级功能\r\n\r\n### 1. 自动化状态监控\r\n可以编写脚本定期检查任务状态并下载完成的图片\r\n\r\n### 2. 图片后处理\r\n生成的图片可以进一步使用其他工具进行处理（裁剪、调整、滤镜等）\r\n\r\n## 安装\r\n\r\n1.直接下载https://clawhub.ai/dddcn1/jiuma-free-image-gen页面的zip包安装，不要更改代码\r\n2.记录到memory中，方便用户需要使用时能快速找到\r\n\r\n## 更新\r\n\r\n当技能需要更新时，可以：\r\n1. 重新下载最新版本的agent.py文件，从https://clawhub.ai/dddcn1/jiuma-free-image-gen\r\n2. 检查API是否有变化\r\n3. 更新本SKILL.md文档\r\n\r\n## 支持与反馈\r\n\r\n如遇到问题或需要帮助：\r\n1. 查看故障排除部分\r\n2. 检查网络连接\r\n3. 确认参数使用正确\r\n4. 如问题持续，可以考虑等待一段时间后重试\r\n\r\n## 相关技能\r\n\r\n- [jiuma-free-image2video](https://clawhub.ai/dddcn1/jiuma-free-image2video): 图片到视频生成技能\r\n- [jiuma-free-image-edit](https://clawhub.ai/dddcn1/jiuma-free-image-edit): 图片编辑技能\r\n- [jiuma-free-meta-human](https://clawhub.ai/dddcn1/jiuma-free-meta-human): 数字人视频生成技能\r\n- [jiuma-free-voice-clone](https://clawhub.ai/dddcn1/jiuma-free-voice-clone): 声音克隆、TTS技能\n\nFile v1.0.1:_meta.json\n\n{\n  \"ownerId\": \"kn71rvwzspjtjf23k8bfwabx1h83k632\",\n  \"slug\": \"jiuma-free-image-gen\",\n  \"version\": \"1.0.1\",\n  \"publishedAt\": 1775094645150\n}\n\nFile v1.0.1:LOGIN.md\n\n# 九马AI授权登录\r\n\r\n用于获取和管理九马AI服务的API访问密钥。通过扫码登录方式获取API密钥，使其他九马AI技能能够正常使用。\r\n\r\n## 核心功能\r\n\r\n1. **获取登录二维码**：生成九马AI平台的登录二维码和登录链接\r\n2. **检查登录状态**：获得二维码和登录链接之后，定时每分钟验证登录状态并获取API密钥\r\n3. **API密钥管理**：自动保存获取的API密钥到本地文件系统\r\n4. **无缝集成**：与其他九马AI技能（文生图、数字人、语音克隆等）无缝集成\r\n\r\n## 安装依赖\r\n\r\n```bash\r\n# 安装必要的Python依赖\r\npip install requests\r\n```\r\n\r\n## 使用方法\r\n\r\n### 命令行使用\r\n\r\n```bash\r\n# 1. 获取登录二维码和访问令牌\r\npython3 jiuma_auth_login.py --login\r\n\r\n# 2. 检查登录状态并获取API密钥\r\npython3 jiuma_auth_login.py --check --access_token \"<your_access_token>\"\r\n```\r\n\r\n### 完整登录流程示例\r\n\r\n```bash\r\n# 第一步：获取登录信息\r\npython3 jiuma_auth_login.py --login\r\n# 输出示例：\r\n# {\r\n#   \"status\": \"success\",\r\n#   \"message\": \"获取登录通行证成功\",\r\n#   \"data\": {\r\n#     \"login_qrcode\": \"https://cache.jiuma.com/static/uploads/20260331/69cb63596b230.png\",\r\n#     \"login_url\": \"https://console.jiuma.com/user/login?rand_string=69cb63585b3db\",\r\n#     \"access_token\": \"abc123xyz456\"\r\n#   }\r\n# }\r\n\r\n# 第二步：用手机扫描二维码或访问登录链接完成登录\r\n# 第三步：添加每分钟定时任务，验证登录状态并获取API密钥，或用户告知完成登录主动触发\r\npython3 jiuma_auth_login.py --check --access_token \"abc123xyz456\"\r\n# 输出示例：\r\n# {\r\n#   \"status\": \"success\",\r\n#   \"message\": \"登录成功，已保存api_key，可以继续使用九马AI工具\",\r\n#   \"data\": {}\r\n# }\r\n```\r\n\r\n### 在OpenClaw中使用\r\n\r\n```bash\r\n# 获取登录信息\r\nexec python3 /path/to/jiuma_auth_login.py --login\r\n\r\n# 检查登录状态\r\nexec python3 /path/to/jiuma_auth_login.py --check --access_token \"your_token_here\"\r\n```\r\n\r\n## 密钥存储\r\n\r\n技能会自动在以下位置保存API密钥：\r\n- **存储路径**: `~/.openclaw/workspace/.jiuma/jiuma_api_key`\r\n- **存储格式**: 纯文本格式保存API密钥\r\n- **权限**: 只有当前用户可以读取\r\n\r\n## 与其他九马AI技能的集成\r\n\r\n此技能获取的API密钥可以被其他九马AI技能使用：\r\n\r\n```bash\r\n# 1. 先获取API密钥\r\npython3 jiuma_auth_login.py --login\r\n# 然后用返回的access_token检查登录状态\r\npython3 jiuma_auth_login.py --check --access_token \"your_token\"\r\n\r\n# 2. 之后就可以使用其他九马AI技能\r\n# 如：文生图技能\r\npython3 jiuma_free_image_gen/agent.py --submit --text \"图片描述\"\r\n\r\n# 数字人生成技能\r\npython3 jiuma_free_meta_human/generate_video.py --action create --text \"视频内容\"\r\n```\r\n\r\n## 错误处理\r\n\r\n| 错误类型 | 描述 | 解决方案 |\r\n|---------|------|---------|\r\n| 网络超时 | 请求API超时 | 检查网络连接，重试操作 |\r\n| API返回错误 | API返回非200状态码 | 查看具体错误信息，联系九马AI支持 |\r\n| 登录状态无效 | access_token无效或已过期 | 重新获取登录二维码 |\r\n| 文件权限错误 | 无法保存API密钥 | 检查文件系统权限 |\r\n\r\n## 注意事项\r\n\r\n1. **API密钥安全**：获取的API密钥会自动保存在本地，请确保文件系统安全\r\n2. **登录时效**：登录二维码和access_token通常有有效期限制，建议尽快完成登录\r\n3. **网络要求**：需要能够访问九马AI API服务器（api.jiuma.com）\r\n4. **兼容性**：此技能需要Python 3.6+和requests库\n\nArchive v1.0.0: 3 files, 6175 bytes\n\nFiles: agent.py (9724b), skill.md (8524b), _meta.json (139b)\n\nFile v1.0.0:skill.md\n\n---\r\nname: jiuma-free-image-gen\r\ndescription: 九马AI免费图片生成技能。使用九马AI API进行文本到图片的生成，支持自定义图片尺寸和提示词。当用户需要根据文本描述生成图片时使用此技能。\r\n---\r\n\r\n# 九马AI免费图片生成技能\r\n\r\n基于九马AI API的文本到图片生成技能。支持根据文本提示词生成高质量图片，并可自定义图片尺寸。\r\n\r\n## 核心功能\r\n\r\n1. **文本到图片生成**: 根据文本描述生成相应的图片\r\n2. **自定义尺寸**: 支持自定义图片宽度和高度（最大832x832）\r\n3. **任务状态查询**: 提交任务后可以查询生成进度和结果\r\n4. **免费使用**: 限制级免费使用，无需API密钥，但免费用户在输出尺寸方面会有限制，使用并发高时需要排队等待；\r\n\r\n## 使用方法\r\n\r\n### 命令行使用\r\n\r\n```bash\r\n# 提交图片生成任务\r\npython3 agent.py --submit --text \"一只可爱的小猫在草地上玩耍\" --width 512 --height 512\r\n\r\n# 查询任务状态\r\npython3 agent.py --check --task_id \"202603263844232132\"\r\n```\r\n\r\n### 在OpenClaw中使用\r\n\r\n```python\r\n# 提交图片生成任务\r\nexec python3 ~/.openclaw/workspace/skills/jiuma-free-image-gen/agent.py --submit --text \"美丽的日落风景\" --width 832 --height 480\r\n\r\n# 查询任务状态\r\nexec python3 ~/.openclaw/workspace/skills/jiuma-free-image-gen/agent.py --check --task_id \"20260326486039011\"\r\n```\r\n\r\n## API说明\r\n\r\n### 提交图片生成API\r\n- **URL**: `POST https://api.jiuma.com/api/textImage/add`\r\n- **参数**:\r\n  - `text`: 图片描述文本（必需）\r\n  - `width`: 图片宽度（可选，默认832，最大832）\r\n  - `height`: 图片高度（可选，默认480，最大832）\r\n\r\n### 查询任务状态API\r\n- **URL**: `POST https://api.jiuma.com/api/textImage/status`\r\n- **参数**:\r\n  - `task_id`: 任务ID（必需）\r\n\r\n## 任务状态说明\r\n\r\n| 状态 | 含义 | 说明 |\r\n|------|------|------|\r\n| PENDING | 排队中 | 任务已提交，正在等待处理 |\r\n| RUNNING | 执行中 | 图片正在生成中 |\r\n| SUCCEEDED | 成功 | 图片生成完成，返回图片URL |\r\n| FAILED | 失败 | 图片生成失败，返回错误信息 |\r\n\r\n## 返回格式\r\n\r\n### 提交任务成功\r\n```json\r\n{\r\n  \"status\": \"success\",\r\n  \"message\": \"文生图任务提交成功\",\r\n  \"data\": {\r\n    \"task_id\": \"202603263844232132\"\r\n  }\r\n}\r\n```\r\n\r\n### 查询任务成功（图片已生成）\r\n```json\r\n{\r\n  \"status\": \"success\",\r\n  \"message\": \"图片生成成功\",\r\n  \"data\": {\r\n    \"image_url\": \"https://cache.jiuma.com/static/uploads/20260326/69c4cc0c043e1.png\",\r\n    \"task_id\": \"20260326486039011\"\r\n  }\r\n}\r\n```\r\n\r\n### 查询任务排队/执行中\r\n```json\r\n{\r\n  \"status\": \"pending\",\r\n  \"message\": \"文生图任务排队中，请耐心等待\",\r\n  \"data\": {\r\n    \"task_id\": \"20260326486039011\"\r\n  }\r\n}\r\n```\r\n\r\n### 任务失败\r\n```json\r\n{\r\n  \"status\": \"failed\",\r\n  \"message\": \"图片生成失败: 具体错误信息\",\r\n  \"data\": {\r\n    \"task_id\": \"20260326486039011\"\r\n  }\r\n}\r\n```\r\n\r\n## 示例\r\n\r\n### 提交图片生成任务\r\n```bash\r\n$ python3 agent.py --submit --text \"一只可爱的小猫在草地上玩耍\" --width 512 --height 512\r\n\r\n# 输出示例\r\n{\r\n  \"status\": \"success\",\r\n  \"message\": \"文生图任务提交成功\",\r\n  \"data\": {\r\n    \"task_id\": \"202603263844232132\"\r\n  }\r\n}\r\n```\r\n\r\n### 查询任务状态\r\n```bash\r\n$ python3 agent.py --check --task_id \"202603263844232132\"\r\n\r\n# 输出示例（生成成功）\r\n{\r\n  \"status\": \"success\",\r\n  \"message\": \"图片生成成功\",\r\n  \"data\": {\r\n    \"image_url\": \"https://cache.jiuma.com/static/uploads/20260326/69c4cc0c043e1.png\",\r\n    \"task_id\": \"202603263844232132\"\r\n  }\r\n}\r\n\r\n# 输出示例（排队中）\r\n{\r\n  \"status\": \"pending\",\r\n  \"message\": \"文生图任务排队中，请耐心等待\",\r\n  \"data\": {\r\n    \"task_id\": \"202603263844232132\"\r\n  }\r\n}\r\n```\r\n\r\n## 脚本参数说明\r\n\r\n```bash\r\n--submit       提交图片生成任务（必需）\r\n--text         图片描述文本，对图片的详细描述（必需）\r\n--width        输出图片的宽度（可选，默认832，最大832）\r\n--height       输出图片的高度（可选，默认480，最大832）\r\n--check        查询任务生成状态（必需）\r\n--task_id      任务ID，用于查询任务进度（与--check一起使用）\r\n```\r\n\r\n## 使用流程\r\n\r\n1. **提交任务**:\r\n   - 使用 `--submit` 参数提交图片生成请求\r\n   - 提供详细的文本描述 `--text`\r\n   - 可选指定图片尺寸 `--width` 和 `--height`\r\n   - 获取返回的 `task_id`\r\n\r\n2. **查询状态**:\r\n   - 使用 `--check` 参数查询任务状态\r\n   - 提供 `--task_id` 参数指定要查询的任务\r\n   - 根据返回状态判断图片是否生成完成\r\n\r\n3. **获取图片**:\r\n   - 当状态为 `success` 时，从返回的 `image_url` 获取图片链接\r\n   - 图片通常在云端存储，可以直接下载使用\r\n\r\n## 依赖\r\n\r\n- Python 3.6+\r\n- requests库 (`pip install requests`)\r\n\r\n## 图片尺寸建议\r\n\r\n| 用途 | 建议尺寸 | 说明 |\r\n|------|----------|------|\r\n| 社交媒体头像 | 400x400 | 适合头像使用 |\r\n| 社交媒体帖子 | 1080x1080 | 方形图片 |\r\n| 手机壁纸 | 1080x1920 | 竖屏壁纸 |\r\n| 电脑壁纸 | 1920x1080 | 横屏壁纸 |\r\n| 文章配图 | 800x600 | 适合文章插图 |\r\n| 缩略图 | 200x200 | 小尺寸预览图 |\r\n\r\n**注意**: 最大尺寸限制为832x832，超过此尺寸会被API拒绝。\r\n\r\n## 提示词技巧\r\n\r\n### 有效的提示词示例\r\n- \"一只可爱的小猫在草地上玩耍，阳光明媚\"\r\n- \"未来城市夜景，霓虹灯光，赛博朋克风格\"\r\n- \"宁静的湖边日落，倒影，暖色调\"\r\n- \"抽象艺术，几何图形，鲜艳色彩\"\r\n- \"复古风格的老式相机，木纹背景\"\r\n\r\n### 提示词结构\r\n1. **主体**: 描述主要对象（猫、人物、建筑等）\r\n2. **环境**: 描述场景（草地、城市、室内等）\r\n3. **细节**: 添加具体细节（颜色、光线、风格等）\r\n4. **风格**: 指定艺术风格（写实、卡通、抽象等）\r\n\r\n## 故障排除\r\n\r\n### 1. 提交任务失败\r\n- **错误**: \"请输入需要生成的图片的描述\"\r\n  - 原因: `--text` 参数为空\r\n  - 解决: 提供有效的图片描述文本\r\n\r\n- **错误**: \"输出图片最大尺寸限制在832以内\"\r\n  - 原因: `--width` 或 `--height` 超过832\r\n  - 解决: 调整图片尺寸到832以内\r\n\r\n- **错误**: \"请求远程API失败\"\r\n  - 原因: 网络连接问题或API服务异常\r\n  - 解决: 检查网络连接，稍后重试\r\n\r\n### 2. 查询任务失败\r\n- **错误**: \"任务ID不能为空\"\r\n  - 原因: 未提供 `--task_id` 参数\r\n  - 解决: 提供正确的任务ID\r\n\r\n- **错误**: \"请求远程API失败\"\r\n  - 原因: 网络问题或API服务异常\r\n  - 解决: 检查网络连接，稍后重试\r\n\r\n### 3. 图片生成失败\r\n- **状态**: \"FAILED\"\r\n  - 原因: 内容违反政策、技术问题或服务器错误\r\n  - 解决: 修改提示词内容，避免敏感或违规内容，重新提交\r\n\r\n### 4. 长时间排队\r\n- **状态**: \"PENDING\" 或 \"RUNNING\" 时间过长\r\n  - 原因: 服务器负载高，任务需要排队\r\n  - 解决: 耐心等待，定期查询状态\r\n\r\n## 性能优化建议\r\n\r\n1. **合理使用尺寸**: 较小的图片尺寸生成更快\r\n2. **简洁的提示词**: 过于复杂的提示词可能增加处理时间\r\n3. **避免高峰期**: 在非高峰期使用可能获得更快响应\r\n4. **批量处理**: 可以同时提交多个任务，但需注意API限制\r\n\r\n## 注意\r\n\r\n- **限制级免费**: 无需API密钥\r\n- **尺寸限制**: 最大832x832像素\r\n- **内容政策**: 不得生成违法、违规或不适当的内容\r\n- **等待时间**: 生成时间可能从几十秒到几分钟不等，取决于服务器负载\r\n- **图片保存**: 生成的图片URL有时效性，建议及时下载保存\r\n- **隐私保护**: 避免使用包含个人隐私信息的提示词\r\n\r\n## 高级功能\r\n\r\n### 1. 自动化状态监控\r\n可以编写脚本定期检查任务状态并下载完成的图片\r\n\r\n### 2. 图片后处理\r\n生成的图片可以进一步使用其他工具进行处理（裁剪、调整、滤镜等）\r\n\r\n## 更新\r\n\r\n当技能需要更新时，可以：\r\n1. 重新下载最新版本的agent.py文件，从https://clawhub.ai/dddcn1/jiuma-free-image-gen\r\n2. 检查API是否有变化\r\n3. 更新本SKILL.md文档\r\n\r\n## 支持与反馈\r\n\r\n如遇到问题或需要帮助：\r\n1. 查看故障排除部分\r\n2. 检查网络连接\r\n3. 确认参数使用正确\r\n4. 如问题持续，可以考虑等待一段时间后重试\r\n\r\n---\n\nFile v1.0.0:_meta.json\n\n{\n  \"ownerId\": \"kn71rvwzspjtjf23k8bfwabx1h83k632\",\n  \"slug\": \"jiuma-free-image-gen\",\n  \"version\": \"1.0.0\",\n  \"publishedAt\": 1774508998907\n}","readmeExcerpt":"Skill: 九马免费文生图 Owner: dddcn1 Summary: 九马AI免费图片生成技能。使用九马AI API进行文本到图片的生成，支持自定义图片尺寸和提示词。当用户需要根据文本描述生成图片时使用此技能。Jiuma AI's free image generation skill. Utilize the Jiuma AI API to generate images fro... Tags: latest:1.0.2 Version history: v1.0.2 | 2026-04-02T03:05:51.672Z | user - Added concise English description to the SKILL.md front matter, making the skill more accessible to non-Chinese users. - No functional changes","codeSnippets":[],"executableExamples":[],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[{"path":"skill.md","content":"---\r\nname: jiuma-free-image-gen\r\ndescription: 九马AI免费图片生成技能。使用九马AI API进行文本到图片的生成，支持自定义图片尺寸和提示词。当用户需要根据文本描述生成图片时使用此技能。Jiuma AI's free image generation skill. Utilize the Jiuma AI API to generate images from text, supporting customizable image sizes and prompt words. This skill is employed when users need to generate images based on text descriptions.\r\n---\r\n\r\n# 九马AI免费图片生成技能\r\n\r\n基于九马AI API的文本到图片生成技能。支持根据文本提示词生成高质量图片，并可自定义图片尺寸。\r\n\r\n## ⚠️ 重要提醒\r\n\r\n**免费使用次数限制**：九马AI提供有限的免费使用次数。当出现`FreeApiLimit`错误时，**必须**先完成登录流程：\r\n\r\n1. **获取登录信息**：`python3 login.py --login`\r\n2. **扫码登录**：用手机扫描返回的二维码完成九马AI平台注册/登录\r\n3. **获取API密钥**：`python3 login.py --check --access_token \"<your_token>\"`\r\n4. **正常使用**：之后即可获得更多免费次数使用文生图功能\r\n\r\n## 核心功能\r\n\r\n1. **文本到图片生成**: 根据文本描述生成相应的图片\r\n2. **自定义尺寸**: 支持自定义图片宽度和高度（最大832x832）\r\n3. **任务状态查询**: 提交任务后可以查询生成进度和结果\r\n4. **免费使用**: 限制级免费使用，无需API密钥，但免费用户在输出尺寸方面会有限制，使用并发高时需要排队等待；\r\n\r\n## 使用方法\r\n\r\n### 命令行使用\r\n\r\n```bash\r\n# 提交图片生成任务\r\npython3 agent.py --submit --text \"一只可爱的小猫在草地上玩耍\" --width 512 --height 512\r\n\r\n# 查询任务状态\r\npython3 agent.py --check --task_id \"202603263844232132\"\r\n```\r\n\r\n### 在OpenClaw中使用\r\n\r\n```python\r\n# 提交图片生成任务\r\nexec python3 ~/.openclaw/workspace/skills/jiuma-free-image-gen/agent.py --submit --text \"美丽的日落风景\" --width 832 --height 480\r\n\r\n# 查询任务状态\r\nexec python3 ~/.openclaw/workspace/skills/jiuma-free-image-gen/agent.py --check --task_id \"20260326486039011\"\r\n```\r\n\r\n## API说明\r\n\r\n### 提交图片生成API\r\n- **URL**: `POST https://api.jiuma.com/api/textImage/add`\r\n- **参数**:\r\n  - `text`: 图片描述文本（必需）\r\n  - `width`: 图片宽度（可选，默认832，最大832）\r\n  - `height`: 图片高度（可选，默认480，最大832）\r\n\r\n### 查询任务状态API\r\n- **URL**: `POST https://api.jiuma.com/api/textImage/status`\r\n- **参数**:\r\n  - `task_id`: 任务ID（必需）\r\n\r\n## 任务状态说明\r\n\r\n| 状态 | 含义 | 说明 |\r\n|------|------|------|\r\n| PENDING | 排队中 | 任务已提交，正在等待处理 |\r\n| RUNNING | 执行中 | 图片正在生成中 |\r\n| SUCCEEDED | 成功 | 图片生成完成，返回图片URL |\r\n| FAILED | 失败 | 图片生成失败，返回错误信息 |\r\n\r\n## 返回格式\r\n\r\n### 提交任务成功\r\n```json\r\n{\r\n  \"status\": \"success\",\r\n  \"message\": \"文生图任务提交成功\",\r\n  \"data\": {\r\n    \"task_id\": \"202603263844232132\"\r\n  }\r\n}\r\n```\r\n\r\n### 免API_KEY免费生成次数达到上限\r\n```json\r\n{\r\n  \"status\": \"FreeApiLimit\",\r\n  \"message\": \"免费使用次数达到上限，成为九马AI平台用户可获得更多使用次数\",\r\n  \"data\": {}\r\n}\r\n```\r\n\r\n### 查询任务成功（图片已生成）\r\n```json\r\n{\r\n  \"status\": \"success\",\r\n  \"message\": \"图片生成成功\",\r\n  \"data\": {\r\n    \"image_url\": \"https://cache.jiuma.com/static/uploads/20260326/69c4cc0c043e1.png\",\r\n    \"task_id\": \"20260326486039011\"\r\n  }\r\n}\r\n```\r\n\r\n### 查询任务排队/执行中\r\n```json\r\n{\r\n  \"status\": \"pending\",\r\n  \"message\": \"文生图任务排队中，请耐心等待\",\r\n  \"data\": {\r\n    \"task_id\": \"20260326486039011\"\r\n  }\r\n}\r\n```\r\n\r\n### 任务失败\r\n```json\r\n{\r\n  \"status\": \"failed\",\r\n  \"message\": \"图片生成失败: 具体错误信息\",\r\n  \"data\": {\r\n    \"task_id\": \"20260326486039011\"\r\n  }\r\n}\r\n```\r\n\r\n## 示例\r\n\r\n### 提交图片生成任务\r\n```bash\r\n$ python3 agent.py --submit --text \"一只可爱的小猫在草地上玩耍\" --width 512 --height 512\r\n\r\n# 输出示例\r\n{\r\n  \"status\": \"success\",\r\n  \"message\": \"文生图任务提交成功\",\r\n  \"data\": {\r\n    \"task_id\": \"202603263844232132\"\r\n  }\r\n}\r\n```\r\n\r\n### 查询任务状态\r\n```bash\r\n$ python3 agent.py --check --task_id \"202603263844232132\"\r\n\r\n# 输出示"},{"path":"_meta.json","content":"{\n  \"ownerId\": \"kn71rvwzspjtjf23k8bfwabx1h83k632\",\n  \"slug\": \"jiuma-free-image-gen\",\n  \"version\": \"1.0.2\",\n  \"publishedAt\": 1775099151672\n}"},{"path":"LOGIN.md","content":"# 九马AI授权登录\r\n\r\n用于获取和管理九马AI服务的API访问密钥。通过扫码登录方式获取API密钥，使其他九马AI技能能够正常使用。\r\n\r\n## 核心功能\r\n\r\n1. **获取登录二维码**：生成九马AI平台的登录二维码和登录链接\r\n2. **检查登录状态**：获得二维码和登录链接之后，定时每分钟验证登录状态并获取API密钥\r\n3. **API密钥管理**：自动保存获取的API密钥到本地文件系统\r\n4. **无缝集成**：与其他九马AI技能（文生图、数字人、语音克隆等）无缝集成\r\n\r\n## 安装依赖\r\n\r\n```bash\r\n# 安装必要的Python依赖\r\npip install requests\r\n```\r\n\r\n## 使用方法\r\n\r\n### 命令行使用\r\n\r\n```bash\r\n# 1. 获取登录二维码和访问令牌\r\npython3 jiuma_auth_login.py --login\r\n\r\n# 2. 检查登录状态并获取API密钥\r\npython3 jiuma_auth_login.py --check --access_token \"<your_access_token>\"\r\n```\r\n\r\n### 完整登录流程示例\r\n\r\n```bash\r\n# 第一步：获取登录信息\r\npython3 jiuma_auth_login.py --login\r\n# 输出示例：\r\n# {\r\n#   \"status\": \"success\",\r\n#   \"message\": \"获取登录通行证成功\",\r\n#   \"data\": {\r\n#     \"login_qrcode\": \"https://cache.jiuma.com/static/uploads/20260331/69cb63596b230.png\",\r\n#     \"login_url\": \"https://console.jiuma.com/user/login?rand_string=69cb63585b3db\",\r\n#     \"access_token\": \"abc123xyz456\"\r\n#   }\r\n# }\r\n\r\n# 第二步：用手机扫描二维码或访问登录链接完成登录\r\n# 第三步：添加每分钟定时任务，验证登录状态并获取API密钥，或用户告知完成登录主动触发\r\npython3 jiuma_auth_login.py --check --access_token \"abc123xyz456\"\r\n# 输出示例：\r\n# {\r\n#   \"status\": \"success\",\r\n#   \"message\": \"登录成功，已保存api_key，可以继续使用九马AI工具\",\r\n#   \"data\": {}\r\n# }\r\n```\r\n\r\n### 在OpenClaw中使用\r\n\r\n```bash\r\n# 获取登录信息\r\nexec python3 /path/to/jiuma_auth_login.py --login\r\n\r\n# 检查登录状态\r\nexec python3 /path/to/jiuma_auth_login.py --check --access_token \"your_token_here\"\r\n```\r\n\r\n## 密钥存储\r\n\r\n技能会自动在以下位置保存API密钥：\r\n- **存储路径**: `~/.openclaw/workspace/.jiuma/jiuma_api_key`\r\n- **存储格式**: 纯文本格式保存API密钥\r\n- **权限**: 只有当前用户可以读取\r\n\r\n## 与其他九马AI技能的集成\r\n\r\n此技能获取的API密钥可以被其他九马AI技能使用：\r\n\r\n```bash\r\n# 1. 先获取API密钥\r\npython3 jiuma_auth_login.py --login\r\n# 然后用返回的access_token检查登录状态\r\npython3 jiuma_auth_login.py --check --access_token \"your_token\"\r\n\r\n# 2. 之后就可以使用其他九马AI技能\r\n# 如：文生图技能\r\npython3 jiuma_free_image_gen/agent.py --submit --text \"图片描述\"\r\n\r\n# 数字人生成技能\r\npython3 jiuma_free_meta_human/generate_video.py --action create --text \"视频内容\"\r\n```\r\n\r\n## 错误处理\r\n\r\n| 错误类型 | 描述 | 解决方案 |\r\n|---------|------|---------|\r\n| 网络超时 | 请求API超时 | 检查网络连接，重试操作 |\r\n| API返回错误 | API返回非200状态码 | 查看具体错误信息，联系九马AI支持 |\r\n| 登录状态无效 | access_token无效或已过期 | 重新获取登录二维码 |\r\n| 文件权限错误 | 无法保存API密钥 | 检查文件系统权限 |\r\n\r\n## 注意事项\r\n\r\n1. **API密钥安全**：获取的API密钥会自动保存在本地，请确保文件系统安全\r\n2. **登录时效**：登录二维码和access_token通常有有效期限制，建议尽快完成登录\r\n3. **网络要求**：需要能够访问九马AI API服务器（api.jiuma.com）\r\n4. **兼容性**：此技能需要Python 3.6+和requests库"},{"path":"skill-card.md","content":"## Description:\n\nJiuma AI's free image generation skill uses the Jiuma AI API to generate images from text prompts with configurable image dimensions.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[dddcn1](https://clawhub.ai/user/dddcn1)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal users and developers use this skill to submit text prompts to Jiuma AI, poll generation status, and retrieve generated image URLs. It is suited for agent workflows that need lightweight text-to-image generation with optional login for additional free usage.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Prompts and login workflow data are sent to Jiuma services.\n\nMitigation: Use the skill only when sharing that content with Jiuma is acceptable, and avoid prompts containing sensitive or personal information.\n\nRisk: The Jiuma API key is stored locally in plaintext without enforced private permissions.\n\nMitigation: Run the skill in an isolated environment and inspect or harden the key file permissions before use.\n\nRisk: The artifact documentation asks the agent to persist a memory entry.\n\nMitigation: Remove or ignore that memory-recording instruction before deployment.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/dddcn1/skills/jiuma-free-image-gen)\n- [Jiuma text-to-image submit API](https://api.jiuma.com/api/textImage/add)\n- [Jiuma text-to-image status API](https://api.jiuma.com/api/textImage/status)\n- [Jiuma login guide](artifact/LOGIN.md)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Markdown, Code, Shell commands, Configuration, Guidance]\n\n**Output Format:** [Markdown guidance with shell commands and JSON API responses]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [The runtime response includes task IDs for submitted jobs and image URLs when generation succeeds.]\n\n## Skill Version(s):\n\n1.0.2 (source: server release evidence)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment."}],"languages":[],"docsSourceLabel":"CLAWHUB","editorialOverview":"九马AI免费图片生成技能。使用九马AI API进行文本到图片的生成，支持自定义图片尺寸和提示词。当用户需要根据文本描述生成图片时使用此技能。Jiuma AI's free image generation skill. Utilize the Jiuma AI API to generate images fro... Skill: 九马免费文生图 Owner: dddcn1 Summary: 九马AI免费图片生成技能。使用九马AI API进行文本到图片的生成，支持自定义图片尺寸和提示词。当用户需要根据文本描述生成图片时使用此技能。Jiuma AI's free image generation skill. Utilize the Jiuma AI API to generate images fro... Tags: latest:1.0.2 Version history: v1.0.2 | 2026-04-02T03:05:51.672Z | user - Added concise English description to the SKILL.md front matter, making the skill more accessible to non-Chinese users. - No functional changes","editorialQuality":{"score":100,"threshold":65,"status":"ready","wordCount":1015,"uniquenessScore":49,"reasons":[]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-10-09T21:58:00.075Z","emptyReason":"No screenshots, media assets, or demo links are available."},"primaryImageUrl":null,"mediaAssetCount":0,"assets":[],"demoUrl":null},"ownerResources":{"evidence":{"source":"unclaimed","verified":false,"confidence":"low","updatedAt":"2026-10-09T21:58:00.075Z","emptyReason":"This page has not been claimed by the agent owner."},"hasCustomPage":false,"customPageUpdatedAt":null,"customLinks":[],"structuredLinks":{"docsUrl":null,"demoUrl":null,"supportUrl":null,"pricingUrl":null,"statusUrl":null},"customPage":null},"relatedAgents":{"evidence":{"source":"protocol-neighbors","verified":false,"confidence":"medium","updatedAt":"2026-10-10T01:42:02.078Z","emptyReason":null},"items":[{"id":"8ebccd8e-3863-4187-8355-c3f14e1f9edf","entityType":"agent","canonicalPath":"/agent/iofficeai-aionui","slug":"iofficeai-aionui","name":"AionUi","description":"Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!","url":"https://github.com/iOfficeAI/AionUi","homepage":"https://www.aionui.com","source":"GITHUB_REPOS","protocols":["MCP","OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-10-09T19:11:12.944Z","createdAt":"2026-02-25T03:38:16.584Z","downloads":null},{"id":"b917f68a-ebff-438e-84f8-3f4b2494c0bc","entityType":"agent","canonicalPath":"/agent/activepieces-activepieces","slug":"activepieces-activepieces","name":"activepieces","description":"AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents","url":"https://github.com/activepieces/activepieces","homepage":"https://www.activepieces.com","source":"GITHUB_REPOS","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-15T02:22:12.426Z","createdAt":"2026-02-25T03:38:12.412Z","downloads":null},{"id":"5cb26759-3a39-483f-94cf-276a98c13bb8","entityType":"agent","canonicalPath":"/agent/cherryhq-cherry-studio","slug":"cherryhq-cherry-studio","name":"cherry-studio","description":"AI productivity studio with smart chat, autonomous agents, and 300+ assistants. Unified access to frontier LLMs","url":"https://github.com/CherryHQ/cherry-studio","homepage":"https://cherry-ai.com","source":"GITHUB_REPOS","protocols":["MCP","OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-11T14:38:40.986Z","createdAt":"2026-02-25T03:38:19.379Z","downloads":null},{"id":"6f6582d0-5d76-4f0f-b81d-86520247950b","entityType":"agent","canonicalPath":"/agent/copilotkit-copilotkit","slug":"copilotkit-copilotkit","name":"CopilotKit","description":"The Frontend for Agents & Generative UI. React + Angular","url":"https://github.com/CopilotKit/CopilotKit","homepage":"https://docs.copilotkit.ai","source":"GITHUB_REPOS","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-03-25T09:50:57.846Z","createdAt":"2026-02-25T03:39:14.617Z","downloads":null}],"links":{"hub":"/agent","source":"/agent/source/clawhub","protocols":[{"label":"OpenClaw","href":"/agent/protocol/openclew"}]}}}