Gemini에 액세스하려면 라이브러리를 다운로드하거나 설치하세요.
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
이 페이지에서는 Gemini에 액세스하기 위해 라이브러리를 다운로드하거나 설치하는 방법에 관한 정보를 제공합니다.
- Python
- SDK:
pip install google-generativeai
- 하위 수준 클라이언트 라이브러리:
pip install google-ai-generativelanguage
- Go
go get github.com/google/generative-ai-go
실행
- Node.js
npm install @google/generative-ai
- 웹
- 웹 앱에
import { GoogleGenerativeAI } from 'https://esm.run/@google/generative-ai'
추가
- Dart (Flutter)
- Dart의 경우:
dart pub add google_generative_ai
를 실행합니다.- Flutter의 경우
flutter pub add google_generative_ai
를 실행합니다.
- Swift
- Swift Package Manager를 사용하여 Xcode 프로젝트에 generative-ai-swift를 추가합니다.
- Android
- Android 프로젝트에
implementation("com.google.ai.client.generativeai:generativeai:0.3.0")
종속 항목을 추가합니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-04-18(UTC)
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"필요한 정보가 없음"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"너무 복잡함/단계 수가 너무 많음"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"오래됨"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"번역 문제"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"샘플/코드 문제"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"기타"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"이해하기 쉬움"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"문제가 해결됨"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"기타"
}]