ChatGPT API Workout 02 - Postman HTTP Request

Untitled (2)

In this workout, we will go through one of the most important variables in the API (the one that’s responsible for controlling the number of completions that you get)

First, set up an API Key on OpenAI and connect to it using Postman.

The objective is to create a Postman HTTP request whereby with one request and one prompt (“write a slogan for an education technology company”), but you get 5 different responses back.

Please submit your solution by taking a screenshot of your Postman script and your answer.

Enjoy! Let me know if you have any questions.

Henry

1 Like

@henry.habib -

Here is my postman request:

Summary

1 Like

Here are the Headers and Body in Postman. Ensure you make the request a POST request.

Untitled (1)

Untitled (2)

Best,
Henry

@henry.habib ,

Thank you for preparing this. My responses are below:

Header

Body

image

Responses