The Gemini API lets you access the latest generative models from Google. This
API reference provides detailed information for the classes and methods
available in the Gemini API SDKs. Pick a language and follow the setup steps
to get started building.
Install the Gemini API library
Make your first request
Use the
generateContent method
to send a request to the Gemini API.
What's next
If you're just getting started, check out the following guides, which will help
you understand the Gemini API programming model:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-12 UTC."],[],[],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)"]]