top of page

OpenAI - Image Generation

Here you can see how to use Make.com or Integromat with the OpenAI API to generate an image. To do this, you need to register with OpenAI and create an API key. I can only recommend to go to a paid plan, because then you get fewer times to see that openai is overloaded at the moment. FYI: There is currently no official API to properly query chat.gpt3.

Input:

{"json":{"APIKEY":"INSERT-YOUR-APIKEY","prompt":"Draw a comic about a business graduate who uses a low-code tool."}}

JS-Code:

const configuration = new Configuration({   apiKey: input.json.APIKEY, }); const openai = new OpenAIApi(configuration);  const res = await openai.createImage({   model: input.json.model,n:1,size:'1024x1024',prompt:input.json.prompt}); return res.data.data[0].url;

Output:

bottom of page