# Consistent images/edit server\_error

**URL:** <https://community.openai.com/t/consistent-images-edit-server-error/559841>\
**Category:** Bugs\
**Tags:** api, dalle2\
**Created:** [December 15, 2023, 11:09am UTC](https://community.openai.com/t/consistent-images-edit-server-error/559841 "2023-12-15T11:09:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![charles6](https://avatars.discourse-cdn.com/v4/letter/c/e5b9ba/32.png) [@charles6](https://community.openai.com/u/charles6)\
**Post date:** [December 15, 2023, 11:09am UTC](https://community.openai.com/t/consistent-images-edit-server-error/559841/1 "2023-12-15T11:09:18Z")

</div>

Since I started trying to use the image edits API this week, I have consistently got 500 code responses. This is the inpainting/outpainting API, which is only available for Dall-E 2.  
Docs here: [https://platform.openai.com/docs/api-reference/images/createEdit](https://platform.openai.com/docs/api-reference/images/createEdit)

Am I doing something wrong?

I haven’t got through to OpenAI support and can’t see anything online about any downtime…

The request I’m making:

```auto
curl https://api.openai.com/v1/images/edits 
-H "Authorization: Bearer $TOKEN" 
-F image="@image.png" 
-F mask="@mask.png" 
-F model="dall-e-2" 
-F prompt="A sunlit indoor lounge area with a pool containing a flamingo" 
-F n=1 
-F size="1024x1024"

```

The response I get:

```auto
{
"error": {
"code": null,
"message": "The server had an error processing your request. Sorry about that! You can retry your request, or contact us through our help center at help.openai.com if you keep seeing this error. (Please include the request ID ... in your email.)",
"param": null,
"type": "server_error"
}
}

```
