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. 任务提交

提交Modal

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

Request

Body Params application/json
maskBase64
string 
optional
局部重绘的蒙版base64
prompt
string 
optional
提示词
taskId
string 
required
任务ID
Example:
14001934816969359
Example
{
    "maskBase64": "laborum nostrud",
    "prompt": "cupidatat pariatur commodo",
    "taskId": "14001934816969359"
}

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/modal' \
--header 'Content-Type: application/json' \
--data-raw '{
    "maskBase64": "laborum nostrud",
    "prompt": "cupidatat pariatur commodo",
    "taskId": "14001934816969359"
}'

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:52
Previous
提交Imagine任务
Next
提交Shorten任务
Built with