The OpenAI Java SDK provides convenient access to the OpenAI REST API from applications written in Java. The REST API documentation can be found on platform.openai.com. Javadocs are available on ...
If you are looking to learn TensorFlow, don't miss the core TensorFlow documentation which is largely runnable code. Those notebooks can be opened in Colab from tensorflow.org.