Let's see how you can use our API to manipulate images. All the listed examples are made in Python.
# Let's call the index of the API to get the version.
import requests
response = requests.get("https://api.bytestobits.dev/v1/")
print(response.json())
You will receive a response like this:
{
"version": "alpha-0.0.1",
"title": "BytesToBits API",
"description": "The Official BytesToBits API"
}
Great. Now, let's make a request to turn an image black and white. To begin, put an image in the same directory as your code.