Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Gemini using C# on Google.Cloud.AIPlatform.V1

Hi,

Is it possible to use Gemini PRO model using C# Google.Cloud.AIPlatform.V1 library?

I tryed but I was only able to use bison models, when I try to use Gemini I get the following error:

{"Status(StatusCode=\"FailedPrecondition\", Detail=\"Gemini cannot be accessed through Vertex Predict/RawPredict API. Please follow https://cloud.google.com/vertex-ai/docs/generative-ai/start/quickstarts/quickstart-multimodal for Gemini usage.\")"}

Thank you.

Solved Solved
1 1 3,727
1 ACCEPTED SOLUTION

Can you try the setup listed on this documentation: https://cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest

But looking at the link pointed out by the error there is no C# or .net related steps currently for Gemini Pro this is possibly due to the preview state of the API.

I would suggest to look out for updates in the release notes link of the page:

nceniza_0-1707492301849.png

 

View solution in original post

1 REPLY 1

Can you try the setup listed on this documentation: https://cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1/latest

But looking at the link pointed out by the error there is no C# or .net related steps currently for Gemini Pro this is possibly due to the preview state of the API.

I would suggest to look out for updates in the release notes link of the page:

nceniza_0-1707492301849.png