[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-05-12。"],[],[],null,["# Gemini API reference\n\n\u003cbr /\u003e\n\nThe Gemini API lets you access the latest generative models from Google. This\nAPI reference provides detailed information for the classes and methods\navailable in the Gemini API SDKs. Pick a language and follow the setup steps\nto get started building.\n\nPython JavaScript Go Apps Script\n\nInstall the Gemini API library\n------------------------------\n\nMake your first request\n-----------------------\n\nUse the\n[`generateContent`](/api/generate-content#method:-models.generatecontent) method\nto send a request to the Gemini API.\n\nWhat's next\n-----------\n\nIf you're just getting started, check out the following guides, which will help\nyou understand the Gemini API programming model:\n\n- [Gemini API quickstart](/gemini-api/docs/quickstart)\n- [Gemini model guide](/gemini-api/docs/models/gemini)\n- [Prompt design](/gemini-api/docs/prompting-intro)\n\nYou might also want to check out the capabilities guides, which introduce different\nGemini API features and provide code examples:\n\n- [Text generation](/gemini-api/docs/text-generation)\n- [Context caching](/gemini-api/docs/caching)\n- [Embeddings](/gemini-api/docs/embeddings)\n- [Tuning](/gemini-api/docs/model-tuning)"]]