提交Imagine任务
OpenAPI Specification
yaml
openapi: 3.0.1
info:
title: ''
description: ''
version: 1.0.0
paths:
/mj/submit/imagine:
post:
summary: 提交Imagine任务
deprecated: false
description: >-
官方文档:https://docs.midjourney.com/hc/en-us/articles/32023408776205-Prompt-Basics
tags:
- 绘画模型/Midjourney
parameters:
- name: Authorization
in: header
description: ''
required: false
example: Bearer {{YOUR_API_KEY}}
schema:
type: string
requestBody:
content:
application/json:
schema:
type: object
properties:
botType:
type: string
description: bot类型,mj(默认)或niji
enum:
- MID_JOURNEY
- NIJI_JOURNEY
x-apifox-enum:
- value: MID_JOURNEY
name: ''
description: ''
- value: NIJI_JOURNEY
name: ''
description: ''
examples:
- MID_JOURNEY
prompt:
type: string
description: 提示词
examples:
- Cat
notifyHook:
type: string
description: |+
回调地址, 为空时使用全局notifyHook
state:
type: string
description: 自定义参数
base64Array:
type: array
items:
type: string
description: |+
垫图base64数组
required:
- botType
- prompt
x-apifox-orders:
- botType
- prompt
- base64Array
- notifyHook
- state
example:
base64Array: []
notifyHook: ''
prompt: cat
state: ''
botType: MID_JOURNEY
responses:
'200':
description: ''
content:
application/json:
schema:
type: object
properties: {}
x-apifox-orders: []
example: "{\r\n \"code\": 1,\r\n \"description\": \"Submit success\",\r\n \"result\": \"1730621718151844\",//任务id\r\n \"properties\": {\r\n \"discordChannelId\": \"1300842676874379336\",\r\n \"discordInstanceId\": \"1572398367386955776\"\r\n }\r\n}"
headers: {}
x-apifox-name: 成功
security:
- bearer: []
x-apifox-folder: 绘画模型/Midjourney
x-apifox-status: released
x-run-in-apifox: https://app.apifox.com/web/project/5443236/apis/api-232421938-run
components:
schemas: {}
securitySchemes:
bearer:
type: http
scheme: bearer
servers:
- url: https://www.anyapi.vip
description: 正式环境
security:
- bearer: []