Android Developers
1.22K subscribers
164 photos
4 videos
57 files
59 links
Here You Can Get Android App Development Tutorials For Free

LinkTree
https://linktr.ee/androiddeveloperspage

For Comments & Feedback
@androiddevstutorialscommentbot

Contact Me
@SE_BIBEL_MEK
Download Telegram
How To Send Test API Request To Gemini API In Android Using Termux

To Send Test API Request To Google Gemini API Follow The Following Steps.

Step1. If You Don't Have Termux App Installed On Your Android Device You Can Install It From Here.

* You Can Get Your Gemini API Key Here.

https://aistudio.google.com

Step2. Check If CURL(Client URL) Is Installed On Your Termux Environment Using This Command.

curl --version

If It Installed It Should Print The Version Like This(On Most Cases It Should Come Pre installed On Termux By Default).

curl 8.8.0 (aarch64-unknown-linux-android) libcurl/8.8.0 OpenSSL/3.2.1 zlib/1.3.1 libssh2/1.11.0 nghttp2/1.62.1 nghttp3/1.4.0
Release-Date: 2024-05-22
Protocols: dict file ftp ftps gopher gophers http https imap imaps ipfs ipns mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS HSTS HTTP2 HTTP3 HTTPS-proxy IPv6 Largefile libz NTLM SSL threadsafe UnixSockets

If It Doesn't Installed You Can Install It Using This Command.

pkg install curl

Step3. Copy & Paste This Command To Send Test API Request To Google Gemini API Using CURL.

curl \
-H 'Content-Type: application/json' \
-d '{"contents":[{"parts":[{"text":"What Is Large Language Model"}]}]}' \
-X POST 'https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash-latest:generateContent?key=YOUR_API_KEY'

Step4. If The Request Succeeded You Will Get A JSON Encoded Response Like This.
❀1
😁4❀1
😁7❀1πŸ‘1
What Tutorial You Want In The Next Post? In Comment
How To Convert APK To AAB(Android App Bundle) File In Android

An AAB (Android App Bundle) file is a publishing format introduced by Google to optimize app delivery for Android devices. Unlike the traditional APK (Android Package), which contains the entire app with all resources, an AAB file allows Google Play to create optimized APKs tailored to the user's device configuration.
❀1
πŸ‘6🀣3❀1
❀1
😁4πŸ”₯3❀1
❀3😁1
Screen Capture Permission Sketchware Pro Project
❀3
❀1πŸ€”1