@purpleschool/gptbot 0.14.44 → 0.14.46

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.
@@ -1,6 +1,6 @@
1
1
  import { ImageModelPricingRules } from '../../models';
2
2
  export type GptImage2Quality = 'low' | 'medium' | 'high';
3
- export type GptImage2AspectRatio = '1:1' | '16:9' | '9:16' | '21:9';
3
+ export type GptImage2AspectRatio = '1:1' | '4:3' | '5:4' | '16:9' | '21:9' | '3:4' | '4:5' | '9:16' | '9:21';
4
4
  export type GptImage2ResolutionTier = '1K' | '2K' | '4K';
5
5
  export declare const GPT_IMAGE_2_DEFAULT_OUTPUT_PRICE_PER_1M_USD = 30;
6
6
  export declare const DEFAULT_STAR_PRICE_USD = 0.018;
@@ -14,21 +14,36 @@ exports.GPT_IMAGE_2_INPUT_IMAGE_SURCHARGE_STARS = 2;
14
14
  const GPT_IMAGE_2_OUTPUT_TOKENS_BY_QUALITY_RATIO_AND_TIER = {
15
15
  low: {
16
16
  '1:1': { '1K': 196, '2K': 397, '4K': 659 },
17
+ '4:3': { '1K': 163, '2K': 361, '4K': 494 },
18
+ '5:4': { '1K': 173, '2K': 377, '4K': 533 },
17
19
  '16:9': { '1K': 106, '2K': 205, '4K': 371 },
18
- '9:16': { '1K': 106, '2K': 205, '4K': 371 },
19
20
  '21:9': { '1K': 90, '2K': 192, '4K': 234 },
21
+ '3:4': { '1K': 163, '2K': 361, '4K': 494 },
22
+ '4:5': { '1K': 173, '2K': 377, '4K': 533 },
23
+ '9:16': { '1K': 106, '2K': 205, '4K': 371 },
24
+ '9:21': { '1K': 90, '2K': 192, '4K': 232 },
20
25
  },
21
26
  medium: {
22
27
  '1:1': { '1K': 1756, '2K': 3568, '4K': 5930 },
28
+ '4:3': { '1K': 1500, '2K': 3333, '4K': 4565 },
29
+ '5:4': { '1K': 1510, '2K': 3303, '4K': 4667 },
23
30
  '16:9': { '1K': 947, '2K': 1843, '4K': 3336 },
24
- '9:16': { '1K': 947, '2K': 1843, '4K': 3336 },
25
31
  '21:9': { '1K': 809, '2K': 1724, '4K': 2099 },
32
+ '3:4': { '1K': 1500, '2K': 3333, '4K': 4565 },
33
+ '4:5': { '1K': 1510, '2K': 3303, '4K': 4667 },
34
+ '9:16': { '1K': 947, '2K': 1843, '4K': 3336 },
35
+ '9:21': { '1K': 809, '2K': 1724, '4K': 1985 },
26
36
  },
27
37
  high: {
28
38
  '1:1': { '1K': 7024, '2K': 14272, '4K': 23719 },
39
+ '4:3': { '1K': 5916, '2K': 13149, '4K': 18010 },
40
+ '5:4': { '1K': 6119, '2K': 13385, '4K': 18665 },
29
41
  '16:9': { '1K': 3787, '2K': 7370, '4K': 13342 },
30
- '9:16': { '1K': 3787, '2K': 7370, '4K': 13342 },
31
42
  '21:9': { '1K': 3159, '2K': 6729, '4K': 8196 },
43
+ '3:4': { '1K': 5916, '2K': 13149, '4K': 18010 },
44
+ '4:5': { '1K': 6119, '2K': 13385, '4K': 18665 },
45
+ '9:16': { '1K': 3787, '2K': 7370, '4K': 13342 },
46
+ '9:21': { '1K': 3159, '2K': 6729, '4K': 8135 },
32
47
  },
33
48
  };
34
49
  function getGptImage2OutputTokensByTier(params) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot",
3
- "version": "0.14.44",
3
+ "version": "0.14.46",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",