gzy-lc-cli
v0.1.3
Published
Node.js CLI for GZY OpenAPI image tasks.
Maintainers
Readme
gzy-cli
Node.js CLI for GZY (光子云) OpenAPI image tasks.
Features
- image-cutout — 去背景/抠图,分离前景主体并生成透明背景图片
- image-upscale — 图片超分辨率,提升分辨率和清晰度
Install
npm install -g gzy-cli@latestCredentials
Set up your GZY OpenAPI credentials using one of the following methods:
Environment Variables
export GZY_OPENAPI_ACCESS_KEY="your-access-key"
export GZY_OPENAPI_SECRET_KEY="your-secret-key"Credentials File
Create ~/.gzy/credentials.json:
{
"accessKey": "your-access-key",
"secretKey": "your-secret-key"
}Usage
Image Cutout (去背景)
gzy image-cutout --image_url https://example.com/photo.jpg --jsonImage Upscale (超分)
gzy image-upscale --image_url https://example.com/photo.jpg --json
gzy image-upscale --image_url https://example.com/photo.jpg --scale 4 --jsonAgent Integration
Use the unified runner script for agent invocations:
node gzy-tools/scripts/run_command.js --command image-cutout --input-json '{"image_url":"https://example.com/photo.jpg"}'License
MIT
