Command:
By @NandhaBots❤️
✅ Tags :
#Chatgpt #NandhaApI
import requests
url = "https://nandha-api.onrender.com/chatgpt"
headers = {
"accept": "application/json",
"Content-Type": "application/x-www-form-urlencoded"
}
data = {"prompt": "Hi, who are you?"}
response = requests.post(url, headers=headers, data=data)
print(response.json())
Takem Time: 4.744's: {'reply': "Hello! I'm ChatGPT, a large language model created by OpenAI. I'm here to help you with information, answer questions, or just have a friendly chat. How can I assist you today?", 'credits': 'Nandha API'}
By @NandhaBots
#Chatgpt #NandhaApI
Please open Telegram to view this post
VIEW IN TELEGRAM
👍2
import requests
url = "https://nandha-api-w2iw.onrender.com/chatbot"
headers = {
"accept": "application/json",
"Content-Type": "application/json",
"Authorization": "Bearer nandhabots"
}
data = {
"user_prompt": "hi"
} # add system_prompt key with str value if you want to customize
response = requests.post(url, headers=headers, json=data)
print(response.json())
{'user_id': '475627e9-ea6a-4f0d-bb0d-f60a7a8ab1d7', 'content': "Hi there! I'm Gojo, your friendly chatbot assistant! It's nice to meet you! How can I help you today? Do you have any questions, topics you'd like to discuss, or perhaps need assistance with something? I'm all ears (or rather, all text)!", 'taken_time': 1.517}
@NandhaBots
#NandhaAPI #ChatBot
import requests
url = "https://nandha-api-w2iw.onrender.com/instadl"
params = {
"Instagram_url": "https://www.instagram.com/reels/audio/432870472278218/"
}
headers = {
"accept": "application/json",
"Authorization": "Bearer nandhabots"
}
response = requests.get(url, params=params, headers=headers)
print(response.json())
#output
{'results': [{'audio': 'https://ig211.snap-data.xyz/ig/1720941797/50c6f907584f7b90a329b3574bde2314eae1b68028cd293acbc0b452cbdeea3f?file=aHR0cHM6Ly9zY29udGVudC5jZG5pbnN0YWdyYW0uY29tL3YvdDM5LjEyODk3LTYvMzA4NDg3MDQ1XzQyMzg3NzA4MzE4NDQzNF80MzY1NjcyMTgyOTgyOTk4NjAyX24ubTRhP19uY19jYXQ9MTAzJmNjYj0xLTcmX25jX3NpZD1jMmRlMmYmX25jX29oYz1oNXNhNldZRk5La1E3a052Z0VvTVFQVCZfbmNfYWQ9ei1tJl9uY19jaWQ9MCZfbmNfaHQ9c2NvbnRlbnQtbXhwMS0xLmNkbmluc3RhZ3JhbS5jb20mb2g9MDBfQVlEaXZrWnhRRktRb1NrNFhHSkxrMVFkOXRMN3F6dFk1S1pJMVBseUpPcGFHZyZvZT02Njk5NUNGMyZuYW1lPVNhdmVJRy5BcHBfNDMyODcwNDcyMjc4MjE4Lm00YQ'}]}
#Instagram #instadl #socialdl #nandhaapi
@NandhaBots
Please open Telegram to view this post
VIEW IN TELEGRAM
Nandha Bot's Channel
import requests url = "https://nandha-api-w2iw.onrender.com/instadl" params = { "Instagram_url": "https://www.instagram.com/reels/audio/432870472278218/" } headers = { "accept": "application/json", "Authorization": "Bearer nandhabots" } response…
Just Change The Api Url With This:
#NandhaAPI
https://nandhabots-api.koyeb.app
render is sleeping too much so we've changed the api to koyeb.
#NandhaAPI
👍4