What if we just used chatGPT as an API to the internet?

things are rarely impossible.
Search for a command to run...

things are rarely impossible.
I don’t know about you, but I have always feared golf. I could walk into a run-down martial arts gym and feel at home, but golf was this elitist game, something for the higher-ups, the middle class. Golf wasn’t about fighting; it was about etiquette ...

After a decade of nurturing ideas and an intense six-month writing journey, DKR is finally here. This book embodies my exploration into the fascinating area of artificial intelligence, crafted for both AI enthusiasts and novices. Why DKR (Dynamic K...

It has been 1 whole year living permanently in Abu Dhabi, UAE and what a year it has been. Where to start… For those reading that don’t know, a little background, my family (my self, my wife and 2 children) left the UK in August 2021 to travel around...

A very short post but an important one. In our everyday lives, we encounter various situations that we quickly label as 'problems.' These challenges, no matter their scale, seem to be a fundamental part of being human. However, the concept of a probl...

The promise of Artificial Intelligence (AI) has captivated imaginations for decades. Today, with every new development, it seems we're on the cusp of a life-altering AI revolution. Yet, if you were to venture outside and ask 100 people if they engage...

On this page
I give you generative APIs
I love drinking the kool-aid of this new AI age but in the hype cycle we are currently in there is a lot of noise and tools like chatGPT are being overlooked for more simple yet powerful tasks such as acting as an API to the internet.
In this video, I walk through how I iterate on a series of prompts to create an API that itself was written with chatGPT and returns chatGPT generated data in a format (JSON) that can be understood by other systems or to go in a crazy inception loop may be read by chatGPT. It’s all very inception!
You can read through the slides or watch the video below.
Video: https://youtu.be/UdwP1OZxNU0



















https://promptapidemo.kidventuresai.com/api/promptapi

Create a JSON object containing a list of the 10 most populated cities in the world, sorted alphabetically by city name. For each city, include the following properties:
id: an incremental number from 1 to 10
city_names: a list of dictionaries, where each dictionary has the keys language and name, and contains the name of the city in English, French, and German
country_name: the name of the country the city is located in
city_population: the population of the city
description: a one-line sentence describing the city
createdOn: a random date and time in March 2023
imageUrl: a URL pointing to an image of the corresponding country
hash: a MD5 hash of the country_name
The JSON object should have a top-level property called createdOn, which is a string representing the date and time when the JSON object was created.
https://promptapidemo.kidventuresai.com/api/promptapi
Contact
I would love to hear any feedback/comments on this concept of creating generative AI APIs.
Or if you need any support with your AI strategy please get in touch at www.leemallon.com.