360 Secure SkillHub
360 安全技能中心

Creatok Generate Image

核心功能:依托CreatOK API实现文本转图像、商品图生成,支持查询任务状态、恢复中断的生成任务。典型场景:用户需AI生成创意图、商品展示图,或跟进未完成的图像生成任务。输入为多语言自然语言请求,可选参考图、任务ID;输出为图像URL。付费生成需先获用户确认,默认用平台推荐模型,回复匹配用户输入语言。

newt0n
newt0n
热度 58.55
最近更新 2026-05-11 17:32:08
分类:创作依赖:第三方 API / 读写文件应用场景:图像生成

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add creatok-generate-image
Metadata
name
creatok-generate-image
version
1.0.0
description
This skill should be used when the user asks to generate an image, create an AI image, produce a product image, generate a visual from a prompt, or check and continue an existing image generation task. Generates images through CreatOK's image generation API and can also recover interrupted generation flows from an existing task id.
license
Open Source
compatibility
Claude Code ≥1.0, OpenClaw skills, ClawHub-compatible installers. Requires network access to CreatOK Open Skills API. No local image rendering packages required.
metadata
{"openclaw":{"requires":{"env":[],"bins":["node"]},"primaryEnv":"CREATOK_API_KEY"},"author":"creatok","version":"1.0.0","geo-relevance":"low","tags":["image-generation","ai-image","text-to-image","product-image","gpt-image","seedream","nano-banana","prompt-to-image"],"triggers":["generate an image","create an image","generate a product image","make an image from this prompt","create an AI image","generate a visual","text to image","produce an image","start image generation","generate it as an image","check this image generation task","did my image finish","check this image task id","画像を生成して","画像を作って","商品画像を作って","このプロンプトで画像を作って","이미지 생성해줘","이미지 만들어줘","상품 이미지 만들어줘","이 프롬프트로 이미지를 만들어줘","genera una imagen","crea una imagen","genera una imagen de producto","convierte este prompt en una imagen","gere uma imagem","crie uma imagem","gere uma imagem de produto","transforme este prompt em uma imagem"]}

generate-image

Constraints

  • The model's final user-facing response should match the user's input language, default English.
  • Must request user confirmation before triggering any paid/high-cost image generation call.
  • After confirmed, must call CreatOK Open Skills proxy and wait until completion.
  • Avoid technical wording in the user-facing reply unless the user explicitly needs details for debugging.

Model Selection Rules

The skill must read model list, defaults, and hard limits from the CreatOK capabilities endpoint at runtime instead of hardcoding them locally.

Keep the local client thin:

  • use the returned default model unless the user explicitly chooses another supported model
  • validate only hard execution constraints such as resolution, aspect ratio, count, and reference-image cap
  • keep user-facing model explanation minimal and avoid depending on provider, family, or hint-style metadata

Inputs to clarify (ask if missing)

  • ask only for what is necessary to generate a good image
  • if resolution or aspect ratio is not specified, use the model defaults returned by the capabilities endpoint
  • if the prompt is vague, offer to refine it before confirming generation
  • reference images are optional — ask only if the user implies style transfer or subject reference
  • when reference images are used, upload the local image file first and submit the returned uploaded reference with the generation task

Workflow

  1. Confirmation gate (mandatory)
  • Summarize:
    • model
    • resolution
    • number of images (n)
    • aspect ratio if specified
    • estimated cost/credits if available
  • Ask for a simple confirmation before submitting.
  • Do not submit the generation task until user says yes.
  1. Submit image generation
  • Call CreatOK: POST /api/open/skills/image-generation
  1. Poll status until completion
  • Call CreatOK: GET /api/open/skills/tasks/status?task_id=...&task_type=image_generation
  1. Persist artifacts + respond
  • Write:
    • outputs/result.json with task_id/status/images/raw
    • outputs/result.md
  • Persist the task_id immediately after submission so the user can recover later.
  • Return the final image URLs verbatim.

Existing Task Recovery

  • If the user already has a task_id, continue from that task instead of starting a new one.
  • In recovery mode, do not ask the user to restate the prompt if the task id is already available.
  • The model can either check status once or keep polling if the user wants to wait.
  • If the task succeeded, return the final image URLs verbatim.
  • If the task is still queued or running, explain clearly and offer to keep checking.
  • If the task failed, explain the failure and suggest next steps.

Artifacts

All artifacts under generate-image/.artifacts/<run_id>/....

Thin Client Boundary

  • This skill submits generation jobs, polls status, and persists fixed-format outputs.
  • The model should not make the user restate their idea if the direction is already clear from the conversation.