egaki 0.4.0 → 0.4.1

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/CHANGELOG.md CHANGED
@@ -2,6 +2,19 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## 0.4.1
6
+
7
+ 1. **Added `gpt-image-2` model** — OpenAI's new flagship image generation model (released 2026-04-21) is now available in the model catalog:
8
+
9
+ ```bash
10
+ egaki image "a dreamy watercolor landscape" -m gpt-image-2 -o landscape.png
11
+ egaki models --json | jq '.[] | select(.id == "gpt-image-2")'
12
+ ```
13
+
14
+ Supports editing, inpainting, and multiple output images. Token-based pricing (~$0.053 for medium-quality 1024×1024).
15
+
16
+ 2. **`chatgpt-image-latest` now tracks `gpt-image-2`** — the rolling alias has been updated from `gpt-image-1.5` to `gpt-image-2`, with pricing adjusted accordingly.
17
+
5
18
  ## 0.4.0
6
19
 
7
20
  1. **ChatGPT login for OpenAI image generation** — use your ChatGPT subscription in `egaki` without a separate OpenAI platform API key:
@@ -1 +1 @@
1
- {"version":3,"file":"model-catalog.d.ts","sourceRoot":"","sources":["../src/model-catalog.ts"],"names":[],"mappings":"AAUA,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,WAAW,CAAA;IACjB,kDAAkD;IAClD,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,WAAW,CAAA;IACjB,mCAAmC;IACnC,SAAS,EAAE,MAAM,CAAA;IACjB,oCAAoC;IACpC,UAAU,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,SAAS,GAAG,YAAY,GAAG,YAAY,CAAA;AAEnD,MAAM,MAAM,aAAa,GAAG;IAC1B,wCAAwC;IACxC,OAAO,EAAE,OAAO,CAAA;IAChB,mCAAmC;IACnC,UAAU,EAAE,OAAO,CAAA;IACnB,8BAA8B;IAC9B,YAAY,EAAE,MAA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,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,kCAAkC;IAClC,IAAI,EAAE,OAAO,CAAA;IACb,uCAAuC;IACvC,cAAc,EAAE,OAAO,CAAA;CACxB,CAAA;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,iEAAiE;IACjE,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,OAAO,GAAG,MAAM,CAAA;IAC1B,mDAAmD;IACnD,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,SAAS,CAAA;IACf,QAAQ,EAAE,aAAa,CAAA;CACxB,CAAA;AA+ED,eAAO,MAAM,OAAO,EAAE,UAAU,EAy6B/B,CAAA;AAMD,wBAAgB,SAAS,CAAC,EAAE,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAE5D"}
@@ -437,14 +437,33 @@ export const CATALOG = [
437
437
  multipleImages: true,
438
438
  },
439
439
  },
440
+ {
441
+ id: 'gpt-image-2',
442
+ name: 'GPT Image 2',
443
+ description: 'State-of-the-art image generation model with token-based pricing. ' +
444
+ 'Cost varies by quality and size; $0.053 is the medium-quality 1024×1024 estimate.',
445
+ released: '2026-04-21',
446
+ ...openaiImage,
447
+ // Token-based pricing: $30/1M output image tokens. Medium quality 1024×1024 ≈ $0.053.
448
+ cost: { type: 'per-image', perImage: 0.053 },
449
+ features: {
450
+ editing: true,
451
+ inpainting: true,
452
+ aspectRatios: [],
453
+ sizes: ['1024x1024', '1536x1024', '1024x1536'],
454
+ seed: false,
455
+ multipleImages: true,
456
+ },
457
+ },
440
458
  {
441
459
  id: 'chatgpt-image-latest',
442
460
  name: 'ChatGPT Image',
443
461
  description: 'Rolling-latest alias that tracks the newest ChatGPT image model. Currently points ' +
444
- 'to gpt-image-1.5. Pricing may shift when the alias retargets to a newer model.',
462
+ 'to gpt-image-2. Pricing may shift when the alias retargets to a newer model.',
445
463
  released: '2026-01',
446
464
  ...openaiImage,
447
- cost: { type: 'per-image', perImage: 0.034 },
465
+ // Matches gpt-image-2 medium quality 1024×1024 estimate.
466
+ cost: { type: 'per-image', perImage: 0.053 },
448
467
  features: {
449
468
  editing: true,
450
469
  inpainting: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "egaki",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "type": "module",
5
5
  "main": "./dist/cli.js",
6
6
  "types": "./dist/cli.d.ts",
@@ -506,15 +506,35 @@ export const CATALOG: ModelEntry[] = [
506
506
  multipleImages: true,
507
507
  },
508
508
  },
509
+ {
510
+ id: 'gpt-image-2',
511
+ name: 'GPT Image 2',
512
+ description:
513
+ 'State-of-the-art image generation model with token-based pricing. ' +
514
+ 'Cost varies by quality and size; $0.053 is the medium-quality 1024×1024 estimate.',
515
+ released: '2026-04-21',
516
+ ...openaiImage,
517
+ // Token-based pricing: $30/1M output image tokens. Medium quality 1024×1024 ≈ $0.053.
518
+ cost: { type: 'per-image', perImage: 0.053 },
519
+ features: {
520
+ editing: true,
521
+ inpainting: true,
522
+ aspectRatios: [],
523
+ sizes: ['1024x1024', '1536x1024', '1024x1536'],
524
+ seed: false,
525
+ multipleImages: true,
526
+ },
527
+ },
509
528
  {
510
529
  id: 'chatgpt-image-latest',
511
530
  name: 'ChatGPT Image',
512
531
  description:
513
532
  'Rolling-latest alias that tracks the newest ChatGPT image model. Currently points ' +
514
- 'to gpt-image-1.5. Pricing may shift when the alias retargets to a newer model.',
533
+ 'to gpt-image-2. Pricing may shift when the alias retargets to a newer model.',
515
534
  released: '2026-01',
516
535
  ...openaiImage,
517
- cost: { type: 'per-image', perImage: 0.034 },
536
+ // Matches gpt-image-2 medium quality 1024×1024 estimate.
537
+ cost: { type: 'per-image', perImage: 0.053 },
518
538
  features: {
519
539
  editing: true,
520
540
  inpainting: true,