This skill generates AI images via the SeaArt platform. You can create images from text prompts with various models, aspect ratios, LoRA models, and other parameters.
To use this skill, you need a SeaArt authentication token. This token is the value of the T cookie.
https://www.seaart.ai.T.eyJhbGci...).Store it as an environment variable ( SEAART_TOKEN). Never paste the token into chat.
text
/update-config set SEAART_TOKEN="your_token_value_here"
Security note: Never share your token in chat messages or logs. The token will be persisted in your local agent config by
/update-config— ensure only you have access to that config file.
Default Model: SeaArt Infinity (if user doesn't specify, use this one)
Model NameCLI Keymodel_no``model_ver_noSeaArt Infinity (Default)seaart-infinity``f8172af6747ec762bcf847bd60fdf7cd``2c39fe1f-f5d6-4b50-a273-499677f2f7a9SeaArt Filmseaart-film``26058e019e3a0c026e1ad2bfa69e2b75``91b19145-a436-4bbc-ace4-62399e71336bSeaArt Film Editseaart-film-edit``a70a84e9d2db46c78661de9bfbbf5bd5``1cd2354ece4e4308a1b0896eb35b37bcSeaArt Film Edit 2.0seaart-film-edit-2``d4ont25e878c7390gip0``d39166c9-4d77-4fa3-a81f-d69f144929f0SeaArt Film Edit 3.0seaart-film-edit-3``d6eqg15e878c73dilcv0``a8b3e33e-02b5-4a27-bca8-c331c87b267f
Model NameCLI Keymodel_no``model_ver_noSeedream 5.0seedream-5``d6eqbble878c73dhco9g``1ad9c231-1945-4e50-a24d-d2c7570338adSeedream 4.5seedream-4.5``d4pbgg5e878c73fengf0``53c0eaf0-7de3-4e9c-a906-9499df061661Seedream 4.0seedream-4``d534afde878c73drik20``60099fa2-8f31-4f42-8e7f-5ea4c2784220
Model NameCLI Keymodel_no``model_ver_noNano Banananano-banana``0e21cbf906b5b39c2f9863f4b9ff059edbd0b399``e651aa45c8ed746bcd2546d46a3cdf3bf83feb67Nano Banana 2nano-banana-2``d6ggttle878c739bpf50``547ebf19-577f-4614-9ef7-f9ece0aebf80Nano Banana Pro Imagenano-banana-pro``d49btu5e878c73avuqfg``49a838b1-0ef7-4442-999d-71e10cb2feab
Model NameCLI Keymodel_no``model_ver_noGrok Imagine Imagegrok-imagine``d6sih8le878c73a7cbtg``0e7eaf79-5702-4387-bcaa-ce3b79a36889Z Image Turboz-image-turbo``d4kssode878c7387fae0``ef24b47a8d618127c9342fd0635aedb9WAI-ANI-PONYXLwai-ani-ponyxl``24231feb2db47b663ff5b3123f01fab6``6e2e976db9a8e83312a0c91b852f876c
Users can also specify custom models via --model-no/ --model-ver or --model-url.
The script auto-selects resolution based on the model type:
HD Models (SeaArt Official, Seedream, Nano Banana, Grok Imagine, Z Image Turbo — require >= 3,686,400 px):
RatioWidthHeightAlias1:120482048方图/Square2:316642432竖图/Portrait3:224321664横图/Landscape3:4179223044:3230417929:1615362688手机竖屏16:926881536宽屏/Widescreen
SD Models (WAI-ANI-PONYXL — standard ~1MP):
RatioWidthHeight1:1102410242:383212163:212168329:16768134416:91344768
If custom dimensions are provided but too small for an HD model, the script auto-scales up while preserving aspect ratio.
LoRA models add specific styles or effects. Format: id:strength:version
model_ver_no): Required for most LoRAs. Extract from the API request payload (not from URL).id1:0.8:ver1,id2:1.0:ver2To get LoRA parameters: open DevTools Network tab on SeaArt, generate an image, find the text-to-img request, and extract id, weight, and model_ver_no from the lora_models array in the payload/response.
When a user asks to generate an image, follow these steps:
Check if the SEAART_TOKEN environment variable is set: echo $SEAART_TOKEN.
If empty, guide the user to set it as described above. Wait before proceeding.
Ensure you have:
Use the included Python script:
bash
# Basic generation
python3 ~/.claude/skills/seaart/scripts/generate.py \
--prompt "A cute orange cat sitting by the window, soft lighting, realistic photography"
# With predefined model
python3 ~/.claude/skills/seaart/scripts/generate.py \
--prompt "Anime girl under cherry blossoms" \
--model wai-ani-ponyxl \
--aspect-ratio "2:3"
# With custom model
python3 ~/.claude/skills/seaart/scripts/generate.py \
--prompt "Futuristic cityscape" \
--model-no "custom_id" \
--model-ver "custom_ver" \
--aspect-ratio "16:9"
# With model URL (auto-extracts model_no and model_ver_no)
python3 ~/.claude/skills/seaart/scripts/generate.py \
--prompt "Mountain landscape" \
--model-url "https://www.seaart.ai/create/image?id=xxx&model_ver_no=yyy"
# With LoRA
python3 ~/.claude/skills/seaart/scripts/generate.py \
--prompt "Detailed anime portrait" \
--model wai-ani-ponyxl \
--lora "csor35de878c738f4i3g:0.65:8249602c4886cfd76ddfff3eaea805f4"
# With multiple LoRAs + negative prompt + custom count
python3 ~/.claude/skills/seaart/scripts/generate.py \
--prompt "Beautiful landscape painting" \
--lora "lora1_id:0.8:lora1_ver,lora2_id:1.0:lora2_ver" \
--negative "blurry, low quality, watermark" \
--n 2
The script handles submitting the request, polling for completion, and returning the final image URLs.
User: "帮我生成一张赛博朋克风格的城市横图"
Assistant:
$SEAART_TOKEN — set.bash
python3 ~/.claude/skills/seaart/scripts/generate.py \
--prompt "Cyberpunk city, neon lights, futuristic architecture, detailed" \
--aspect-ratio "16:9"
User: "用 Grok Imagine 生成4张猫咪图片,竖图"
Assistant:
bash
python3 ~/.claude/skills/seaart/scripts/generate.py \
--prompt "A cute cat, detailed fur, soft lighting" \
--model grok-imagine \
--aspect-ratio "2:3" \
--n 4
URLMethodData Senthttps://www.seaart.ai/api/v1/task/v2/text-to-imgPOSTPrompt, model ID, dimensions, LoRA params, generation paramshttps://www.seaart.ai/api/v1/task/batch-progressPOSTTask ID (for polling status)
All requests are authenticated via your SEAART_TOKEN cookie, which never leaves your machine in plaintext — it is only sent to *.seaart.ai as an HTTP cookie header.
SEAART_TOKEN are sent to seaart.ai servers as an HTTP cookie header on every API request.SEAART_TOKEN is persisted locally in your agent config file by /update-config. Ensure only you have access to that config. It is not logged or transmitted by this skill beyond the API calls to seaart.ai listed above.requests library — no shell interpolation is used.By using this skill, your prompt and generation parameters are sent to seaart.ai. Only install and use this skill if you trust SeaArt with your creative content. This skill is not affiliated with or endorsed by SeaArt.