I want to use the model gpt-4-32k or gpt-3.5-turbo-16k


I want to use gpt-4-32k or gpt-3.5-turbo-16k model

How do I use it and not get an error in the code?

gpt-3.5-turbo-16k is available to API users. 32k is not.

If you have working chat completion code for 3.5 (see API reference), you can just substitute the different model name, allowing larger inputs and outputs, and pay twice as much for your data.