Sn Image Base logo

Sn Image Base

OrganizationPopular
OpenSenseNova
sn-image-base

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.

Overview

PublisherOpenSenseNova
RepositorySenseNova-Skills
Skill namesn-image-base
Stars
5.6K
Forks
392
Bundled files
26
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 26 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by OpenSenseNova on GitHub. Read the source before you install it.

Installation

Install the Sn Image Base AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/OpenSenseNova/SenseNova-Skills.git /tmp/SenseNova-Skills
mkdir -p .claude/skills
cp -r /tmp/SenseNova-Skills/skills/sn-image-base .claude/skills/sn-image-base
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Sn Image Base in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Sn Image Base on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Sn Image Base is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

sn-image-base

Dependency Installation

bash
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:

ParameterTypeDefaultDescription
--promptstringRequiredPrompt text for image generation
--negative-promptstring""Negative prompt
--image-sizestring2kImage 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-ratiostring16:9Aspect ratio, e.g. 1:1, 16:9, 9:16
--seedintNoneRandom seed for reproducible generation
--unet-namestringNoneSpecify a UNet model name
--api-keystringSN_IMAGE_GEN_API_KEY -> SN_API_KEYAPI key (CLI argument has priority; MissingApiKeyError is raised when all are empty)
--base-urlstringSN_IMAGE_GEN_BASE_URL -> SN_BASE_URLAPI base URL (CLI argument has priority)
--poll-intervalfloat5.0Polling interval (seconds)
--timeoutfloat300.0Timeout (seconds)
--insecureflagFalseDisable TLS verification
--save-pathPathAuto-generatedSave 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.

bash
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):

ParameterTypeBuilt-in DefaultEnv VarDescription
--api-keystringNo hardcoded defaultSN_VISION_API_KEY -> SN_CHAT_API_KEY -> SN_API_KEYChat runtime API key; raises MissingApiKeyError when all are unset
--base-urlstringSN_CHAT_BASE_URL defaultSN_VISION_BASE_URL -> SN_CHAT_BASE_URL -> SN_BASE_URLVision provider base URL; falls back to shared chat/global provider
--modelstringsensenova-6.8-flash-liteSN_VISION_MODEL -> SN_CHAT_MODELVision-capable model name
--vlm-typestringopenai-completionsSN_VISION_TYPE -> SN_CHAT_TYPEChat protocol type override
--user-prompt-pathstringNone-Local file path, mutually exclusive with --user-prompt
--system-prompt-pathstringNone-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):

ParameterTypeBuilt-in DefaultEnv VarDescription
--api-keystringNo hardcoded defaultSN_TEXT_API_KEY -> SN_CHAT_API_KEY -> SN_API_KEYChat runtime API key; raises MissingApiKeyError when all are unset
--base-urlstringSN_CHAT_BASE_URL defaultSN_TEXT_BASE_URL -> SN_CHAT_BASE_URL -> SN_BASE_URLText provider base URL; falls back to shared chat/global provider
--modelstringsensenova-6.8-flash-liteSN_TEXT_MODEL -> SN_CHAT_MODELText model name
--llm-typestringopenai-completionsSN_TEXT_TYPE -> SN_CHAT_TYPEChat protocol type override
--user-prompt-pathstringNone-Local file path, mutually exclusive with --user-prompt
--system-prompt-pathstringNone-Local file path, mutually exclusive with --system-prompt

Available values for --llm-type:

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

VLM vs LLM

ToolModel TypeImage InputInterface Type Parameter
sn-image-recognizeVLM (Vision Language Model)Yes, supports multiple images--vlm-type
sn-text-optimizeLLM (Language Model)No, text only--llm-type

Usage

All tools are called through the unified sn_agent_runner.py entrypoint:

bash
# Image generation (only prompt required; api-key/base-url have defaults)
python scripts/sn_agent_runner.py sn-image-generate \
    --prompt "..."

# Image generation (override base-url)
python scripts/sn_agent_runner.py sn-image-generate \
    --prompt "..." \
    --base-url "https://custom-endpoint.com/v1"

# Image generation (explicitly override api-key)
python scripts/sn_agent_runner.py sn-image-generate \
    --prompt "..." \
    --api-key "sk-xxx"

# Image recognition (VLM) - minimal call (uses built-in Sensenova defaults)
python scripts/sn_agent_runner.py sn-image-recognize \
    --user-prompt "Describe the image" \
    --images "path/to/image.png"

# Image recognition (VLM) - override to Anthropic Claude API compatible (messages interface)
python scripts/sn_agent_runner.py sn-image-recognize \
    --user-prompt "Describe the image" \
    --images "path/to/image.png" \
    --api-key "sk-ant-xxx" \
    --base-url "https://api.anthropic.com" \
    --model "claude-sonnet-4-6" \
    --vlm-type "anthropic-messages"

# Text optimization (LLM) - minimal call (uses built-in Sensenova defaults)
python scripts/sn_agent_runner.py sn-text-optimize \
    --user-prompt "Optimize the text: ..."

# Text optimization (LLM) - override to Anthropic Claude API compatible (messages interface)
python scripts/sn_agent_runner.py sn-text-optimize \
    --user-prompt "Optimize the text: ..." \
    --api-key "sk-ant-xxx" \
    --base-url "https://api.anthropic.com" \
    --model "claude-sonnet-4-6" \
    --llm-type "anthropic-messages"

Default Parameter Behavior

Authentication parameters for sn-image-generate have the following default behavior:

ParameterDefaultOverrideDescription
--base-urlSN_IMAGE_GEN_BASE_URL -> SN_BASE_URL--base-url "..."CLI argument has priority
--api-keySN_IMAGE_GEN_API_KEY -> SN_API_KEY--api-key "..."CLI argument has priority; throws MissingApiKeyError if all values are empty

sn-image-recognize and sn-text-optimize use priority: CLI argument > command-specific env var > shared SN_CHAT_* env var > global SN_* env var > built-in default.

ParameterBuilt-in DefaultVision Env VarText Env Var
--api-keyNone (must be provided)SN_VISION_API_KEY -> SN_CHAT_API_KEY -> SN_API_KEYSN_TEXT_API_KEY -> SN_CHAT_API_KEY -> SN_API_KEY
--base-urlhttps://token.sensenova.cn/v1SN_VISION_BASE_URL -> SN_CHAT_BASE_URL -> SN_BASE_URLSN_TEXT_BASE_URL -> SN_CHAT_BASE_URL -> SN_BASE_URL
--modelsensenova-6.8-flash-liteSN_VISION_MODEL -> SN_CHAT_MODELSN_TEXT_MODEL -> SN_CHAT_MODEL
--vlm-type / --llm-typeopenai-completionsSN_VISION_TYPE -> SN_CHAT_TYPESN_TEXT_TYPE -> SN_CHAT_TYPE

api_key resolution order (high to low): CLI --api-key > command-specific key (SN_VISION_API_KEY/SN_TEXT_API_KEY) > SN_CHAT_API_KEY > SN_API_KEY. If all are unset, MissingApiKeyError is raised.

Only --api-key must be provided via CLI or environment; base URL, model, and interface type have shared chat defaults.

Agent Configuration Integration

The agent can automatically read parameters from openclaw.json without manual input:

CLI Parameteropenclaw.json FieldExample
--base-urlproviders.<name>.baseUrlhttps://api.anthropic.com
--llm-typeproviders.<name>.apianthropic-messages / openai-completions
--vlm-typeproviders.<name>.apianthropic-messages / openai-completions
--modelproviders.<name>.models[].idclaude-sonnet-4-6
--api-keyproviders.<name>.apiKey or env varsk-cp-...

Note: --llm-type and --vlm-type share the same providers.<name>.api field and are used by LLM and VLM tools respectively.

Mapping between provider.api and interface type:

api ValueCorresponding --llm-type / --vlm-typeEndpoint Path
anthropic-messagesanthropic-messages/v1/messages
openai-completionsopenai-completions/v1/chat/completions
openai-responses(future extension)/responses

Mapping Between base-url and Interface Type

Different API types have different requirements for base-url format:

Type--llm-type / --vlm-typeRecommended base-urlCode Appended PathFinal URL Example
LLMopenai-completionshttps://token.sensenova.cn/v1/chat/completionshttps://token.sensenova.cn/v1/chat/completions
LLManthropic-messageshttps://api.anthropic.com/v1/messageshttps://api.anthropic.com/v1/messages
VLMopenai-completionshttps://token.sensenova.cn/v1/chat/completionshttps://token.sensenova.cn/v1/chat/completions
VLManthropic-messageshttps://api.anthropic.com/v1/messageshttps://api.anthropic.com/v1/messages

Note:

  • Recommended chat base URLs include the provider API version path, for example /v1.
  • For compatibility, if the configured chat base URL has no path, the runner appends /v1/chat/completions or /v1/messages.
  • If the configured chat base URL already has a path such as /v1, the runner appends only /chat/completions or /messages.
  • Some providers use versioned paths other than /v1, such as Gemini's /v1beta/openai.

Output Format

All tools support two output formats:

  • --output-format text (default): outputs plain text result
  • --output-format json: outputs JSON, including status and elapsed_seconds (runtime in seconds, rounded to 2 decimals)

JSON output for sn-image-recognize and sn-text-optimize also includes model, base_url, and interface_type to verify the effective runtime configuration:

json
{
  "status": "ok",
  "result": "...",
  "model": "sensenova-6.8-flash-lite",
  "base_url": "https://token.sensenova.cn/v1",
  "interface_type": "openai-completions",
  "elapsed_seconds": 1.23
}

On failure:

json
{
  "status": "failed",
  "error": "error message",
  "elapsed_seconds": 0.05
}

Input/Output Specification

See references/api_spec.md for details.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Sn Image Base AI skill do?

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.

Why use Sn Image Base on TypingMind?

Because you install it once and use it with any model. Sn Image Base is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Sn Image Base in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/OpenSenseNova/SenseNova-Skills/tree/main/skills/sn-image-base. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Sn Image Base?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Sn Image Base?

As many as you like. As long as a model supports skills, you can use Sn Image Base with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Sn Image Base AI skill free?

Yes. It is published on GitHub by OpenSenseNova under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇