You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Google AI Swift SDK is the easiest way for Swift developers to build with the Gemini API. The Gemini API gives you access to Gemini [models](https://ai.google.dev/models/gemini) created by [Google DeepMind](https://deepmind.google/technologies/gemini/#introduction). Gemini models are built from the ground up to be multimodal, so you can reason seamlessly across text, images, and code.
6
+
The Google AI Swift SDK is the easiest way for Swift developers to build with the Gemini API. The Gemini API gives you access to Gemini [models](https://ai.google.dev/models/gemini) created by [Google DeepMind](https://deepmind.google/technologies/gemini/#introduction). Gemini models are built from the ground up to be multimodal, so you can reason seamlessly across text, images, and code.
7
7
8
8
> [!CAUTION]
9
9
> **The Google AI SDK for Swift is recommended for prototyping only.** If you plan to enable
10
10
> billing, we strongly recommend that you use a backend SDK to access the Google AI Gemini API. You
11
11
> risk potentially exposing your API key to malicious actors if you embed your API key directly in
12
12
> your Swift app or fetch it remotely at runtime.
13
13
14
-
For example, with just a few lines of code, you can access Gemini's multimodal capabilities to
15
-
generate text from text-and-image input:
16
-
17
-
18
14
## Get started with the Gemini API
15
+
19
16
1. Go to [Google AI Studio](https://aistudio.google.com/).
20
17
2. Login with your Google account.
21
18
3.[Create](https://aistudio.google.com/app/apikey) an API key. Note that in Europe the free tier is not available.
@@ -85,7 +82,6 @@ See the [Gemini API Cookbook](https://github.com/google-gemini/gemini-api-cookbo
85
82
See [Contributing](https://github.com/google/generative-ai-swift/blob/main/docs/CONTRIBUTING.md)
86
83
for more information on contributing to the Google AI SDK for Swift.
87
84
88
-
89
85
## Developers who use the PaLM SDK for Swift (Deprecated)
90
86
91
87
> [!IMPORTANT]
@@ -110,4 +106,4 @@ To see the PaLM documentation and code, go to the
110
106
111
107
## License
112
108
113
-
The contents of this repository are licensed under the [Apache License, version 2.0](http://www.apache.org/licenses/LICENSE-2.0).
109
+
The contents of this repository are licensed under the [Apache License, version 2.0](http://www.apache.org/licenses/LICENSE-2.0).
0 commit comments