Skip to content

Commit

Permalink
Adding a note about free tier not available in Europe (#401)
Browse files Browse the repository at this point in the history
* Adding a note about free tier not available in Europe

* Numbering the steps of the usage example

* Formatting

* Un-Formatting
  • Loading branch information
Giom-V authored Jul 1, 2024
1 parent 235ade7 commit b91cbf2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ The Google AI Python SDK is the easiest way for Python developers to build with
## Get started with the Gemini API
1. Go to [Google AI Studio](https://aistudio.google.com/).
2. Login with your Google account.
3. [Create](https://aistudio.google.com/app/apikey) an API key.
3. [Create](https://aistudio.google.com/app/apikey) an API key. Note that in Europe the free tier is not available.
4. Try a Python SDK [quickstart](https://github.com/google-gemini/gemini-api-cookbook/blob/main/quickstarts/Prompting.ipynb) in the [Gemini API Cookbook](https://github.com/google-gemini/gemini-api-cookbook/).
5. For detailed instructions, try the
[Python SDK tutorial](https://ai.google.dev/tutorials/python_quickstart) on [ai.google.dev](https://ai.google.dev).

## Usage example
See the [Gemini API Cookbook](https://github.com/google-gemini/gemini-api-cookbook/) or [ai.google.dev](https://ai.google.dev) for complete code.

Install from [PyPI](https://pypi.org/project/google-generativeai).
1. Install from [PyPI](https://pypi.org/project/google-generativeai).

`pip install -U google-generativeai`

Import the SDK and configure your API key.
2. Import the SDK and configure your API key.

```python
import google.generativeai as genai
Expand All @@ -30,7 +30,7 @@ import os
genai.configure(api_key=os.environ["GOOGLE_API_KEY"])
```

Create a model and run a prompt.
3. Create a model and run a prompt.

```python
model = genai.GenerativeModel('gemini-1.0-pro-latest')
Expand Down

0 comments on commit b91cbf2

Please sign in to comment.