Failed to create a prompt in OpenAI: [invalidrequesterror] You are not allowed to sample from this model
Every time that I attempt to test “Send Prompt in OpenAI (GPT-3, DALL-E, Whisper)” with Dall-E 3, I get the following error: “Failed to create a prompt in OpenAI (GPT-3, DALL-E, Whisper) [invalid_request_error] You are not allowed to sample from this model”.
Page 1 / 1
Hi @luke1037
Good question.
Please post screenshots with how your Action section is configured for the Zap step.
Hi @Troy Tessalone, Here’s a screenshot of the current Action configuration:
@luke1037
Perhaps try this Zap action: OpenAI - Generate Image
Ok, thank you very much! I will try to call the images API and report back.
Ok, thank you very much! I will try to call the images API and report back.
look forward to here about your test of this call to the API… trying to do similar task
@Troy Tessalone I have tried to use the app extension to generate a call to the OpenAI api, but no success. Having trouble figuring out how to format the api calls using Zapier. Any advice here would be much appreciated, thanks!
@luke1037and @Claus Svendsen
Try this...
CONFIG
Action: OpenAI - API Request
HTTPMethod: POST
URL:
https://api.openai.com/v1/images/generations
Headers:
Content-Type: application/json
Body:
Change the “prompt” value in the JSON.
{ "model": "dall-e-3", "prompt": "a white siamese cat", "n": 1, "size": "1024x1024" }
OUTPUT
@Troy Tessalone Success! Thank you very much!
That’s fantastic news, @luke1037! Thanks so much for hopping back here to confirm that API Request (Beta) action did the trick, we really appreciate it. Awesome work here as usual @Troy Tessalone! 👏👏👏
@Claus Svendsen - hopefully that approach will work for you too. Please do keep us updated on how you get on with this!
That’s fantastic news, @luke1037! Thanks so much for hopping back here to confirm that API Request (Beta) action did the trick, we really appreciate it. Awesome work here as usual @Troy Tessalone! 👏👏👏
@Claus Svendsen - hopefully that approach will work for you too. Please do keep us updated on how you get on with this!
Yes i tried the POST call and it works. Thanks a million !!!!!!
Now i’m having issues getting the zapp to run. Let me explain.
I have a google sheet where i have 20 different prompts in column B Row 1 to 20. I want the zap to loop trough all 20 prompts and fee them into the POST call and then save the generated image in a google folder. The last part, saving the Dall E 3 image to a Google folder, i got to work. its the beginning that does not work for me.
Thanks for helping!!!
@Claus Svendsen
Might be best to post your own topic and provide screenshots so it gets proper attention.