google-genai 1.50.1__py3-none-any.whl → 1.51.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
google/genai/version.py CHANGED
@@ -13,4 +13,4 @@
13
13
  # limitations under the License.
14
14
  #
15
15
 
16
- __version__ = '1.50.1' # x-release-please-version
16
+ __version__ = '1.51.0' # x-release-please-version
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: google-genai
3
- Version: 1.50.1
3
+ Version: 1.51.0
4
4
  Summary: GenAI Python SDK
5
5
  Author-email: Google LLC <googleapis-packages@google.com>
6
6
  License-Expression: Apache-2.0
@@ -1233,7 +1233,7 @@ from google.genai import types
1233
1233
 
1234
1234
  # Generate Image
1235
1235
  response1 = client.models.generate_images(
1236
- model='imagen-3.0-generate-002',
1236
+ model='imagen-4.0-generate-001',
1237
1237
  prompt='An umbrella in the foreground, and a rainy night sky in the background',
1238
1238
  config=types.GenerateImagesConfig(
1239
1239
  number_of_images=1,
@@ -1253,7 +1253,7 @@ from google.genai import types
1253
1253
 
1254
1254
  # Upscale the generated image from above
1255
1255
  response2 = client.models.upscale_image(
1256
- model='imagen-3.0-generate-001',
1256
+ model='imagen-4.0-upscale-preview',
1257
1257
  image=response1.generated_images[0].image,
1258
1258
  upscale_factor='x2',
1259
1259
  config=types.UpscaleImageConfig(
@@ -1314,7 +1314,7 @@ from google.genai import types
1314
1314
 
1315
1315
  # Create operation
1316
1316
  operation = client.models.generate_videos(
1317
- model='veo-2.0-generate-001',
1317
+ model='veo-3.1-generate-preview',
1318
1318
  prompt='A neon hologram of a cat driving at top speed',
1319
1319
  config=types.GenerateVideosConfig(
1320
1320
  number_of_videos=1,
@@ -1342,7 +1342,7 @@ image = types.Image.from_file("local/path/file.png")
1342
1342
 
1343
1343
  # Create operation
1344
1344
  operation = client.models.generate_videos(
1345
- model='veo-2.0-generate-001',
1345
+ model='veo-3.1-generate-preview',
1346
1346
  # Prompt is optional if image is provided
1347
1347
  prompt='Night sky',
1348
1348
  image=image,
@@ -1365,7 +1365,8 @@ video.show()
1365
1365
 
1366
1366
  #### Generate Videos (Video to Video)
1367
1367
 
1368
- Currently, only Vertex supports Video to Video generation (Video extension).
1368
+ Currently, only Gemini Developer API supports video extension on Veo 3.1 for
1369
+ previously generated videos. Vertex supports video extension on Veo 2.0.
1369
1370
 
1370
1371
  ```python
1371
1372
  from google.genai import types
@@ -1375,10 +1376,10 @@ video = types.Video.from_file("local/path/video.mp4")
1375
1376
 
1376
1377
  # Create operation
1377
1378
  operation = client.models.generate_videos(
1378
- model='veo-2.0-generate-001',
1379
+ model='veo-3.1-generate-preview',
1379
1380
  # Prompt is optional if Video is provided
1380
1381
  prompt='Night sky',
1381
- # Input video must be in GCS
1382
+ # Input video must be in GCS for Vertex or a URI for Gemini
1382
1383
  video=types.Video(
1383
1384
  uri="gs://bucket-name/inputs/videos/cat_driving.mp4",
1384
1385
  ),
@@ -1553,7 +1554,7 @@ from google.genai import types
1553
1554
  model = 'gemini-2.5-flash'
1554
1555
  training_dataset = types.TuningDataset(
1555
1556
  # or gcs_uri=my_vertex_multimodal_dataset
1556
- gcs_uri='gs://cloud-samples-data/ai-platform/generative_ai/gemini-1_5/text/sft_train_data.jsonl',
1557
+ gcs_uri='gs://your-gcs-bucket/your-tuning-data.jsonl',
1557
1558
  )
1558
1559
  ```
1559
1560
 
@@ -5,18 +5,18 @@ google/genai/_api_module.py,sha256=lj8eUWx8_LBGBz-49qz6_ywWm3GYp3d8Bg5JoOHbtbI,9
5
5
  google/genai/_automatic_function_calling_util.py,sha256=xXNkJR-pzSMkeSXMz3Jw-kMHFbTJEiRJ3wocuwtWW4I,11627
6
6
  google/genai/_base_transformers.py,sha256=wljA6m4tLl4XLGlBC2DNOls5N9-X9tffBq0M7i8jgpw,1034
7
7
  google/genai/_base_url.py,sha256=E5H4dew14Y16qfnB3XRnjSCi19cJVlkaMNoM_8ip-PM,1597
8
- google/genai/_common.py,sha256=6_psdFl0iBRwgyIKOuGtugpTCHPGB2zZzsJCVcI_2oI,24114
9
- google/genai/_extra_utils.py,sha256=dqSB1XHO1TLlGqtZz9sShtFnJc2UZgDlG89-dNAAgD0,24263
10
- google/genai/_live_converters.py,sha256=c8UOO7qvWSr11IVbCj-hNDsnZG3y-wyxAGKBDmWUrzE,42715
8
+ google/genai/_common.py,sha256=eq3mvCbq_XZvMbIRwONU_VgfTdNdBDP-5l9ZJtFZZAg,25373
9
+ google/genai/_extra_utils.py,sha256=GXsUfyKAPZaW9_ySvdzSAXThvuzaKwXcAmdHW_hoHpY,25309
10
+ google/genai/_live_converters.py,sha256=sn18ntVlaWsM8sRVXE5oLLnHNY3LjJyStXHFCxFokAE,43721
11
11
  google/genai/_local_tokenizer_loader.py,sha256=7yvJfEkWIpw2ueY4ZmoOAamJD-G7bm_9g44glD6bVwM,7147
12
12
  google/genai/_mcp_utils.py,sha256=HuWJ8FUjquv40Mf_QjcL5r5yXWrS-JjINsjlOSbbyAc,3870
13
13
  google/genai/_operations_converters.py,sha256=zw8DqkgJWHphrw9waAjAiH98QbE2Rnum3zGm02dHQWo,11695
14
14
  google/genai/_replay_api_client.py,sha256=-sZY8pM8JulqTfuqIKaKHCy9MNXF7HJnX6fCzyTMpS0,22617
15
15
  google/genai/_test_api_client.py,sha256=4ruFIy5_1qcbKqqIBu3HSQbpSOBrxiecBtDZaTGFR1s,4797
16
- google/genai/_tokens_converters.py,sha256=bgd4ry0bOLcPdVnkU_Lw2pcrS1j79mw3r6pLid18-iw,14425
16
+ google/genai/_tokens_converters.py,sha256=sAx3CjSKR2PX2eppuJPvt_LgjYJZF9zh-fSUvDwa0WQ,15431
17
17
  google/genai/_transformers.py,sha256=I19zzGXCrRd64lrBPpeawhBq7vifKn3fNUX9iIJ8Kwo,43266
18
- google/genai/batches.py,sha256=R2jXrQvEFBIWo_aq-gWU4gyJ_O8R-ymoHsikH98NoWI,75428
19
- google/genai/caches.py,sha256=dhb97qX1ECy7MRPggoKbv-GsiZLTGEinXXfZBAkIMsY,45207
18
+ google/genai/batches.py,sha256=qka7tvHWrtW3VRCHC0GW4LvAPG3KJeYW23gB5ItCCsQ,78665
19
+ google/genai/caches.py,sha256=TINcRrOap12LfNZyu9dAQb1xDvNQhzoovR0y_hjyGjo,47593
20
20
  google/genai/chats.py,sha256=pIBw8d13llupLn4a7vP6vnpbzDcvCCrZZ-Q2r8Cvo7g,16652
21
21
  google/genai/client.py,sha256=xKiAg6h4kB_l9uBwgJzSlSjZ0icyCMsWPTFvhJ0_HJQ,13526
22
22
  google/genai/documents.py,sha256=p_-ZVIhmgV1Bb0wbQzCFXjeqNcDxUNG3REddYJdHk5c,16868
@@ -26,16 +26,16 @@ google/genai/files.py,sha256=2TkcZo7iviHA48OEjc9YnyirZ-umBUN7Z4Gdr4nHyJI,31551
26
26
  google/genai/live.py,sha256=IzBIHjjasfHivDxhi4HvMru0G8LlkFsM_e6QCgSL1cQ,41278
27
27
  google/genai/live_music.py,sha256=Y7I7jh5SAKgyjBIMLboH0oTnZJ18uOT2SpRDKURvp94,6783
28
28
  google/genai/local_tokenizer.py,sha256=EKZ72cV2Zfutlo_efMOPnLRNZN4WQe57rD3G80cF340,14109
29
- google/genai/models.py,sha256=8ZOcH55MKjuCxHQX9Jad7e5ztCszEXOEZMHm9oq3WEk,234213
29
+ google/genai/models.py,sha256=GTw9-wPbcKRaJSsrc-jyaflUmh5aF7qTXLOFLy97Zls,238803
30
30
  google/genai/operations.py,sha256=FXJOnYp2HA5Xqa5mHW67mSa9p1D_EaGGyUoKc09xFPQ,16384
31
31
  google/genai/pagers.py,sha256=1i8NXDuKuQznFin5H5-I0hmj6H5YMTYsEJP7S0ITSbY,7158
32
32
  google/genai/py.typed,sha256=RsMFoLwBkAvY05t6izop4UHZtqOPLiKp3GkIEizzmQY,40
33
33
  google/genai/tokens.py,sha256=4BPW0gGWFeFVk3INkuY2tfREnsrvzQDhouvRI6_F9Q8,12235
34
34
  google/genai/tunings.py,sha256=8JTTXCwrmzS6gGorMhOmgXJKy8VjEw83gtrymPpPYkQ,73623
35
- google/genai/types.py,sha256=cdy0ToeFt9ycois5ko9IQtFqG7jWhlnOSGWJxWzooEE,632574
36
- google/genai/version.py,sha256=QTQcmOJcS1u0J9Tdf08J-gfHndryKlFvsa4zxWDEHBA,627
37
- google_genai-1.50.1.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
38
- google_genai-1.50.1.dist-info/METADATA,sha256=N58MYvisL5EJ-5Uw041nICsdaiZ6h3OTaZnzCv-Da40,46732
39
- google_genai-1.50.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
40
- google_genai-1.50.1.dist-info/top_level.txt,sha256=_1QvSJIhFAGfxb79D6DhB7SUw2X6T4rwnz_LLrbcD3c,7
41
- google_genai-1.50.1.dist-info/RECORD,,
35
+ google/genai/types.py,sha256=7dy5x4yiaT_1pjkWp89NUkhkji-NXe2mO3TmJLTt6OA,642865
36
+ google/genai/version.py,sha256=T6wmItNBkQEhP7HT6ii4ENcN1_4rr9ShX8OU57PDzDs,627
37
+ google_genai-1.51.0.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
38
+ google_genai-1.51.0.dist-info/METADATA,sha256=yVW7WChOLpIYKnf2EmKGZxnkSz0WyzvR5w2KzLxISrU,46808
39
+ google_genai-1.51.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
40
+ google_genai-1.51.0.dist-info/top_level.txt,sha256=_1QvSJIhFAGfxb79D6DhB7SUw2X6T4rwnz_LLrbcD3c,7
41
+ google_genai-1.51.0.dist-info/RECORD,,