EZLINK AI API
  1. 任务提交
EZLINK AI API
  • LLMs
    • 介绍
    • 项目说明
    • 导言
    • 身份验证
    • 发出请求
    • 参数详情
    • 音频(Audio)
      • 创建语音
      • 创建转录
      • 创建翻译
    • 聊天(Chat)
      • 聊天完成对象
      • 聊天完成块对象
      • 创建聊天补全
    • 自动补全(Completions)
      • 完成对象
      • 创建完成
    • 嵌入(Embeddings)
      • 嵌入对象
      • 创建嵌入
    • 图像(Images)
      • README
      • 图像对象
      • 创建图像
      • 创建图片编辑
      • 创建图像变体
    • 模型(Models)
      • 模型对象
      • 列出模型
      • 检索模型
    • 审查(Moderations)
      • 调节对象
      • 创建内容审核
  • Stability
    • Image-to-Video
      • Start generation
      • Fetch generation result
    • Upscale
      • Conservative
      • Start Creative Upscale
      • Fetch Creative Upscale result
    • Edit
      • Erase
      • Inpaint
      • Outpaint
      • Search and Replace
      • Remove Background
    • Generate
      • Stable Image Ultra
      • Stable Image Core
      • Stable Diffusion 3
    • Control
      • Sketch
      • Structure
      • Style
  • Midjourney
    • InsightFace任务提交
      • 提交swap_face任务
    • 任务提交
      • 执行动作
        POST
      • 提交Blend任务
        POST
      • 提交Describe任务
        POST
      • 提交Imagine任务
        POST
      • 提交Modal
        POST
      • 提交Shorten任务
        POST
    • 任务查询
      • 指定ID获取任务
      • 获取任务图片的seed(需设置mj或niji的私信ID)
  • File
  • Flux
    • 创建图像 Copy
  • video
    • 视频生成
    • 生成查询
  1. 任务提交

提交Shorten任务

POST
https://api.ezlinkai.com/mj/submit/shorten
任务提交

Request

Body Params application/json
botType
enum<string> 
optional
bot类型,mj(默认)或niji
Allowed values:
MID_JOURNEYNIJI_JOURNEY
Example:
MID_JOURNEY
prompt
string 
required
提示词
Example:
Cat
accountFilter
object (账号筛选条件) 
optional
channelId
string 
optional
频道ID
instanceId
string 
optional
账号实例ID
modes
array[string]
optional
账号模式
Allowed values:
RELAXFASTTURBO
remark
string 
optional
备注包含
remix
boolean 
optional
账号是否remix
remixAutoConsidered
boolean 
optional
账号过滤时,remix自动提交 视为 账号的remix为false
notifyHook
string 
optional
回调地址, 为空时使用全局notifyHook
state
string 
optional
自定义参数
Example
{
    "botType": "MID_JOURNEY",
    "prompt": "Cat",
    "accountFilter": {
        "channelId": "48",
        "instanceId": "75",
        "modes": [
            "FAST"
        ],
        "remark": "exercitation culpa",
        "remix": true,
        "remixAutoConsidered": false
    },
    "notifyHook": "magna",
    "state": "dolore consectetur Lorem"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.ezlinkai.com/mj/submit/shorten' \
--header 'Content-Type: application/json' \
--data-raw '{
    "botType": "MID_JOURNEY",
    "prompt": "Cat",
    "accountFilter": {
        "channelId": "48",
        "instanceId": "75",
        "modes": [
            "FAST"
        ],
        "remark": "exercitation culpa",
        "remix": true,
        "remixAutoConsidered": false
    },
    "notifyHook": "magna",
    "state": "dolore consectetur Lorem"
}'

Responses

🟢200OK
application/json
Body
code
integer <int32>
required
状态码: 1(提交成功), 22(排队中), other(错误)
Example:
1
description
string 
required
描述
Example:
提交成功
properties
object 
optional
扩展字段
result
string 
optional
任务ID
Example:
1320098173412546
Example
{
    "code": 1,
    "description": "提交成功",
    "properties": {},
    "result": 1320098173412546
}
🟢201Created
🟠401Unauthorized
🟠403Forbidden
🟠404Not Found
Modified at 2024-08-18 02:37:54
Previous
提交Modal
Next
指定ID获取任务
Built with