---
title: "Discussion on \"Why Your Google AI Platform API Fails on models.list() but Works on generateContent()\" | Hashnode"
description: "Discussion on \"Why Your Google AI Platform API Fails on models.list() but Works on generateContent()\". Recently, during one of my project implementations, I ran into a fascinating (and frankly, frustrating) edge case while working with the Google Cloud Gemini Java SDK. If you are building applications"
url: "https://hashnode.com/posts/why-your-google-ai-platform-api-fails-on-models-list-but-works-on-generatecontent/6a0f34c9d8e265f60d3641ef"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Why Your Google AI Platform API Fails on models.list() but Works on generateContent()](https://himanshusoni30.hashnode.dev/why-your-google-ai-platform-api-fails-on-models-list-but-works-on-generatecontent?utm_source=hashnode&utm_medium=feed)

Recently, during one of my project implementations, I ran into a fascinating (and frankly, frustrating) edge case while working with the Google Cloud Gemini Java SDK. If you are building applications

May 21 · 5 min read · himanshusoni30.hashnode.dev  
Read the article

-   [#geminiapi](https://hashnode.com/tag/geminiapi)
-   [#gemini-java-sdk](https://hashnode.com/tag/gemini-java-sdk)
-   [#gemini](https://hashnode.com/tag/gemini)
-   [#generative-ai](https://hashnode.com/tag/generative-ai)
-   [#google-cloud](https://hashnode.com/tag/google-cloud)
-   [#ai-platform-api](https://hashnode.com/tag/ai-platform-api)

## Written by

[Himanshu Soni](https://hashnode.com/@himsoni)

@himsoni · Bengaluru India

  
[View profile](https://hashnode.com/@himsoni)

Staff QA Engineer

Seasoned QA Engineer with experience in Software Testing across Banking, Travel, and Telecom domains.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
