Update API key usage and credit checking logic for comic generation

This commit is contained in:
Riccardo Giorato
2026-01-13 13:17:16 +01:00
parent 0a536dc5af
commit eb692bcca3
6 changed files with 212 additions and 26 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ export async function POST(request: NextRequest) {
if (isUsingFreeTier) {
// Use default API key for free tier
finalApiKey = process.env.TOGETHER_API_KEY_DEFAULT;
finalApiKey = process.env.TOGETHER_API_KEY
if (!finalApiKey) {
return NextResponse.json(
{