FAQ: How do I implement the Userid Parameter?

You can pass this parameter in your API calls using user = '$userIDString'

For example, this is how you’d send the parameter in a Completion endpoint call with a userID of ‘1’:

response = openai.Completion.create(engine = "davinci", prompt = "This is a test", max_tokens = 5, user = "1")

1 Like