How to set seed parameters in Dall E?

Hi,

I’m trying to get the same image from the same prompt.
But when I insert the seed parameters in the following way, it gets an error…

%%%%%%%%%%% this one works %%%%%%%%%
var openai = new OpenAIApi(configuration);
exports.endpoint = async function(request, response) {
var prompt_by_p = “XXXXXXX”
var created_img = await openai.createImage({
prompt: prompt_by_p,
size: “256x256”,
});

%%%%%%%%%%% this one does not work %%%%%%%%%
var openai = new OpenAIApi(configuration);
exports.endpoint = async function(request, response) {
var prompt_by_p = “XXXXXXX”
var created_img = await openai.createImage({
prompt: prompt_by_p,
size: “256x256”,
seed: “123”
});

I tried changing the seed parameters as integer but still not working.
Could you help me what to do?

Thanks!

2 Likes

Welcome to the community.

A seed is not available with DALLE2 at this time. It’s something a few of us have requested, though.

Would make a lot of sense because then you could do a small image and once it’s right, you could generate a larger image with the same prompt.

Hope that helps.

1 Like

That makes loads of sense, non-random seeds please.

Thank you @PaulBellow.

For those of us interested in being able to specify seeds and generating deterministically, what’s the best way for us to request this from OpenAI?