UNPKG

n8n-nodes-gemini-ai

Version:

n8n community node for Google Gemini AI integration with text generation, file upload & analysis, and TTS (Text-to-Speech) support

39 lines 1.15 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GeminiApi = void 0; class GeminiApi { constructor() { this.name = 'geminiApi'; this.displayName = 'Gemini API'; this.documentationUrl = 'https://ai.google.dev/gemini-api/docs/api-key'; this.properties = [ { displayName: 'API Key', name: 'apiKey', type: 'string', typeOptions: { password: true, }, default: '', description: 'Your Google Gemini API Key', required: true, }, ]; this.authenticate = { type: 'generic', properties: { qs: { key: '={{ $credentials.apiKey }}', }, }, }; this.test = { request: { baseURL: 'https://generativelanguage.googleapis.com/v1beta', url: '/models', }, }; } } exports.GeminiApi = GeminiApi; //# sourceMappingURL=GeminiApi.credentials.js.map