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

# 修改图片

> 基于原图和文本描述进行图像编辑



## OpenAPI

````yaml /api-reference/images/Edits-images.json POST /v1/images/edits
openapi: 3.1.0
info:
  title: API
  version: 1.0.0
  description: API 文档，支持绘图、语音生成、视频生成、音乐生成等多种 AIGC 接口。
servers:
  - url: https://aiapi.xiaoliu.fun
    description: 生产服务器
security:
  - bearerAuth: []
paths:
  /v1/images/edits:
    post:
      tags:
        - 绘图模型
      summary: 改图
      description: 基于原图和文本描述进行图像编辑
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                image:
                  type: string
                  format: binary
                  description: 待修改的原图文件
                model:
                  type: string
                  description: 模型名称
                prompt:
                  type: string
                  description: 修改描述
              required:
                - image
                - model
                - prompt
      responses:
        '200':
          description: 成功响应
          content:
            application/json:
              schema:
                type: object
                properties:
                  created:
                    type: integer
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        url:
                          type: string
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````