I cant access dalle 3 from the api.
i installed the latest version of openai.
I tried using:
-
import { OpenAIApi,Configuration } from “openai”;
After creating a client with the configurations i tried using the createImage function but i cannot pass model parameter to define model:“dall-e-3”. -
I also tried to import OpenAI from “openai”
but it says the following: “This expression is not constructable…” when trying to create new OpenAI().
These are the two possible methods i found.
What am i doing wrong?