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
For detailed instructions, see [quickstart](http://cloud.google.com/vertex-ai/docs/generative-ai/start/quickstarts/quickstart-multimodal) and [Introduction to multimodal classes in the Vertex AI SDK](http://cloud.google.com/vertex-ai/docs/generative-ai/multimodal/sdk-for-gemini/gemini-sdk-overview-reference).
25
26
26
-
#### Imports:
27
+
### Imports
28
+
27
29
```python
28
30
from vertexai.generative_models import GenerativeModel, Image, Content, Part, Tool, FunctionDeclaration, GenerationConfig
29
31
```
30
32
31
-
#### Basic generation:
33
+
### Basic generation
34
+
32
35
```python
33
36
from vertexai.generative_models import GenerativeModel
34
37
model = GenerativeModel("gemini-pro")
35
38
print(model.generate_content("Why is sky blue?"))
36
39
```
37
40
38
-
#### Using images and videos
41
+
### Using images and videos
42
+
39
43
```python
40
44
from vertexai.generative_models import GenerativeModel, Image
0 commit comments