const { GoogleGenAI } = require('@google/genai'); async function main() { const ai = new GoogleGenAI({ apiKey: process.env.GEMINI_API_KEY }); const prompt = `Generate comprehensive SEO metadata and social media content for the following video project. TOPIC: "Summary of scene narrations..." CURRENT TITLE: "Bier: Sein 13.000 Jahre altes Geheimnis, das Sie nicht kennen? 🤯" LANGUAGE: tr (generate all text in THIS language) EXISTING KEYWORDS: Return ONLY valid JSON matching this exact structure, with no markdown formatting or backticks: { "seo": { "title": "SEO optimized title (under 60 chars)", "description": "Meta description (150-200 chars)", "keywords": ["keyword1", "keyword2", "keyword3", "keyword4", "keyword5"], "hashtags": ["#hashtag1", "#hashtag2", "#hashtag3"], "trendingHashtags": ["#trending1", "#trending2"], "estimatedSearchVolume": "Summary of search volume for keywords", "schemaMarkup": { "@type": "VideoObject", "name": "..." } }, "socialContent": { "youtubeTitle": "Clickable YouTube title with emojis", "youtubeDescription": "Full YouTube description including hashtags and call to actions", "tiktokCaption": "Catchy TikTok caption with trending hashtags", "instagramCaption": "Engaging Instagram caption with emojis and hashtags", "twitterText": "Viral X (Twitter) post text under 280 characters" } }`; try { const response = await ai.models.generateContent({ model: 'gemini-1.5-flash', contents: prompt, config: { temperature: 0.8, topP: 0.95, maxOutputTokens: 2048, responseMimeType: 'application/json', }, }); console.log("RESPONSE:", response.text); } catch (err) { console.error(err); } } main();