Gemini API ju lejon të përdorni modelet më të fundit gjeneruese nga Google. Kjo referencë API ofron informacion të detajuar për klasat dhe metodat e disponueshme në Gemini API SDK. Zgjidhni një gjuhë dhe ndiqni hapat e konfigurimit për të filluar ndërtimin.
Instaloni bibliotekën Gemini API
Bëni kërkesën tuaj të parë
Përdorni metodën generateContent për të dërguar një kërkesë në API të Gemini.
Çfarë është më pas
Nëse sapo po filloni, shikoni udhëzuesit e mëposhtëm, të cilët do t'ju ndihmojnë të kuptoni modelin e programimit të Gemini API:
[[["E lehtë për t'u kuptuar","easyToUnderstand","thumb-up"],["E zgjidhi problemin tim","solvedMyProblem","thumb-up"],["Tjetër","otherUp","thumb-up"]],[["Mungojnë informacionet që më nevojiten","missingTheInformationINeed","thumb-down"],["Shumë e ndërlikuar/shumë hapa","tooComplicatedTooManySteps","thumb-down"],["E papërditësuar","outOfDate","thumb-down"],["Problem përkthimi","translationIssue","thumb-down"],["Problem me kampionët/kodin","samplesCodeIssue","thumb-down"],["Tjetër","otherDown","thumb-down"]],["Përditësimi i fundit: 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)"]]