Skip to content

Commit af2343e

Browse files
authored
Merge pull request #61 from jamesmcroft/gpt-image-1-support
Added gpt-image-1 support
2 parents 541b7c9 + 981a962 commit af2343e

File tree

3 files changed

+104
-66
lines changed

3 files changed

+104
-66
lines changed

package-lock.json

Lines changed: 61 additions & 61 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
"devDependencies": {
2222
"@types/react": "^18.3.12",
2323
"@types/react-dom": "^18.3.1",
24-
"@vitejs/plugin-react": "^4.5.1",
25-
"eslint": "^9.28.0",
24+
"@vitejs/plugin-react": "^4.5.2",
25+
"eslint": "^9.29.0",
2626
"eslint-plugin-react": "^7.37.5",
2727
"eslint-plugin-react-hooks": "^5.2.0",
2828
"eslint-plugin-react-refresh": "^0.4.20",
2929
"vite": "^6.3.5"
3030
}
31-
}
31+
}

src/stores/ModelStore.js

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const modelStore = (set, get) => ({
2424
imageMinSizeLength: 768,
2525
tileSizeLength: 512,
2626
baseTokens: 75,
27-
costPerMillionTokens: 10,
27+
costPerMillionTokens: 2,
2828
},
2929
{
3030
name: "o1 (2024-12-17 - Global)",
@@ -83,7 +83,7 @@ export const modelStore = (set, get) => ({
8383
imageMinSizeLength: 768,
8484
tileSizeLength: 512,
8585
baseTokens: 85,
86-
costPerMillionTokens: 3.025,
86+
costPerMillionTokens: 2.75,
8787
},
8888
{
8989
name: "GPT-4o (2024-08-06 - Global)",
@@ -155,6 +155,44 @@ export const modelStore = (set, get) => ({
155155
},
156156
],
157157
},
158+
{
159+
name: "Image Generation",
160+
items: [
161+
{
162+
name: "gpt-image-1 (Global)",
163+
tokensPerTile: 129,
164+
maxImageDimension: 2048,
165+
imageMinSizeLength: 512,
166+
tileSizeLength: 512,
167+
baseTokens: 65,
168+
costPerMillionTokens: 10,
169+
comment:
170+
"This calculator only provides the input tokens consumed by the image generation model, not the output tokens for the images generated by the model.",
171+
},
172+
{
173+
name: "gpt-image-1 (Data Zone)",
174+
tokensPerTile: 129,
175+
maxImageDimension: 2048,
176+
imageMinSizeLength: 512,
177+
tileSizeLength: 512,
178+
baseTokens: 65,
179+
costPerMillionTokens: 11,
180+
comment:
181+
"This calculator only provides the input tokens consumed by the image generation model, not the output tokens for the images generated by the model.",
182+
},
183+
{
184+
name: "gpt-image-1 (Standard)",
185+
tokensPerTile: 129,
186+
maxImageDimension: 2048,
187+
imageMinSizeLength: 512,
188+
tileSizeLength: 512,
189+
baseTokens: 65,
190+
costPerMillionTokens: 11,
191+
comment:
192+
"This calculator only provides the input tokens consumed by the image generation model, not the output tokens for the images generated by the model.",
193+
},
194+
],
195+
},
158196
{
159197
name: "Preview",
160198
items: [

0 commit comments

Comments
 (0)