model use : gemini-flash-latest AIzaSyCWY8y-qiJGcMXQtHrNOCb_lZjFToRply0 curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-flash-latest:generateContent" \ -H 'Content-Type: application/json' \ -H 'X-goog-api-key: AIzaSyCWY8y-qiJGcMXQtHrNOCb_lZjFToRply0' \ -X POST \ -d '{ "contents": [ { "parts": [ { "text": "Explain how AI works in a few words" } ] } ] }' newbot AIzaSyBw2rRC4i7br2gJZYM_NzgpMMYECQbkrpU curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-flash-latest:generateContent" \ -H 'Content-Type: application/json' \ -H 'X-goog-api-key: AIzaSyBw2rRC4i7br2gJZYM_NzgpMMYECQbkrpU' \ -X POST \ -d '{ "contents": [ { "parts": [ { "text": "Explain how AI works in a few words" } ] } ] }' prompt ai bot Create a modern, fully functional AI chatbot web app using only a single index.html file containing complete HTML, CSS, and JavaScript code. The chatbot should have a premium UI/UX inspired by ChatGPT with a clean layout, smooth animations, responsive design, dark/light mode, and mobile-friendly interface. Requirements: Use pure HTML, CSS, and JavaScript only (all code in one file). Connect the chatbot to Google Gemini API using my API key. Use the model: "gemini-flash-latest". Create a professional chat interface similar to ChatGPT. Include: Sidebar with chat history New chat button Typing animation Auto-scroll to latest message User and AI message bubbles Markdown support for AI responses Code block formatting with copy button File upload support Image upload and preview support Drag-and-drop file upload Send button and Enter-to-send feature Loading animation while AI is responding Responsive design for desktop and mobile Smooth transitions and hover effects Glassmorphism or modern futuristic UI Settings section for API key input Save chats in localStorage Clear chat option Export chat option Voice input using SpeechRecognition API Voice output using SpeechSynthesis API Theme toggle (dark/light mode) Functional Requirements: The AI should answer questions about any subject or topic. Uploaded images/files should be readable and sent with prompts when possible. Use fetch API to call Google Gemini. Handle API errors gracefully. Keep code clean, well-structured, and commented. Gemini API Details: API Endpoint: https://generativelanguage.googleapis.com/v1beta/models/gemini-flash-latest:generateContent Use POST request with JSON body. Store API key securely in JavaScript variable or settings panel. Design Requirements: Make the UI look premium like ChatGPT or modern AI SaaS applications. Use modern fonts, gradients, shadows, and animations. Add animated welcome screen when no messages exist. Add floating action buttons/icons where appropriate. Output Requirement: Return only one complete index.html file with all CSS and JavaScript embedded. The file should run directly in browser without additional setup.