> ## Documentation Index
> Fetch the complete documentation index at: https://docs.modelslab.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Qwen Edit

> This endpoint allows you to edit images using Qwen model.

![Qwen Edit endpoint result](https://assets.modelslab.ai/generations/cc18442d-6dc0-4eb2-9c40-27fa7c59dce4.jpg)

<Warning>
  Make sure you add your [s3 details](/enterprise-api/general/update-s3-details) for `image_editing` server, so you can receive image generated in your bucket. Images generated without s3 details being added will be delete after **24hours**
</Warning>

## Request

Make a `POST` request to below endpoint and pass the required parameters as a request body to the endpoint.

```curl curl theme={"theme":{"light":"github-light","dark":"github-dark"}}
--request POST 'https://modelslab.com/api/v1/enterprise/image_editing/qwen_edit' \
```

## Body

```json json theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "key": "enterprise_api_key",
  "prompt": "the woman wearing the dress",
  "init_image": [
    "https://assets.modelslab.ai/characters/68e7a7f153307.png",
    "https://i.pinimg.com/736x/6e/ab/48/6eab481a1ee8fcfaec32a316d2768a61.jpg"
  ],
  "base64": false,
  "webhook": null,
  "track_id": null
}
```

## Body Attributes

<ParamField body="key" type="string" required>
  Your API Key used for request authorization
</ParamField>

<ParamField body="prompt" type="string" required>
  Text prompt with description of the things you want in the image to be generated.
</ParamField>

<ParamField body="init_image" type="array" required>
  Links  to the image  want your generations to edit and manipulate.
</ParamField>

<ParamField body="base64" type="boolean" required>
  If provided init\_image is in base64 format or if you want your generated images as a base64 string, must be set to `true`. Default: `false`.
</ParamField>

<ParamField body="webhook" type="string" required>
  Set an URL to get a POST API call once the image generation is complete.
</ParamField>

<ParamField body="track_id" type="string" required>
  This ID is returned in the response to the webhook API call. This will be used to identify the webhook request.
</ParamField>
