@todoforai/image-api 2.2.4 → 2.2.6
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/index.js +4 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2129,7 +2129,7 @@ var require_commander = __commonJS((exports) => {
|
|
|
2129
2129
|
// package.json
|
|
2130
2130
|
var package_default = {
|
|
2131
2131
|
name: "@todoforai/image-api",
|
|
2132
|
-
version: "2.2.
|
|
2132
|
+
version: "2.2.6",
|
|
2133
2133
|
description: "AI image generation and editing through TODOforAI (gpt-image, nano-banana, mai-image)",
|
|
2134
2134
|
type: "module",
|
|
2135
2135
|
bin: {
|
|
@@ -2279,6 +2279,8 @@ async function runImageGen(content, opts) {
|
|
|
2279
2279
|
console.error(`Saved ${opts.output} (${buf.length} bytes)`);
|
|
2280
2280
|
if (result.revisedPrompt)
|
|
2281
2281
|
console.error(`Revised prompt: ${result.revisedPrompt}`);
|
|
2282
|
+
if (result.imageModel)
|
|
2283
|
+
console.error(`Image model: ${result.imageModel}`);
|
|
2282
2284
|
if (result.cost !== undefined)
|
|
2283
2285
|
console.error(`Cost: $${result.cost.toFixed(3)}`);
|
|
2284
2286
|
}
|
|
@@ -2307,7 +2309,7 @@ var editCommand = new Command2("edit").description(`Edit one or more images via
|
|
|
2307
2309
|
|
|
2308
2310
|
// src/index.ts
|
|
2309
2311
|
program.name("tfa-imagegen").description(`Image generation & editing CLI via TODOFORAI backend.
|
|
2310
|
-
` + "Models (--model): nano-banana (default, $0.02, general), gpt-image-2 (best for infographics/text-heavy), nano-banana-pro ($0.
|
|
2312
|
+
` + "Models (--model): nano-banana (default, $0.02, general), gpt-image-2 (best for infographics/text-heavy), nano-banana-pro ($0.27, complex composition). Also: nano-banana-lite ($0.07, fastest, 1K only), mai-image-2.6 ($0.02, Microsoft MAI, fixed 1536\xB2, ~60s; -flash 1024\xB2, ~20s; no size/quality control).").version(package_default.version);
|
|
2311
2313
|
program.addCommand(generateCommand);
|
|
2312
2314
|
program.addCommand(editCommand);
|
|
2313
2315
|
program.parse();
|