When trying to follow a tutorial for the #LowCodeFebrurary here, I've managed to develop successfully an API to connect to Open AI.
This is the result I get from Azure upon testing:
Now, after creating the custom connector in Power Apps the OnSelect property of a button:
ClearCollect(colImagem, openAIAPI.createimage({prompt:TextInput1.Text, n:1, size: "512x512"}))
Calls the API and returns:
Also tried:
ClearCollect(colImagem, openAIAPI.createimage({prompt:TextInput1.Text, n:1, size: "512x512"}).data)But get a syntax error.

Report
All responses (
Answers (