Skip to content

Commit 9c9d845

Browse files
committed
feat: add provider api keys page
1 parent d6e34e0 commit 9c9d845

3 files changed

Lines changed: 27 additions & 6 deletions

File tree

README.md

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Related projects:
2525
- writing recommendation
2626
- OpenRouter model ID mapping
2727
- notes and documentation URLs
28+
- API keys page URLs for easy access to provider API key management
2829
- and more
2930

3031
## Models included
@@ -156,11 +157,13 @@ console.log(AI_PROVIDER_CONFIG);
156157
{
157158
openai: {
158159
name: 'OpenAI',
159-
firstParty: true
160+
firstParty: true,
161+
apiKeysPage: 'https://platform.openai.com/api-keys'
160162
},
161163
anthropic: {
162164
name: 'Anthropic',
163-
firstParty: true
165+
firstParty: true,
166+
apiKeysPage: 'https://console.anthropic.com/settings/keys'
164167
},
165168
'azure-openai': {
166169
name: 'Azure OpenAI',
@@ -171,24 +174,33 @@ console.log(AI_PROVIDER_CONFIG);
171174
deepseek: {
172175
name: 'DeepSeek',
173176
firstParty: true,
174-
baseURL: 'https://api.deepseek.com'
177+
baseURL: 'https://api.deepseek.com',
178+
apiKeysPage: 'https://platform.deepseek.com/api_keys'
175179
},
176180
openrouter: {
177181
name: 'OpenRouter',
178182
firstParty: false,
179183
baseURL: 'https://openrouter.ai/api/v1',
180-
website: 'https://openrouter.ai'
184+
website: 'https://openrouter.ai',
185+
apiKeysPage: 'https://openrouter.ai/keys'
181186
},
182187
google: {
183188
name: 'Google',
184189
firstParty: true,
185-
baseURL: 'https://generativelanguage.googleapis.com/v1beta/openai/'
190+
baseURL: 'https://generativelanguage.googleapis.com/v1beta/openai/',
191+
apiKeysPage: 'https://aistudio.google.com/app/apikey'
186192
},
187193
fireworks: {
188194
name: 'Fireworks',
189195
firstParty: false,
190196
baseURL: 'https://api.fireworks.ai/inference/v1',
191197
website: 'https://fireworks.ai'
198+
},
199+
xai: {
200+
name: 'xAI',
201+
firstParty: true,
202+
baseURL: 'https://api.x.ai/v1',
203+
apiKeysPage: 'https://console.x.ai/'
192204
}
193205
}
194206
*/

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "llm-info",
3-
"version": "1.0.55",
3+
"version": "1.0.56",
44
"description": "Information on LLM models, context window token limit, output token limit, pricing and more",
55
"homepage": "https://eval.16x.engineer/",
66
"repository": {

src/provider.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export type FIRST_PARTY_SDK_AI_PROVIDER_TYPE = {
1919
nativeSDK: true;
2020
baseURL?: string;
2121
website?: string;
22+
apiKeysPage?: string;
2223
};
2324

2425
export type FIRST_PARTY_BASE_URL_AI_PROVIDER_TYPE = {
@@ -28,6 +29,7 @@ export type FIRST_PARTY_BASE_URL_AI_PROVIDER_TYPE = {
2829
baseURL: string;
2930
nativeSDK: false;
3031
website?: string;
32+
apiKeysPage?: string;
3133
};
3234

3335
export type THIRD_PARTY_AI_PROVIDER_TYPE = {
@@ -37,6 +39,7 @@ export type THIRD_PARTY_AI_PROVIDER_TYPE = {
3739
nativeSDK: false;
3840
baseURL: string;
3941
website: string;
42+
apiKeysPage?: string;
4043
};
4144

4245
export type AI_PROVIDER_CONFIG_TYPE =
@@ -53,12 +56,14 @@ export const AI_PROVIDER_CONFIG: Record<
5356
firstParty: true,
5457
thirdParty: false,
5558
nativeSDK: true,
59+
apiKeysPage: 'https://platform.openai.com/api-keys',
5660
},
5761
[AI_PROVIDERS.ANTHROPIC]: {
5862
name: 'Anthropic',
5963
firstParty: true,
6064
thirdParty: false,
6165
nativeSDK: true,
66+
apiKeysPage: 'https://console.anthropic.com/settings/keys',
6267
},
6368
[AI_PROVIDERS.AZURE_OPENAI]: {
6469
name: 'Azure OpenAI',
@@ -75,6 +80,7 @@ export const AI_PROVIDER_CONFIG: Record<
7580
baseURL: 'https://api.deepseek.com',
7681
thirdParty: false,
7782
nativeSDK: false,
83+
apiKeysPage: 'https://platform.deepseek.com/api_keys',
7884
},
7985
[AI_PROVIDERS.OPENROUTER]: {
8086
name: 'OpenRouter',
@@ -83,13 +89,15 @@ export const AI_PROVIDER_CONFIG: Record<
8389
website: 'https://openrouter.ai',
8490
thirdParty: true,
8591
nativeSDK: false,
92+
apiKeysPage: 'https://openrouter.ai/settings/keys',
8693
},
8794
[AI_PROVIDERS.GOOGLE]: {
8895
name: 'Google',
8996
firstParty: true,
9097
baseURL: 'https://generativelanguage.googleapis.com/v1beta/openai/',
9198
thirdParty: false,
9299
nativeSDK: true,
100+
apiKeysPage: 'https://aistudio.google.com/app/apikey',
93101
},
94102
[AI_PROVIDERS.FIREWORKS]: {
95103
name: 'Fireworks',
@@ -111,6 +119,7 @@ export const AI_PROVIDER_CONFIG: Record<
111119
baseURL: 'https://api.x.ai/v1',
112120
thirdParty: false,
113121
nativeSDK: false,
122+
apiKeysPage: 'https://console.x.ai/',
114123
},
115124
} as const;
116125

0 commit comments

Comments
 (0)