提交Shorten任务(prompt分析)
接口:POST /mj/submit/shorten 归属:绘图模型/Mid journey/任务提交 调用地址:Base URL https://api.allyang.cn(OpenAI 兼容前缀 https://api.allyang.cn/v1)+ 上述路径 鉴权:请求头 Authorization: Bearer <你的令牌>;令牌在控制台「令牌管理」创建 说明:下方为本接口契约。路径、字段名与枚举取值与线上接口一致;叙述文字已按本平台口径重写。价格、并发与限流等数值以控制台及实际返回为准,未确认处标注「待补」。
OpenAPI Specification
yaml
openapi: 3.0.1
info:
title: ''
description: ''
version: 1.0.0
paths:
/mj/submit/shorten:
post:
summary: 提交Shorten任务(prompt分析)
description: ''
tags:
- 绘图模型/Mid journey/任务提交
- 任务提交
parameters:
- name: Authorization
in: header
description: ''
required: false
example: Bearer {{YOUR_API_KEY}}
schema:
type: string
default: Bearer {{YOUR_API_KEY}}
requestBody:
content:
application/json:
schema:
type: object
properties:
botType:
type: string
description: "bot 类型,mj(默认)或 niji。"
enum:
- MID_JOURNEY
- NIJI_JOURNEY
examples:
- MID_JOURNEY
prompt:
type: string
description: "提示词。"
examples:
- Cat
notifyHook:
type: string
description: "回调地址,留空则走全局 notifyHook。"
required:
- prompt
examples: {}
responses:
'200':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/%E6%8F%90%E4%BA%A4%E7%BB%93%E6%9E%9C'
headers: {}
'201':
description: ''
content:
application/json:
schema:
type: object
properties: {}
headers: {}
'401':
description: ''
content:
application/json:
schema:
type: object
properties: {}
headers: {}
'403':
description: ''
content:
application/json:
schema:
type: object
properties: {}
headers: {}
'404':
description: ''
content:
application/json:
schema:
type: object
properties: {}
headers: {}
security: []
components:
schemas:
Shorten提交参数:
type: object
required:
- prompt
properties:
botType:
type: string
description: "bot 类型,mj(默认)或 niji。"
enum:
- MID_JOURNEY
- NIJI_JOURNEY
examples:
- MID_JOURNEY
prompt:
type: string
description: "提示词。"
examples:
- Cat
accountFilter:
$ref: >-
#/components/schemas/%E8%B4%A6%E5%8F%B7%E7%AD%9B%E9%80%89%E6%9D%A1%E4%BB%B6
notifyHook:
type: string
description: "回调地址,留空则走全局 notifyHook。"
state:
type: string
description: "自定义参数。"
title: Shorten提交参数
账号筛选条件:
type: object
properties:
instanceId:
type: string
description: "账号实例 ID。"
modes:
type: array
description: "账号模式。"
items:
type: string
enum:
- RELAX
- FAST
- TURBO
remix:
type: boolean
description: "账号是否启用 remix。"
remixAutoConsidered:
type: boolean
description: "账号过滤时,remix自动提交 视为 账号的 remix 为 false。"
title: 账号筛选条件
提交结果:
type: object
required:
- code
- description
properties:
code:
type: integer
format: int32
description: "1 表示提交成功、21 表示已存在、22 表示排队中,其余取值为错误。"
examples:
- 1
description:
type: string
description: "描述。"
examples:
- 提交成功
properties:
type: object
description: "扩展字段。"
properties: {}
result:
type: string
description: "任务 ID。"
examples:
- 1320098173412546
title: 提交结果
securitySchemes: {}
servers: []
security: []