jimeng-api
БесплатноЗапускает вложенные скриптыНе проверенGenerate images using the Jimeng API based on text prompts. Use this skill when users request AI-generated images from the Jimeng (即梦AI) service, artwork…
от iptag★ 1 042 звезды на GitHubОб этом скилле
Jimeng API
Overview
This skill enables image generation using a locally deployed Jimeng API service (Docker). It converts text prompts into high-quality images and automatically downloads them to the project's /pic folder. The skill supports text-to-image generation, image-to-image composition, customizable aspect ratios (1:1, 16:9, etc.), and multiple resolution levels (1k, 2k, 4k).
API Endpoint: http://localhost:5100
When to Use This Skill
Use this skill when users request:
- "使用即梦生成图片 [描述]"
- "Generate an image using Jimeng: [description]"
- "Create artwork showing [scene/concept]"
- "Make an illustration of [subject]"
- "Generate a 4K image of [description]"
- "Transform this image to [style]" (image-to-image)
- Any request involving Jimeng AI image generation or visual content creation
Quick Start
Prerequisites
IMPORTANT: The Jimeng API must be running locally via Docker before using this skill.
Region-specific prefixes:
- 国内站: Direct sessionid (e.g.,
your_session_id) - 美国站: Add
us-prefix (e.g.,us-your_session_id) - 香港站: Add
hk-prefix (e.g.,hk-your_session_id) - 日本站: Add
jp-prefix (e.g.,jp-your_session_id) - 新加坡站: Add
sg-prefix (e.g.,sg-your_session_id)
⚠️ nanobanana Model Resolution Rules:
- US site (us-): Fixed at 1024×1024 with 2k resolution; ignores user-provided
ratioandresolutionparameters - HK/JP/SG sites (hk-/jp-/sg-): Forced 1k resolution, but supports custom
ratioparameters (e.g., 16:9, 4:3) - Domestic site (CN): Does not support nanobanana model; use jimeng series instead
Always ask the user for their Session ID before proceeding, as the skill does not include a pre-configured credential.
Example prompt to user:
"要使用即梦API生成图片,我需要您的Session ID。您可以从即梦网站(jimeng.jianying.com)的浏览器Cookie中获取 sessionid。
如果使用国际站,请在sessionid前添加对应前缀(us-/hk-/jp-/sg-)。
请提供您的 Session ID。"
Parameter Usage Guidelines
⚠️⚠️ IMPORTANT PARAMETER DISCIPLINE
- ✅ ONLY PASS PARAMETERS THE USER EXPLICITLY MENTIONS.
- ❌ DO NOT GUESS OR ADD UNSPECIFIED PARAMETERS.
- ✅ LET THE SCRIPT USE BUILT-IN DEFAULTS when the user did not specify:
- ratio: 1:1
- resolution: 2k
- model: jimeng-4.0
- intelligent_ratio: false
Rationale: Tools may “helpfully” add options (e.g., --ratio 16:9) that the user didn’t request, overriding script defaults. This is prohibited. Pass only the parameters the user asked for; otherwise, rely on defaults.
Basic Workflow
- Receive user request for image generation
- Request Session ID from the user if not already provided
- Clarify requirements:
- Text prompt (文生图) or input images (图生图)
- Model selection (jimeng-4.0, jimeng-3.1, etc.)
- Aspect ratio (1:1, 16:9, 4:3, etc.)
- Resolution (1k, 2k, 4k)
- Intelligent ratio (auto-detect based on prompt keywords)
- Execute generation using the
generate_image.pyscript — REMINDER: only pass parameters explicitly requested by the user; do not add/guess any optional flags - Report results — show file paths only. DO NOT READ/OPEN/ANALYZE GENERATED IMAGES. DO NOT CALL ANY READ TOOL (e.g.,
Read,view_image). STOP AFTER SAVING.
Image Generation Tasks
Text-to-Image Generation
Generate images from text descriptions.
Minimal default usage (no optional params):
python scripts/generate_image.py text \
"a cute cat" \
--session-id "YOUR_SESSION_ID"
Only include optional parameters when the user explicitly requests them.
With user-specified parameters (only when requested):
python scripts/generate_image.py text \
"futuristic city at sunset with flying cars" \
--session-id "YOUR_SESSION_ID" \
--model "jimeng-4.0" \
--ratio "16:9" \
--resolution "2k"
Parameters:
prompt(required): Text description of the desired image--session-id: Jimeng session ID (required)--model: Model to use (default:jimeng-4.0)- Options:
jimeng-5.0,jimeng-4.6,jimeng-4.5,jimeng-4.1,jimeng-4.0,jimeng-3.1,jimeng-3.0,nanobanana(international only)
- Options:
--ratio: Aspect ratio (default:1:1)- Options:
1:1,4:3,3:4,16:9,9:16,3:2,2:3,21:9
- Options:
--resolution: Resolution level (default:2k)- Options:
1k,2k,4k
- Options:
--intelligent-ratio: Enable smart ratio detection based on prompt keywords ⚠️ Only works for jimeng-4.0/jimeng-4.1/jimeng-4.5 models; other models will ignore this parameter--negative-prompt: Negative prompt (elements to avoid)--sample-strength: Sampling strength (0.0-1.0)--api-url: Custom API URL (default:http://localhost:5100)--output-dir: Custom output directory (defaults toproject_root/pic)
Image-to-Image Composition
Transform or compose images based on text guidance.
Example user request:
Установить jimeng-api в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл jimeng-api?
Generate images using the Jimeng API based on text prompts. Use this skill when users request AI-generated images from the Jimeng (即梦AI) service, artwork, illustrations, or visual content creation. Supports text-to-image and image-to-image generation with customizable ratios and resolutions.
Как установить скилл jimeng-api?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл jimeng-api запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic