Can I use openAI's key and URL instead of DLAI's key and URL?

can I use openAI’s key and URL instead of DLAI’s key and URL? to run the class code?

You would need your own key from OpenAI.