@dorely13/ai-imagegen-cli 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/help.js +5 -3
- package/dist/index.js +392 -401
- package/dist/index.js.map +1 -1
- package/dist/usage-log.js +39 -0
- package/package.json +45 -45
- package/skill/SKILL.md +18 -4
package/dist/help.js
CHANGED
|
@@ -25,7 +25,7 @@ Supported protocols: OpenRouter dedicated Images API and OpenAI Images JSON /
|
|
|
25
25
|
multipart endpoints, not arbitrary HTTP templates. Options vary by model.
|
|
26
26
|
OpenRouter accepts aspect ratios; openai-images needs pixels or presets:
|
|
27
27
|
square 1024x1024, portrait 1024x1536, landscape 1536x1024, wide 1536x864.
|
|
28
|
-
Auto options are omitted. Native masks require openai-images
|
|
28
|
+
Auto options are omitted. Native masks require openai-images.
|
|
29
29
|
Outputs are measured and converted to PNG/JPEG/WebP without resizing. Count uses
|
|
30
30
|
separate single-image requests without automatic retries or model substitution.
|
|
31
31
|
`;
|
|
@@ -63,7 +63,9 @@ Supported Codex models (account availability is determined by the provider):
|
|
|
63
63
|
Use full model IDs; other provider-supported IDs may also be supplied.
|
|
64
64
|
Model precedence: --model > constructor imageModel (library callers) >
|
|
65
65
|
IMAGEGEN_CODEX_IMAGE_MODEL > gpt-image-2.5-flare.
|
|
66
|
-
|
|
66
|
+
Codex may override the requested model, quality, and size; results report the
|
|
67
|
+
returned dimensions. Codex ignores --mask; describe the region in the prompt.
|
|
68
|
+
IMAGEGEN_USAGE_LOG=<file> appends one prompt-free JSON usage line per result.
|
|
67
69
|
|
|
68
70
|
Codex quality: auto (default), low, medium, high; Flare/Sunburst also support
|
|
69
71
|
xhigh and max. gpt-image-2 rejects xhigh/max.
|
|
@@ -76,7 +78,7 @@ const GENERATE_EXAMPLES = `Examples:
|
|
|
76
78
|
`;
|
|
77
79
|
const EDIT_EXAMPLES = `Edit options:
|
|
78
80
|
--source <file> Source image (required)
|
|
79
|
-
--mask <file> Optional edit mask (Codex
|
|
81
|
+
--mask <file> Optional edit mask (openai-images; Codex ignores it)
|
|
80
82
|
|
|
81
83
|
Examples:
|
|
82
84
|
imagegen edit --format webp --source ./product.png --prompt "make the product blue" --out ./blue.webp
|