Skip to content

Vertex AI via API keyΒ #3167

@shandheap

Description

@shandheap

Description

Google launched Vertex AI Studio which allows users to use Vertex AI via api key. Currently Pydantic AI only supports using api keys through the Generative Language API, whereas Vertex AI is only supported via service account: https://ai.pydantic.dev/models/google/

I've written a custom model wrapper that uses the Vertex AI api endpoint with the api key but it would be ideal if Pydantic AI supports this out of the box since the implementation is vulnerable to breaking changes in Pydantic AI and requires additional overhead to maintain.

References

Vertex AI docs for usage with api key: https://cloud.google.com/vertex-ai/generative-ai/docs/start/quickstart?usertype=apikey

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions