1. Google Cloud 프로젝트 생성하기 및 키 발급받기 Gemini API 키를 발급받기 위해선 프로젝트를 생성해야 한다. Google Cloud 사이트에 접속한 뒤, 프로젝트 선택을 선택한다. 이후 새 프로젝트 버튼을 누른 후, 아래와 같이 프로젝트를 생성한다. 이제 키를 발급받기 위해서 Google AI Studio 사이트에 들어가고, API 키 만들기 > 프로젝트 가져오기 > 생성한 프로젝트 클릭한 후, 키 만들기를 클릭한다. 키를 생성하면 아래 버튼을 통해 키를 복사/붙여넣기 할 수 있다. 2. 외부 모듈 implementation gemini를 사용하기 위해서는 다음의 모듈을 implementation 해줘야 한다. dependencies { ... implementation 'com.squareup.okhttp3:okhttp:4.10.0' } 또한, Gemini와 인터넷 통신을 진행해야 하므로, 인터넷 접속 권한을 아래와 같이 부여해야 한다.
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Get in touch with Uri
Contact Uri, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack