-
Notifications
You must be signed in to change notification settings - Fork 54
Open
Labels
Points: 20open-for-allAny one can work on it without getting assigned, every PR can mergeAny one can work on it without getting assigned, every PR can merge
Description
context
we want to ensure contributors can successfully obtain and use a free gemini api key
goal
- obtain free gemini api key
- make a test request using
curl - share proof that the request works
steps
- get a free Gemini API key from google
- use the key to make a simple API request via
curl - capture a screenshot of:
- the curl command
- the successfull responnse
example
example curl request:
curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent" \
-H "x-goog-api-key: $GEMINI_API_KEY" \
-H 'Content-Type: application/json' \
-X POST \
-d '{
"contents": [
{
"parts": [
{
"text": "what is the capital of india"
}
]
}
]
}'replace $GEMINI_API_KEY with the api key you got from google ai studio
deliverables
- screenshot showing
- working curl command
- successful API response
- screenshot image in
extra/with nameyour-github-username.png/jpg/webp whatever
notes
- make sure not to commit or export your API key publicly
- this is a setup and verification task
- keep screenshots clear and readable
- it's an open for all task, so everyone is recommended to do
- this API key will be used later
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Points: 20open-for-allAny one can work on it without getting assigned, every PR can mergeAny one can work on it without getting assigned, every PR can merge