跳到正文
Skillpedia
图片与图标6.0k · #14459

sn-image-base

它能做什么

这是一项基础组件技能,其他 SenseNova 技能会调用它来生成图片、读取图片内容和改进文字。它主要供开发者和其他技能使用,而不是普通用户。

适用场景

  • ✓当另一个 SenseNova 图片技能需要生成或编辑图片时。
  • ✓当某项技能需要识别图片中的内容时。
  • ✓当某项技能需要用 LLM 改写或优化一段文字时。

技能链接

https://github.com/OpenSenseNova/SenseNova-Skills/blob/main/skills/sn-image-base/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/OpenSenseNova/SenseNova-Skills/blob/main/skills/sn-image-base/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请使用 SenseNova 图片工具,生成一张黄昏时安静图书馆的 16:9 图片。”

每周 5 个新技能,1 分钟读完。

工作原理

这个工具把你的请求发送给 SenseNova 的图片或语言服务,并返回结果,不会先对输入进行预处理。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

sn-image-base

Dependency Installation

pip install -r requirements.txt

Overview

sn-image-base is the base-layer skill (tier 0) of the SenseNova-Skills project and provides four low-level tools:

  • sn-image-generate: image generation (calls text-to-image-no-enhance API)
  • sn-image-edit: image editing with SenseNova U1.5 Lite (calls /images/edits)
  • sn-image-recognize: image recognition (uses VLM to analyze image content)
  • sn-text-optimize: text optimization (uses LLM to process text)

This skill does not perform any input preprocessing and only calls backend services to return results.

Tools List

sn-image-generate

Image generation tool that calls the text-to-image-no-enhance API.

--prompt is required; all other parameters are optional:

Parameter Type Default Description
--prompt string Required Prompt text for image generation
--negative-prompt string "" Negative prompt
--image-size string 2k Image size preset (case-insensitive). Recommended: 2k. 4k is supported by sensenova-u1.5-lite; other SenseNova image models may reject it. Other values → status=failed.
--aspect-ratio string 16:9 Aspect ratio, e.g. 1:1, 16:9, 9:16
--seed int None Random seed for reproducible generation
--unet-name string None Specify a UNet model name
--api-key string SN_IMAGE_GEN_API_KEY -> SN_API_KEY API key (CLI argument has priority; MissingApiKeyError is raised when all are empty)
--base-url string SN_IMAGE_GEN_BASE_URL -> SN_BASE_URL API base URL (CLI argument has priority)
--poll-interval float 5.0 Polling interval (seconds)
--timeout float 300.0 Timeout (seconds)
--insecure flag False Disable TLS verification
--save-path Path Auto-generated Save path

SenseNova image requests explicitly send watermark=false by default. Both sensenova-u1-fast and sensenova-u1.5-lite are supported; U1.5 Lite additionally supports native 4K output. This no-watermark feature is currently in free public beta and may become paid.

sn-image-edit

Edits one or more reference images with SenseNova U1.5 Lite through the /images/edits endpoint. Local paths are converted to Data URLs; HTTP(S) URLs and Data URLs are passed through.

python scripts/sn_agent_runner.py sn-image-edit \
    --prompt "Change the background to a snowy mountain" \
    --images source.png reference.png \
    --save-path edited.png

The edit request uses the official defaults n=1, size=auto, watermark=false, prompt_extend=true, and response_format=url.

sn-image-recognize

Image recognition tool that uses VLM (Vision Language Model) to analyze image content. Supports multiple image inputs.

--images and --user-prompt (or --user-prompt-path) are required. All other parameters use three-level defaults (CLI > env var > built-in default):

Parameter Type Built-in Default Env Var Description
--api-key string No hardcoded default SN_VISION_API_KEY -> SN_CHAT_API_KEY -> SN_API_KEY Chat runtime API key; raises MissingApiKeyError when all are unset
--base-url string SN_CHAT_BASE_URL default SN_VISION_BASE_URL -> SN_CHAT_BASE_URL -> SN_BASE_URL Vision provider base URL; falls back to shared chat/global provider
--model string sensenova-6.8-flash-lite SN_VISION_MODEL -> SN_CHAT_MODEL Vision-capable model name
--vlm-type string openai-completions SN_VISION_TYPE -> SN_CHAT_TYPE Chat protocol type override
--user-prompt-path string None - Local file path, mutually exclusive with --user-prompt
--system-prompt-path string None - Local file path, mutually exclusive with --system-prompt

Available values for --vlm-type:

  • openai-completions: OpenAI-compatible /v1/chat/completions interface
  • anthropic-messages: Anthropic Messages /v1/messages interface

sn-text-optimize

Text optimization tool that uses LLM (Language Model) to optimize text content. Does not accept image inputs.

--user-prompt (or --user-prompt-path) is required. All other parameters use three-level defaults (CLI > env var > built-in default):

| Parameter | Type | Built-in Default | Env Var | Description | |------|------|---------

常见问题

我可以直接使用它吗?

它是供其他技能调用的,因此大多数人是通过那些技能来使用它的。

它会先修改我的输入吗?

不会。它直接调用服务并返回结果,不会对输入进行预处理。

有哪些图片尺寸?

支持 1:1、16:9 和 9:16 等常见宽高比,推荐尺寸为 2k。

详情

作者的原始描述

Base-layer skill for the SenseNova-Skills project, providing low-level APIs for image generation, recognition (VLM), and text optimization (LLM). This skill does not preprocess inputs; it only calls backend services and returns results. This skill is not user-facing and is intended for upper-layer skills only.

repo: OpenSenseNova/SenseNova-Skills

热度

GitHub 星标
6.0k
排名
#14459
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能