You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can keep one shared Gemini key, but the better setup is separate keys by workload:
121
+
122
+
-`AI_API_KEY`: WalterLens chat and general AI text features
123
+
-`AI_RECEIPT_API_KEY`: receipt OCR parsing and category extraction
124
+
-`AI_TAX_API_KEY`: admin tax-rate sync
125
+
126
+
All dedicated keys are optional. If you leave them unset, the app falls back to `AI_API_KEY`.
127
+
128
+
Recommended setup:
129
+
130
+
1. Open Google AI Studio and sign in:
131
+
-`https://aistudio.google.com/apikey`
132
+
2. Create three API keys:
133
+
- one for chat/general AI
134
+
- one for receipt parsing
135
+
- one for tax sync
136
+
3. Name them clearly so usage is easy to track:
137
+
-`walletlens-chat`
138
+
-`walletlens-receipts`
139
+
-`walletlens-tax`
140
+
4. Put them in `api/.env`:
141
+
142
+
```env
143
+
AI_API_KEY=your_chat_key
144
+
AI_RECEIPT_API_KEY=your_receipt_key
145
+
AI_TAX_API_KEY=your_tax_key
146
+
```
147
+
148
+
5. Restart the API after editing env vars.
149
+
150
+
Notes:
151
+
152
+
-`AI_RECEIPT_API_KEY` falls back to `AI_API_KEY` if omitted.
153
+
-`AI_TAX_API_KEY` falls back to `AI_API_KEY` if omitted.
154
+
- You can also use the alternate names `GEMINI_RECEIPT_API_KEY` and `GEMINI_TAX_API_KEY`.
155
+
- If you are on Gemini free tier, splitting keys helps isolate features, but quota still depends on the limits of each key/project arrangement in your Google setup.
156
+
116
157
### Google OAuth checklist
117
158
118
159
1. In Google Cloud Console, create/select a project.
0 commit comments