I'd just jump into an API testing application like Postman or similar and start playing with it based on the docs.
If you haven't played with one before here is a cURL you can import into it to get you started -
curl --location --request POST 'api.openai.com/v1/chat/comple…' \ --header 'Authorization: Bearer <Your API Key>' \ --header 'Content-Type: application/json' \ --data-raw '{"model": "gpt-3.5-turbo", "messages":[ {"role": "system", "content": "<A Message from the system explaining the APIs purpose>"}, {"role": "user", "content": "<Main content of your message>"} ], "temperature": 1 }'
@shashank thanks a lot. Will check out Postman.
I'd just jump into an API testing application like Postman or similar and start playing with it based on the docs.
If you haven't played with one before here is a cURL you can import into it to get you started -
curl --location --request POST 'api.openai.com/v1/chat/comple…' \
--header 'Authorization: Bearer <Your API Key>' \
--header 'Content-Type: application/json' \
--data-raw '{"model": "gpt-3.5-turbo",
"messages":[
{"role": "system", "content": "<A Message from the system explaining the APIs purpose>"},
{"role": "user", "content": "<Main content of your message>"}
],
"temperature": 1
}'
@shashank thanks a lot. Will check out Postman.