5 AI APIs to Automate Your Everyday Problems
Collection of Free AI APIs to Automate your Daily Tasks and Problems

Let's automate our manual work with today's AI technologies. Tasks such as proofreading our documents, creating art, or searching Google for answers can now be done with our favorite programming language, Python. In this article, I will share 5 AI APIs that can help automate our everyday problems. Add this article to your list and let's get started.
Artificial intelligence is the new Electricity
— Andrew Ng
👉 Image Generating AI
Want to turn your imagination into reality, then you might be interested in using an Image Generating AI API. This tool allows you to convert text into beautiful art. One such API is available at Getimg.ai, which offers up to 100 free image generations per month. Check out the API code below to give it a try.
# AI Image Generation
# pip install requestsimport requests
import base64def generate_image(access_token, prompt):
url = "https://api.getimg.ai/v1/stable-diffusion/text-to-image"
headers = {"Authorization": "Bearer {}".format(access_token)}
data = {
"model": "stable-diffusion-v1-5",
"prompt": prompt,
"negative_prompt": "Disfigured, cartoon, blurry",
"width": 512,
"height": 512,
"steps": 25,
"guidance": 7.5,
"seed": 42,
"scheduler": "dpmsolver++",
"output_format": "jpeg",
}
response = requests.post(url, headers=headers, data=data)
image_string = response.content
image_bytes = base64.decodebytes(image_string)
with open("AI_Image.jpeg", "wb") as f:
f.write(image_bytes)if __name__ == "__main__":
api_key = "YOUR_API_KEY"
prompt = "a photo of a cat dressed as a pirate"
image_bytes = generate_image(api_key, prompt)👉 AI Proofreader
Need an AI Proofreader for correcting your Grammer and Spelling mistakes in your Text or documents then use the below API which gives you Free API access and allows you to Fix your text with their Powerful Grammer checking AI technology.
# AI Proofreading
# pip install requestsimport requestsdef Proofreader(text):
api_key = "YOUR_API_KEY"
url = 'https://api.sapling.ai/api/v1/edits' data = {
'key': api_key,
'text': text,
'session_id': 'Test Document UUID',
'advanced_edits': {
'advanced_edits': True,
},
} response = requests.post(url, json=data)
resp_json = response.json()
edits = resp_json['edits']
print("Corrections: ", edits)
if __name__ == '__main__':
Proofreader("I are going to the store, She don't likes pizza")👉 AI Text_To_Speech
With Google Cloud’s text-to-speech AI technology, you can transform your text into a lifelike voice. You have the flexibility to select various options such as language, pitch, people’s voices, and much more. Best of all, Google offers a free API for your use.
# AI Text to Speech
# pip install google-cloud-texttospeech
# pip install playsoundimport io
import os
from google.cloud import texttospeech
import playsound# Set the path to your credentials JSON file
os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = "credentials.json"
def Text_to_Speech(text):
client = texttospeech.TextToSpeechClient() # Set the language code and the voice name.
language_code = "en-US"
voice_name = "en-US-Wavenet-A" # Create a request to synthesize speech.
r = texttospeech.types.SynthesizeSpeechRequest()
r.text = text
r.voice = texttospeech.types.VoiceSelectionParams(
language_code=language_code, name=voice_name) # Set the audio encoding.
r.audio_encoding = texttospeech.types.AudioEncoding.MP3 # Get the response from the API.
response = client.synthesize_speech(r) # Save the audio to a file.
with io.open("audio.mp3", "wb") as f:
f.write(response.audio_content) # Play the audio.
playsound.playsound("audio.mp3", True)if __name__ == "__main__":
text = input("Enter the text: ")
Text_to_Speech(text)👉 ChatBot AI
If you are looking for a chatbot similar to chatGPT, you can use the OpenAI API. I have provided some code below that demonstrates how to use GPT 3.5 to create a personalized chatbot in Python with ease.
# ChatGPT AI
# pip install openaiimport os
import openaidef ask(prompt):
response = openai.ChatCompletion.create(
model="gpt-3.5-turbo",
messages=[
{
"role": "user",
"content": prompt
}
],
temperature=1,
max_tokens=256,
top_p=1,
frequency_penalty=0,
presence_penalty=0
)
print("Ans: ", response)
if __name__ == "__main__":
ask("Python or JavaScript?")👉 OCR AI
Do you need to turn your scanned documents into text or extract text from images or scanned PDFs? You can use below OCR AI technology to extract text from any type of image. Below API utilizes Google Cloud Vision AI technology, which excels in detecting and analyzing text from images.
# AI OCR
# pip install google-cloud-visionfrom google.cloud import vision
from google.cloud.vision import types
import os# Set the path to your credentials JSON file
os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = "credentials.json"def OCR(img_path):
client = vision.ImageAnnotatorClient() with open(img_path, 'rb') as image_file:
content = image_file.read() image = types.Image(content=content)
response = client.text_detection(image=image) texts = response.text_annotations
if texts:
return texts[0].description
else:
return "No text found in the image."
if __name__ == "__main__":
image_path = "photo.jpg"
print(OCR(image_path))👉 Final Thoughts
The capabilities of AI are remarkable when it comes to automating work. I hope this article provides you with some useful information. If you found it helpful, please share it with your friends as sharing is caring! ❤️
Happy Python Coding
You can support me and others by becoming a Member of Medium Thanks! 👇
Never stop learning, Here is your daily dose of my top programming articles below, hope you like them also.
More content at PlainEnglish.io.
Sign up for our free weekly newsletter. Follow us on Twitter, LinkedIn, YouTube, and Discord.




