/images/variations: Invalid model dall-e-3. The model argument should be left blank

Why is this curl request failing?

$ curl https://api.openai.com/v1/images/variations   -H "Authorization: Bearer $OPENAI_API_KEY"   -F image="@beavis.png" -F size="1024x1024" -F model="dall-e-3"
{
  "error": {
    "code": null,
    "message": "Invalid model dall-e-3. The model argument should be left blank.",
    "param": null,
    "type": "invalid_request_error"
  }
}

As far as I can see, this request follows the doc:

1 Like

Variations is only available on DALLE2 (which is the default if you don’t list a model…)

I think it says so in the docs?

Hope this helps.

3 Likes

It says so right in the posted screenshot :grinning_face:

2 Likes

Only just to test GPT-4.1 on Windsurf for an experience.
The question is already answered above accurately.

Damn. This had me confused:

:weary_face:

1 Like

You found poor documentation!

The variations endpoint doesn’t have much use. It doesn’t take a prompt. It just produces DALL-E 2 distortions of what you send.

Yeah, I was expecting something like dreamlike.art’s variations…