What it is
Generates or edits images through Skywork’s image API, with text-to-image and image-to-image plus ratio and resolution controls. For posters, logos, illustrations, infographics, e-commerce shots and social assets. It lays out no finished document, hands over no vector source, and keeps no likeness consistent across several characters.
Core workflow
| Stage | Content |
|---|---|
| Trigger | An image must be created, or an existing one restyled, edited or converted; with an uploaded or referenced image, always edit |
| Input | A prompt and filename; --input-image (several allowed) for edits; optional --aspect-ratio and --resolution (1K/2K/4K, default 2K) |
| Steps | Preflight python3 and the input images; run scripts/generate_image.py by absolute path from the user’s working directory; read the matching scenarios/ file; wait for the render; deliver |
| Output | One PNG named yyyy-mm-dd-hh-mm-ss-descriptive-name.png, plus the local path and OSS URL the script prints |
| Boundary | Requires SKYWORK_API_KEY; an omitted ratio is left to the API; one edit covers up to 4 characters and 10 objects; an insufficient benefit level blocks generation |
Getting started: Set the key first, write the prompt as one narrative paragraph rather than keywords, and refer to references as “the first image” and “the second image”.
Traits
- One script for both jobs:
--promptcreates, adding--input-imageedits, and several references may be stacked - Resolutions 1K/2K/4K; ten ratios from
1:1to21:9, including3:4and16:9 - The prompt guide asks for narrative description, double quotes around on-image text, and semantic negatives instead of “no cars”
- Eight scenario branches: e-commerce, storyboard, infographic, logo, branding, brochure, social media, poster
Who it is for and who it is not for
| Good fit | Poor fit |
|---|---|
| Single assets: posters, logo drafts, illustrations, social images | Needing layered or vector sources for refinement |
| Restyling, adding or removing elements, recolouring an existing image | Precise batch layout or a full set of templates |
| Holding a key and accepting a render queue | Confidential material that cannot be uploaded |
How it differs
| Need | Use |
|---|---|
| Generate or modify an image | skywork-design (this page) |
| Generate a docx, pdf, markdown or html document | skywork-doc |
| Generate a presentation deck | skywork-ppt |
| Build a spreadsheet and analyse data | skywork-excel |
Source-level risks
| Risk | Source | Impact |
|---|---|---|
| Input images and prompts leave the machine | --input-image takes local paths and uploads them; Output also returns an OSS URL | Client and unreleased assets leave the machine |
| Failure steers toward a paid upgrade | The Insufficient benefit section of Common Failures | An exhausted quota produces an upsell a human must judge |
| The key comes from the environment | SKYWORK_API_KEY is required in the frontmatter | A missing or rejected key stops the path; auth errors must not be answered with an upgrade |
| Roughly two minutes per image | The opening note and the Usage section | Multi-image work runs serially |