sn-image-base
Skill này làm gì
Đây là một skill nền tảng mà các skill SenseNova khác gọi để tạo ảnh, đọc nội dung ảnh và cải thiện văn bản. Skill này chủ yếu dành cho lập trình viên và các skill khác hơn là người dùng cuối.
Khi nào nên dùng
- ✓Khi một skill ảnh SenseNova khác cần tạo hoặc chỉnh sửa một bức ảnh.
- ✓Khi một skill cần nhận diện những gì có trong một ảnh.
- ✓Khi một skill cần viết lại hoặc tối ưu một đoạn văn bản bằng LLM.
Liên kết skill
https://github.com/OpenSenseNova/SenseNova-Skills/blob/main/skills/sn-image-base/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tạo một ảnh tỷ lệ 16:9 về một thư viện yên tĩnh lúc hoàng hôn bằng công cụ ảnh SenseNova.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Công cụ gửi yêu cầu của bạn đến dịch vụ ảnh hoặc ngôn ngữ của SenseNova và trả về kết quả, mà không thay đổi đầu vào trước.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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/completionsinterfaceanthropic-messages: Anthropic Messages/v1/messagesinterface
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 | |------|------|---------
Câu hỏi thường gặp
Tôi có thể dùng trực tiếp không?
Skill dành cho các skill khác, nên hầu hết mọi người dùng nó thông qua các skill đó.
Skill có thay đổi đầu vào của tôi trước không?
Không. Skill gọi dịch vụ và trả về kết quả mà không xử lý đầu vào trước.
Những kích thước ảnh nào có sẵn?
Các tỷ lệ khung hình phổ biến như 1:1, 16:9 và 9:16 được hỗ trợ, và 2k là kích thước được khuyên dùng.
Chi tiết
Mô tả gốc của tác giả
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.
Độ phổ biến
- Sao GitHub
- 6.0k
- Vị trí xếp hạng
- #14459
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
sn-code-video
6.0kDạy agent của bạn làm video chạy bằng code với Canvas, SVG, Three.js hoặc Remotion, kiểm tra từng khung hình và xuất ra MP4.
sn-image-doctor
6.0kKiểm tra cài đặt SenseNova-Skills đã được cài, có các gói Python và khóa API cần thiết hay chưa, rồi lưu các khóa còn thiếu vào một file.
sn-image-imitate
6.0kGiúp agent của bạn tạo một ảnh mới sao chép phong cách của ảnh tham khảo, trong khi đổi nội dung cho khớp với yêu cầu của bạn.
sn-image-resume
6.0kGiúp agent của bạn biến nội dung sơ yếu lý lịch thành một ảnh CV được thiết kế theo phong cách portfolio, với lựa chọn phong cách tùy chọn.
Skill tương tự
gifgrep
394kCho phép agent của bạn tìm thư viện GIF, xem trước kết quả, tải một GIF, và lấy một khung hình tĩnh hoặc bảng ghép nhiều khung hình.
meme-maker
394kCho phép agent của bạn chọn một mẫu meme, thêm chú thích của riêng bạn và tạo meme dưới dạng ảnh SVG hoặc PNG.
ios-icon-gen
280kGiúp agent tạo biểu tượng cho ứng dụng iOS. Dùng biểu tượng của Apple hoặc từ các nguồn khác để tạo đúng định dạng tệp.