skip to Main Content

How to get JSON output from gemini-1.5-pro-001 using curl

How can I retrieve data in JSON format from the Gemini 1.5 API using curl? The code below works correctly: curl -H 'Content-Type: application/json' -H "x-goog-api-key: ${API_KEY}" -d '{"contents":[ {"role": "user", "parts":[{"text": "Give me five subcategories of jazz?"}]}]}' "https://generativelanguage.googleapis.com/v1/models/gemini-pro:generateContent" But…

VIEW QUESTION

search JSON by value

I'm trying to use Python to search a json by its value, not its variable. Basically: I want ot search .a json file for the string/second vaue and return the first value I'm making a stenography game, and I'm trying…

VIEW QUESTION
Back To Top
Search