Apologies for the delayed response.
Did you try as below?
You can also try with below python sample and let me know if that helps.
import openai
openai.api_key = "YOUR_API_KEY"
prompt = "
response = openai.Completion.create(
engine="davinci",
prompt=prompt,
max_tokens=10
)
print(response.choices[0].text)
print("Confidence Score:", response.choices[0].confidence)