Skip to content

はじめに

重要な規約

  • タスク送信時には、ヘッダー Authorization: Bearer hk-あなたのキーに置き換え または Mj-Api-Secret: hk-あなたのキーに置き換え を含める必要があります
  • Midjourney APIアドレス https://api.openai-hk.com
  • Imagineタスクの送信をDEMOとして クイック接続を見る

タスク送信

モード接続ポイント

  • ハイブリッドモード(削除予定) https://api.openai-hk.com
  • fastモード https://api.openai-hk.com/fast
  • relaxモード https://api.openai-hk.com/relax
  • 各モードの価格は異なります。コンソール->キー購入で価格を確認してください

アクション実行

APIアドレス:/mj/submit/action

リクエスト方式:POST

リクエストデータ型:application/json

レスポンスデータ型:*/*

API説明:

リクエスト例:

json
{
  "customId": "MJ::JOB::upsample::2::3dbbd469-36af-4a0f-8f02-df6c579e7011",
  "notifyHook": "",
  "state": "",
  "taskId": "14001934816969359"
}
{
  "customId": "MJ::JOB::upsample::2::3dbbd469-36af-4a0f-8f02-df6c579e7011",
  "notifyHook": "",
  "state": "",
  "taskId": "14001934816969359"
}

リクエストパラメータ:

パラメータ名説明リクエスト型必須データ型schema
actionDTOactionDTObodytrueアクション実行パラメータアクション実行パラメータ
  customIdアクション識別子truestring
  notifyHookコールバックアドレス、空の場合はグローバルnotifyHookを使用falsestring
  stateカスタムパラメータfalsestring
  taskIdタスクIDtruestring

レスポンスステータス:

ステータスコード説明schema
200OK送信結果
201Created
401Unauthorized
403Forbidden
404Not Found

レスポンスパラメータ:

パラメータ名説明schema
codeステータスコード: 1(送信成功), 22(待機中), other(エラー)integer(int32)integer(int32)
description説明string
properties拡張フィールドobject
resultタスクIDstring

レスポンス例:

json
{
  "code": 1,
  "description": "提交成功",
  "properties": {},
  "result": 1320098173412546
}
{
  "code": 1,
  "description": "提交成功",
  "properties": {},
  "result": 1320098173412546
}

Blendタスクの送信

APIアドレス:/mj/submit/blend

リクエスト方式:POST

リクエストデータ型:application/json

レスポンスデータ型:*/*

API説明:

リクエスト例:

json
{
  "base64Array": ["data:image/png;base64,xxx1", "data:image/png;base64,xxx2"],
  "dimensions": "SQUARE",
  "instanceId": "",
  "modes": [],
  "notifyHook": "",
  "remix": true,
  "state": ""
}
{
  "base64Array": ["data:image/png;base64,xxx1", "data:image/png;base64,xxx2"],
  "dimensions": "SQUARE",
  "instanceId": "",
  "modes": [],
  "notifyHook": "",
  "remix": true,
  "state": ""
}

リクエストパラメータ:

パラメータ名説明リクエスト型必須データ型schema
blendDTOblendDTObodytrueBlend送信パラメータBlend送信パラメータ
  base64Array画像base64配列truearraystring
  dimensions比率: PORTRAIT(2:3); SQUARE(1:1); LANDSCAPE(3:2),使用可能値:PORTRAIT,SQUARE,LANDSCAPEfalsestring
  instanceIdアカウントインスタンスID、指定アカウントでタスク実行falsestring
  modesアカウントモード、アカウントを絞り込んでタスク実行falsearraystring
  notifyHookコールバックアドレス、空の場合はグローバルnotifyHookを使用falsestring
  remixアカウントremix、アカウントを絞り込んでタスク実行falseboolean
  stateカスタムパラメータfalsestring

レスポンスステータス:

ステータスコード説明schema
200OK送信結果
201Created
401Unauthorized
403Forbidden
404Not Found

レスポンスパラメータ:

パラメータ名説明schema
codeステータスコード: 1(送信成功), 22(待機中), other(エラー)integer(int32)integer(int32)
description説明string
properties拡張フィールドobject
resultタスクIDstring

レスポンス例:

json
{
  "code": 1,
  "description": "提交成功",
  "properties": {},
  "result": 1320098173412546
}
{
  "code": 1,
  "description": "提交成功",
  "properties": {},
  "result": 1320098173412546
}

画像からテキスト生成タスクの送信

APIアドレス:/mj/submit/describe

リクエスト方式:POST

リクエストデータ型:application/json

レスポンスデータ型:*/*

API説明:

リクエスト例:

json
{
  "base64": "data:image/png;base64,xxx",
  "instanceId": "",
  "modes": [],
  "notifyHook": "",
  "remix": true,
  "state": ""
}
{
  "base64": "data:image/png;base64,xxx",
  "instanceId": "",
  "modes": [],
  "notifyHook": "",
  "remix": true,
  "state": ""
}

リクエストパラメータ:

パラメータ名説明リクエスト型必須データ型schema
describeDTOdescribeDTObodytrueDescribe送信パラメータDescribe送信パラメータ
  base64画像base64truestring
  instanceIdアカウントインスタンスID、指定アカウントでタスク実行falsestring
  modesアカウントモード、アカウントを絞り込んでタスク実行falsearraystring
  notifyHookコールバックアドレス、空の場合はグローバルnotifyHookを使用falsestring
  remixアカウントremix、アカウントを絞り込んでタスク実行falseboolean
  stateカスタムパラメータfalsestring

レスポンスステータス:

ステータスコード説明schema
200OK送信結果
201Created
401Unauthorized
403Forbidden
404Not Found

レスポンスパラメータ:

パラメータ名説明schema
codeステータスコード: 1(送信成功), 22(待機中), other(エラー)integer(int32)integer(int32)
description説明string
properties拡張フィールドobject
resultタスクIDstring

レスポンス例:

json
{
  "code": 1,
  "description": "提交成功",
  "properties": {},
  "result": 1320098173412546
}
{
  "code": 1,
  "description": "提交成功",
  "properties": {},
  "result": 1320098173412546
}

Imagineタスクの送信

APIアドレス:/mj/submit/imagine

リクエスト方式:POST

リクエストデータ型:application/json

レスポンスデータ型:*/*

API説明:

リクエスト例:

json
{
  "base64Array": [],
  "instanceId": "",
  "modes": [],
  "notifyHook": "",
  "prompt": "Cat",
  "remix": true,
  "state": ""
}
{
  "base64Array": [],
  "instanceId": "",
  "modes": [],
  "notifyHook": "",
  "prompt": "Cat",
  "remix": true,
  "state": ""
}

リクエストパラメータ:

パラメータ名説明リクエスト型必須データ型schema
imagineDTOimagineDTObodytrueImagine送信パラメータImagine送信パラメータ
  base64Arrayベース画像base64配列falsearraystring
  instanceIdアカウントインスタンスID、指定アカウントでタスク実行falsestring
  modesアカウントモード、アカウントを絞り込んでタスク実行falsearraystring
  notifyHookコールバックアドレス、空の場合はグローバルnotifyHookを使用falsestring
  promptプロンプトtruestring
  remixアカウントremix、アカウントを絞り込んでタスク実行falseboolean
  stateカスタムパラメータfalsestring

レスポンスステータス:

ステータスコード説明schema
200OK送信結果
201Created
401Unauthorized
403Forbidden
404Not Found

レスポンスパラメータ:

パラメータ名説明schema
codeステータスコード: 1(送信成功), 22(待機中), other(エラー)integer(int32)integer(int32)
description説明string
properties拡張フィールドobject
resultタスクIDstring

レスポンス例:

json
{
  "code": 1,
  "description": "提交成功",
  "properties": {},
  "result": 1320098173412546
}
{
  "code": 1,
  "description": "提交成功",
  "properties": {},
  "result": 1320098173412546
}

Modalの送信

APIアドレス:/mj/submit/modal

リクエスト方式:POST

リクエストデータ型:application/json

レスポンスデータ型:*/*

API説明:

リクエスト例:

json
{
  "maskBase64": "",
  "prompt": "",
  "taskId": "14001934816969359"
}
{
  "maskBase64": "",
  "prompt": "",
  "taskId": "14001934816969359"
}

リクエストパラメータ:

パラメータ名説明リクエスト型必須データ型schema
modalDTOmodalDTObodytrueModal送信パラメータModal送信パラメータ
  maskBase64部分再描画のマスクbase64falsestring
  promptプロンプトfalsestring
  taskIdタスクIDtruestring

レスポンスステータス:

ステータスコード説明schema
200OK送信結果
201Created
401Unauthorized
403Forbidden
404Not Found

レスポンスパラメータ:

パラメータ名説明schema
codeステータスコード: 1(送信成功), 22(待機中), other(エラー)integer(int32)integer(int32)
description説明string
properties拡張フィールドobject
resultタスクIDstring

レスポンス例:

json
{
  "code": 1,
  "description": "提交成功",
  "properties": {},
  "result": 1320098173412546
}
{
  "code": 1,
  "description": "提交成功",
  "properties": {},
  "result": 1320098173412546
}

swap_face 顔交換タスクの送信

APIアドレス:/mj/insight-face/swap

リクエスト方式:POST

リクエストデータ型:application/json

レスポンスデータ型:*/*

API説明:

リクエスト例:

javascript
{
  "sourceBase64": "data:image/png;base64,xxx1",
  "targetBase64": "data:image/png;base64,xxx2",
  "accountFilter": {
    "instanceId": ""
  },
  "notifyHook": "",
  "state": ""
}
{
  "sourceBase64": "data:image/png;base64,xxx1",
  "targetBase64": "data:image/png;base64,xxx2",
  "accountFilter": {
    "instanceId": ""
  },
  "notifyHook": "",
  "state": ""
}

リクエストパラメータ:

リクエストパラメータ:

パラメータ名説明リクエスト型必須データ型schema
swapFaceDTOswapFaceDTObodytrueSwapFace送信パラメータSwapFace送信パラメータ
  sourceBase64顔ソース画像base64truestring
  targetBase64ターゲット画像base64truestring
  accountFilterアカウントを絞り込んでタスク実行、不要な場合はnullまたはこのパラメータを削除falseFilterFilter
    instanceIdアカウントインスタンスIDfalsestring
  notifyHookコールバックアドレス、空の場合はグローバルnotifyHookを使用falsestring
  stateカスタムパラメータfalsestring

レスポンスステータス:

ステータスコード説明schema
200OKMessage«string»
201Created
401Unauthorized
403Forbidden
404Not Found

レスポンスパラメータ:

パラメータ名説明schema
codeinteger(int32)integer(int32)
descriptionstring
resultstring

レスポンス例:

javascript
{
	"code": 0,
	"description": "",
	"result": ""
}
{
	"code": 0,
	"description": "",
	"result": ""
}

Shortenタスクの送信

APIアドレス:/mj/submit/shorten

リクエスト方式:POST

リクエストデータ型:application/json

レスポンスデータ型:*/*

API説明:

リクエスト例:

json
{
  "instanceId": "",
  "modes": [],
  "notifyHook": "",
  "prompt": "Cat",
  "remix": true,
  "state": ""
}
{
  "instanceId": "",
  "modes": [],
  "notifyHook": "",
  "prompt": "Cat",
  "remix": true,
  "state": ""
}

リクエストパラメータ:

パラメータ名説明リクエスト型必須データ型schema
shortenDTOshortenDTObodytrueShorten送信パラメータShorten送信パラメータ
  instanceIdアカウントインスタンスID、指定アカウントでタスク実行falsestring
  modesアカウントモード、アカウントを絞り込んでタスク実行falsearraystring
  notifyHookコールバックアドレス、空の場合はグローバルnotifyHookを使用falsestring
  promptプロンプトtruestring
  remixアカウントremix、アカウントを絞り込んでタスク実行falseboolean
  stateカスタムパラメータfalsestring

レスポンスステータス:

ステータスコード説明schema
200OK送信結果
201Created
401Unauthorized
403Forbidden
404Not Found

レスポンスパラメータ:

パラメータ名説明schema
codeステータスコード: 1(送信成功), 22(待機中), other(エラー)integer(int32)integer(int32)
description説明string
properties拡張フィールドobject
resultタスクIDstring

レスポンス例:

json
{
  "code": 1,
  "description": "提交成功",
  "properties": {},
  "result": 1320098173412546
}
{
  "code": 1,
  "description": "提交成功",
  "properties": {},
  "result": 1320098173412546
}

動画タスクの作成

APIアドレス:/mj/submit/video

リクエスト方式:POST

リクエストデータ型:application/json

リクエスト例:

  • imagebase64 または url をサポート
  • videoType デフォルトは vid_1.1_i2v_480 価格は画像生成価格の7.5倍
  • 高画質動画は videoType= vid_1.1_i2v_720 が必要、価格は画像生成価格の26倍
json
{
  "prompt": "飞来一只蜜蜂",
  "motion": "low",
  "image": "https://cdn.discordapp.com/attachments/1372468820912115716/1388566717961338880/hyper_realistic_3d_rendering_pink_tulip_style_686021570d5ec4451c1c120a.jpg?ex=68617307&is=68602187&hm=f939f10d79de24e3ed0f2c4dc1453c902ee6b383d13d9a1787eacfccfadb9488&",
  "notifyHook": "https://sse.open-hk.com/openai/mjapi/9-8/",
  "videoType": "vid_1.1_i2v_480"
}
{
  "prompt": "飞来一只蜜蜂",
  "motion": "low",
  "image": "https://cdn.discordapp.com/attachments/1372468820912115716/1388566717961338880/hyper_realistic_3d_rendering_pink_tulip_style_686021570d5ec4451c1c120a.jpg?ex=68617307&is=68602187&hm=f939f10d79de24e3ed0f2c4dc1453c902ee6b383d13d9a1787eacfccfadb9488&",
  "notifyHook": "https://sse.open-hk.com/openai/mjapi/9-8/",
  "videoType": "vid_1.1_i2v_480"
}

レスポンス本文:

json
{
  "code": 1,
  "description": "Submit Success",
  "result": "1751352955547075"
}
{
  "code": 1,
  "description": "Submit Success",
  "result": "1751352955547075"
}
  • result で結果を取得 1751352955547075
  • get https://api.openai-hk.com/mj/task/1751275590720680/fetch

タスク結果の返却:

  • 結果は videoUrls に4つの動画リンクを含む
json
{
  "id": "1751275590720680",
  "action": "VIDEO",
  "customId": "",
  "botType": "",
  "prompt": "缠斗",
  "promptEn": "",
  "description": "Submit Success",
  "state": "",
  "mode": "",
  "proxy": "",
  "submitTime": 1751275590720,
  "startTime": 1751275590720,
  "finishTime": 1751275670864,
  "imageUrl": "https://abc.om/upload_1751275589663574690.jpg",
  "imageUrls": null,
  "imageHeight": 624,
  "imageWidth": 624,
  "videoUrl": "",
  "videoUrls": [
    {
      "url": "https://cdn.discordapp.com/video/5938067e-b820-4938-b3ad-69d81778cbc4/0_0.mp4"
    },
    {
      "url": "https://cdn.discordapp.com/video/5938067e-b820-4938-b3ad-69d81778cbc4/0_1.mp4"
    },
    {
      "url": "https://cdn.discordapp.com/video/5938067e-b820-4938-b3ad-69d81778cbc4/0_2.mp4"
    },
    {
      "url": "https://cdn.discordapp.com/video/5938067e-b820-4938-b3ad-69d81778cbc4/0_3.mp4"
    }
  ],
  "status": "SUCCESS",
  "progress": "100%",
  "failReason": "",
  "buttons": [],
  "maskBase64": "",
  "properties": {
    "notifyHook": "",
    "flags": 0,
    "messageId": "",
    "messageHash": "5938067e-b820-4938-b3ad-69d81778cbc4",
    "nonce": "",
    "customId": "",
    "finalPrompt": "https://cdn.discordapp.com/upload_1751275589663574690.jpg 缠斗 --ar 1:1 --v 7 --stylize 100 --relax",
    "progressMessageId": "",
    "messageContent": "",
    "discordInstanceId": "1372468820912115716",
    "discordChannelId": "1372468820912115716"
  }
}
{
  "id": "1751275590720680",
  "action": "VIDEO",
  "customId": "",
  "botType": "",
  "prompt": "缠斗",
  "promptEn": "",
  "description": "Submit Success",
  "state": "",
  "mode": "",
  "proxy": "",
  "submitTime": 1751275590720,
  "startTime": 1751275590720,
  "finishTime": 1751275670864,
  "imageUrl": "https://abc.om/upload_1751275589663574690.jpg",
  "imageUrls": null,
  "imageHeight": 624,
  "imageWidth": 624,
  "videoUrl": "",
  "videoUrls": [
    {
      "url": "https://cdn.discordapp.com/video/5938067e-b820-4938-b3ad-69d81778cbc4/0_0.mp4"
    },
    {
      "url": "https://cdn.discordapp.com/video/5938067e-b820-4938-b3ad-69d81778cbc4/0_1.mp4"
    },
    {
      "url": "https://cdn.discordapp.com/video/5938067e-b820-4938-b3ad-69d81778cbc4/0_2.mp4"
    },
    {
      "url": "https://cdn.discordapp.com/video/5938067e-b820-4938-b3ad-69d81778cbc4/0_3.mp4"
    }
  ],
  "status": "SUCCESS",
  "progress": "100%",
  "failReason": "",
  "buttons": [],
  "maskBase64": "",
  "properties": {
    "notifyHook": "",
    "flags": 0,
    "messageId": "",
    "messageHash": "5938067e-b820-4938-b3ad-69d81778cbc4",
    "nonce": "",
    "customId": "",
    "finalPrompt": "https://cdn.discordapp.com/upload_1751275589663574690.jpg 缠斗 --ar 1:1 --v 7 --stylize 100 --relax",
    "progressMessageId": "",
    "messageContent": "",
    "discordInstanceId": "1372468820912115716",
    "discordChannelId": "1372468820912115716"
  }
}

video

mjVideo

  • 結果として4つの動画を取得

    mjVideo

画像編集タスクの作成

APIアドレス:/mj/submit/edits

リクエスト方式:POST

リクエストデータ型:application/json

リクエスト例:

  • imagebase64 または url をサポート
json
{
  "prompt": "改为白色背景",
  "image": "https://cdn.discordapp.com/attachments/1372468820912115716/1388566717961338880/hyper_realistic_3d_rendering_pink_tulip_style_686021570d5ec4451c1c120a.jpg?ex=68617307&is=68602187&hm=f939f10d79de24e3ed0f2c4dc1453c902ee6b383d13d9a1787eacfccfadb9488&",
  "notifyHook": "https://yourback.com/",
  "state": "abc"
}
{
  "prompt": "改为白色背景",
  "image": "https://cdn.discordapp.com/attachments/1372468820912115716/1388566717961338880/hyper_realistic_3d_rendering_pink_tulip_style_686021570d5ec4451c1c120a.jpg?ex=68617307&is=68602187&hm=f939f10d79de24e3ed0f2c4dc1453c902ee6b383d13d9a1787eacfccfadb9488&",
  "notifyHook": "https://yourback.com/",
  "state": "abc"
}

レスポンス本文:

json
{
  "code": 1,
  "description": "Submit Success",
  "result": "1751342042863641"
}
{
  "code": 1,
  "description": "Submit Success",
  "result": "1751342042863641"
}
  • result で結果を取得 1751342042863641
  • get https://api.openai-hk.com/mj/task/1751342042863641/fetch

タスク結果の返却:

  • 結果は imageUrls に4つの画像リンクを含む
json
{
  "id": "1751342042863641",
  "action": "EDITS",
  "customId": "",
  "botType": "",
  "prompt": "Change to a white background.",
  "promptEn": "Change to a white background.",
  "description": "Submit Success",
  "state": "9",
  "submitTime": 1751342042863,
  "startTime": 1751342044141,
  "finishTime": 1751342065872,
  "imageUrl": "https://mjimg.open-hk.com/attachments/1372468820912115716/1389454090576072754/change_white_background_1651da63-85c6-45c7-9679-f42381c73c78.png?ex=6864ad76&is=68635bf6&hm=88ef2edb071faa5821250879489a3ea348b4f5504a73614ff30a81f05b1dee44&",
  "status": "SUCCESS",
  "progress": "100%",
  "failReason": "",
  "buttons": [],
  "imageUrls": [
    {
      "url": "https://cdn.midjourney.com/1651da63-85c6-45c7-9679-f42381c73c78/0_0.png"
    },
    {
      "url": "https://cdn.midjourney.com/1651da63-85c6-45c7-9679-f42381c73c78/0_1.png"
    },
    {
      "url": "https://cdn.midjourney.com/1651da63-85c6-45c7-9679-f42381c73c78/0_2.png"
    },
    {
      "url": "https://cdn.midjourney.com/1651da63-85c6-45c7-9679-f42381c73c78/0_3.png"
    }
  ],
  "videoUrls": null,
  "videoUrl": "",
  "maskBase64": "",
  "properties": {
    "finalPrompt": "Change to a white background. --ar 1:1 --v 7 --stylize 100 --fast --dref https://mjimg.open-hk.com/upload_1751342040607222256.png--fast",
    "finalZhPrompt": ""
  }
}
{
  "id": "1751342042863641",
  "action": "EDITS",
  "customId": "",
  "botType": "",
  "prompt": "Change to a white background.",
  "promptEn": "Change to a white background.",
  "description": "Submit Success",
  "state": "9",
  "submitTime": 1751342042863,
  "startTime": 1751342044141,
  "finishTime": 1751342065872,
  "imageUrl": "https://mjimg.open-hk.com/attachments/1372468820912115716/1389454090576072754/change_white_background_1651da63-85c6-45c7-9679-f42381c73c78.png?ex=6864ad76&is=68635bf6&hm=88ef2edb071faa5821250879489a3ea348b4f5504a73614ff30a81f05b1dee44&",
  "status": "SUCCESS",
  "progress": "100%",
  "failReason": "",
  "buttons": [],
  "imageUrls": [
    {
      "url": "https://cdn.midjourney.com/1651da63-85c6-45c7-9679-f42381c73c78/0_0.png"
    },
    {
      "url": "https://cdn.midjourney.com/1651da63-85c6-45c7-9679-f42381c73c78/0_1.png"
    },
    {
      "url": "https://cdn.midjourney.com/1651da63-85c6-45c7-9679-f42381c73c78/0_2.png"
    },
    {
      "url": "https://cdn.midjourney.com/1651da63-85c6-45c7-9679-f42381c73c78/0_3.png"
    }
  ],
  "videoUrls": null,
  "videoUrl": "",
  "maskBase64": "",
  "properties": {
    "finalPrompt": "Change to a white background. --ar 1:1 --v 7 --stylize 100 --fast --dref https://mjimg.open-hk.com/upload_1751342040607222256.png--fast",
    "finalZhPrompt": ""
  }
}

タスククエリ

指定IDでタスクを取得

APIアドレス:/mj/task/{id}/fetch

リクエスト方式:GET

リクエストデータ型:application/x-www-form-urlencoded

レスポンスデータ型:*/*

API説明:

リクエストパラメータ:

パラメータ名説明リクエスト型必須データ型schema
idタスクIDpathfalsestring

レスポンスステータス:

ステータスコード説明schema
200OKタスク
401Unauthorized
403Forbidden
404Not Found

レスポンスパラメータ:

パラメータ名説明schema
actionタスクタイプ,使用可能値:IMAGINE,UPSCALE,VARIATION,ZOOM,PAN,DESCRIBE,BLEND,SHORTENstring
buttonsarray実行可能ボタン
  customIdアクション識別子string
  emojiアイコンstring
  labelテキストstring
  styleスタイル: 2(Primary)、3(Green)integer(int32)
  typeタイプ、システム内部使用integer(int32)
descriptionタスク説明string
failReason失敗理由string
finishTime終了時間integer(int64)integer(int64)
idIDstring
imageUrl画像urlstring
progressタスク進行状況string
promptプロンプトstring
promptEnプロンプト-英語string
propertiesobject
startTime実行開始時間integer(int64)integer(int64)
stateカスタムパラメータstring
statusタスクステータス,使用可能値:NOT_START,SUBMITTED,MODAL,IN_PROGRESS,FAILURE,SUCCESSstring
submitTime送信時間integer(int64)integer(int64)

レスポンス例:

json
{
  "action": "",
  "buttons": [
    {
      "customId": "",
      "emoji": "",
      "label": "",
      "style": 0,
      "type": 0
    }
  ],
  "description": "",
  "failReason": "",
  "finishTime": 0,
  "id": "",
  "imageUrl": "",
  "progress": "",
  "prompt": "",
  "promptEn": "",
  "properties": {},
  "startTime": 0,
  "state": "",
  "status": "",
  "submitTime": 0
}
{
  "action": "",
  "buttons": [
    {
      "customId": "",
      "emoji": "",
      "label": "",
      "style": 0,
      "type": 0
    }
  ],
  "description": "",
  "failReason": "",
  "finishTime": 0,
  "id": "",
  "imageUrl": "",
  "progress": "",
  "prompt": "",
  "promptEn": "",
  "properties": {},
  "startTime": 0,
  "state": "",
  "status": "",
  "submitTime": 0
}

タスク画像のseedを取得

APIアドレス:/mj/task/{id}/image-seed

リクエスト方式:GET

リクエストデータ型:application/x-www-form-urlencoded

レスポンスデータ型:*/*

API説明:

リクエストパラメータ:

パラメータ名説明リクエスト型必須データ型schema
idタスクIDpathfalsestring

レスポンスステータス:

ステータスコード説明schema
200OKMessage«string»
401Unauthorized
403Forbidden
404Not Found

レスポンスパラメータ:

パラメータ名説明schema
codeinteger(int32)integer(int32)
descriptionstring
resultstring

レスポンス例:

json
{
  "code": 0,
  "description": "",
  "result": ""
}
{
  "code": 0,
  "description": "",
  "result": ""
}

IDリストによるタスククエリ

APIアドレス:/mj/task/list-by-condition

リクエスト方式:POST

リクエストデータ型:application/json

レスポンスデータ型:*/*

API説明:

リクエスト例:

json
{
  "ids": []
}
{
  "ids": []
}

リクエストパラメータ:

パラメータ名説明リクエスト型必須データ型schema
conditionDTOconditionDTObodytrueタスククエリパラメータタスククエリパラメータ
  idsタスクID配列falsearraystring

レスポンスステータス:

ステータスコード説明schema
200OKタスク
201Created
401Unauthorized
403Forbidden
404Not Found

レスポンスパラメータ:

パラメータ名説明schema
actionタスクタイプ,使用可能値:IMAGINE,UPSCALE,VARIATION,ZOOM,PAN,DESCRIBE,BLEND,SHORTENstring
buttonsarray実行可能ボタン
  customIdアクション識別子string
  emojiアイコンstring
  labelテキストstring
  styleスタイル: 2(Primary)、3(Green)integer(int32)
  typeタイプ、システム内部使用integer(int32)
descriptionタスク説明string
failReason失敗理由string
finishTime終了時間integer(int64)integer(int64)
idIDstring
imageUrl画像urlstring
progressタスク進行状況string
promptプロンプトstring
promptEnプロンプト-英語string
propertiesobject
startTime実行開始時間integer(int64)integer(int64)
stateカスタムパラメータstring
statusタスクステータス,使用可能値:NOT_START,SUBMITTED,MODAL,IN_PROGRESS,FAILURE,SUCCESSstring
submitTime送信時間integer(int64)integer(int64)

レスポンス例:

json
[
  {
    "action": "",
    "buttons": [
      {
        "customId": "",
        "emoji": "",
        "label": "",
        "style": 0,
        "type": 0
      }
    ],
    "description": "",
    "failReason": "",
    "finishTime": 0,
    "id": "",
    "imageUrl": "",
    "progress": "",
    "prompt": "",
    "promptEn": "",
    "properties": {},
    "startTime": 0,
    "state": "",
    "status": "",
    "submitTime": 0
  }
]
[
  {
    "action": "",
    "buttons": [
      {
        "customId": "",
        "emoji": "",
        "label": "",
        "style": 0,
        "type": 0
      }
    ],
    "description": "",
    "failReason": "",
    "finishTime": 0,
    "id": "",
    "imageUrl": "",
    "progress": "",
    "prompt": "",
    "promptEn": "",
    "properties": {},
    "startTime": 0,
    "state": "",
    "status": "",
    "submitTime": 0
  }
]