# Generate image

`POST /v1/images/generations`

Bailian qwen-image series image generation

## Authorizations

Bearer authentication — send `Authorization: Bearer <token>`.

## Request Body (application/json)

```json
{
  "type": "object",
  "properties": {
    "model": {
      "type": "string"
    },
    "input": {
      "type": "object",
      "properties": {
        "messages": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "role": {
                "type": "string"
              },
              "content": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "text": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "required": [
        "messages"
      ]
    },
    "parameters": {
      "type": "object",
      "properties": {
        "negative_prompt": {
          "type": "string"
        },
        "prompt_extend": {
          "type": "boolean"
        },
        "watermark": {
          "type": "boolean"
        },
        "size": {
          "type": "string"
        }
      }
    }
  },
  "required": [
    "model",
    "input"
  ]
}
```

## Responses

### 200 — Image generated

```json
{
  "type": "object",
  "properties": {
    "created": {
      "type": "integer"
    },
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string"
          },
          "b64_json": {
            "type": "string"
          },
          "revised_prompt": {
            "type": "string"
          }
        }
      }
    }
  }
}
```
