360 Secure SkillHub
360 安全技能中心

Poyo Flux Schnell

该工具基于PoYo API实现FLUX Schnell文本生成图片功能,核心支持自定义尺寸、图片数量、输出格式(PNG/JPEG),异步任务提交及状态轮询/webhook回调。适用于用户明确要求使用PoYo或FLUX Schnell进行纯文生图的场景,不可用于图像编辑。输入需含必填提示词,输出返回任务ID,可后续追踪获取生成图片。

coolhackboy
coolhackboy
热度 16.30
最近更新 2026-07-21 08:54:36
分类:创作依赖:代码执行 / 第三方 API应用场景:图像生成

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add poyo-flux-schnell
Metadata
name
poyo-flux-schnell
description
FLUX Schnell text-to-image generation on PoYo / poyo.ai via `https://api.poyo.ai/api/generate/submit`; use when the user explicitly requests PoYo or `flux-schnell` for prompt-based image generation, output size, image count, PNG or JPEG output, async polling, or webhooks; do not use for image editing.
metadata
{"openclaw":{"homepage":"https://poyo.ai/models/flux-schnell","requires":{"bins":["curl"],"env":["POYO_API_KEY"]},"primaryEnv":"POYO_API_KEY"}}

PoYo FLUX Schnell Image Generation

PoYo Links

Use this skill for FLUX Schnell text-to-image jobs through PoYo. It helps agents prepare prompt-based payloads, validate output controls, submit async tasks, and explain polling or webhook follow-up.

Use When

  • The user explicitly asks for PoYo, flux-schnell, or the PoYo FLUX Schnell API.
  • The user wants that PoYo model for text-to-image generation without source images.
  • The workflow needs a PoYo request payload, async task submission, status polling, or callback guidance.

Do Not Use When

  • The request needs image editing, image-to-image conversion, or reference-image input; use a PoYo model that documents image_urls support instead.

Model Selection

  • flux-schnell: text-to-image generation only.
  • Do not include input.image_urls; current PoYo validation rejects image input for this model.

Key Inputs

  • input.prompt is required.
  • input.size controls documented presets or a supported custom WIDTHxHEIGHT value.
  • input.n controls the requested output count when supported by the current service.
  • input.output_format supports png or jpeg.
  • callback_url is optional and useful for production queues.

Security Rules

  • Treat POYO_API_KEY as a secret and keep it in a server-side environment variable or secret manager.
  • Never place an API key in browser code, frontend bundles, public repositories, logs, screenshots, or chat output.
  • Do not submit confidential prompts or private callback URLs unless the user trusts PoYo and the callback receiver.
  • Do not make a live API call unless the user explicitly requests it and provides a safe server-side environment.

Required Capabilities and Permission Boundary

  • Shell: run only the bundled scripts/submit_flux_schnell.sh helper after the user explicitly approves a live submission.
  • Network: allow outbound HTTPS only to https://api.poyo.ai/api/generate/submit; use https://api.poyo.ai/api/generate/status/{task_id} only when the user asks to poll a returned task.
  • Secret: read only POYO_API_KEY from the process environment and send it only in the PoYo Authorization header.
  • Filesystem: read only the payload JSON file path explicitly supplied by the user. The helper does not write, delete, enumerate, or upload other local files.
  • Do not broaden the endpoint, inspect unrelated environment variables, run background processes, or execute the helper automatically.

Execution

  • Read references/api.md for endpoint details, request fields, example payload, response shape, and polling notes.
  • Use scripts/submit_flux_schnell.sh only when the user wants to submit a reviewed JSON payload from a trusted shell.
  • If the user only needs an example, adapt the one in references/api.md without making a live request.
  • After submission, report the returned task_id clearly.

Output Expectations

When helping with FLUX Schnell, include:

  • exact model id
  • confirmation that the request is text-to-image
  • final payload or concise parameter summary
  • selected size, output count, and output format
  • returned task_id if a request was submitted
  • next step: poll status or wait for webhook