跳到主要内容

编辑图片(Edit)

OpenAPI Specification

openapi: 3.0.1
info:
title: ''
description: ''
version: 1.0.0
paths:
/mj/submit/edits:
post:
summary: 编辑图片(Edit)
deprecated: false
description: 执行edit接口,可以编辑外部传入的图片,可以进行局部重绘,也可以直接改图
tags:
- 模型接口/Midjourney/原生接口
parameters:
- name: Accept
in: header
description: ''
required: true
example: application/json
schema:
type: string
default: application/json
- name: Authorization
in: header
description: ''
required: true
example: sk-
schema:
type: string
default: sk-
- name: Content-Type
in: header
description: ''
required: true
example: application/json
schema:
type: string
requestBody:
content:
application/json:
schema:
type: object
properties:
notifyHook:
type: string
description: 回调地址, 为空时使用全局notifyHook
state:
type: string
description: 自定义参数
prompt:
type: string
description: 提示词
remix:
type: boolean
image:
type: string
description: 需要编辑的图片的base64编码
x-apifox-orders:
- prompt
- image
- notifyHook
- state
- remix
required:
- prompt
- image
example:
prompt: 将图片转换为吉普力风格
image: string
responses:
'200':
description: ''
content:
application/json:
schema:
type: object
properties: {}
headers: {}
x-apifox-name: 成功
security: []
x-apifox-folder: 模型接口/Midjourney/原生接口
x-apifox-status: testing
x-run-in-apifox: https://app.apifox.com/web/project/5503894/apis/api-319595757-run
components:
schemas: {}
securitySchemes: {}
servers:
- url: '{{base_url}}'
description: 测试环境
- url: https://newapi.eronmind.com
description: 正式环境
security: []