P Pathrose Member Licensed User Feb 6, 2024 #1 Hi, Help needed to use Google AI studio API in an App..The API looks like given below..It works fine in a windows console.. curl \ -H 'Content-Type: application/json' \ -d '{"contents":[{"parts":[{"text":"Write a story about a magic backpack"}]}]}' \ -X POST https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent?key=YOUR_API_KEY
Hi, Help needed to use Google AI studio API in an App..The API looks like given below..It works fine in a windows console.. curl \ -H 'Content-Type: application/json' \ -d '{"contents":[{"parts":[{"text":"Write a story about a magic backpack"}]}]}' \ -X POST https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent?key=YOUR_API_KEY
DonManfred Expert Licensed User Longtime User Feb 6, 2024 #2 Your threadtitle is UNREADABLE. Please give it a shorter title and put all the description in #1 You can use okhttputils2 to do http-post-calls Last edited: Feb 6, 2024 Upvote 0
Your threadtitle is UNREADABLE. Please give it a shorter title and put all the description in #1 You can use okhttputils2 to do http-post-calls
P PaulMeuris Well-Known Member Licensed User Feb 8, 2024 #3 An example on how to use okhttputils2 (as suggested by @DonManfred and @aeric ) as a replacement for the curl commands can be found in: Couchdb tutorial Look at message #10. Upvote 0
An example on how to use okhttputils2 (as suggested by @DonManfred and @aeric ) as a replacement for the curl commands can be found in: Couchdb tutorial Look at message #10.