Skip to main content
POST
cURL
このエンドポイントを使用すると、入力画像から Midjourney スタイルのプロンプト候補を抽出できます。

このルートが適している用途

  • 画像を、リミックス可能なプロンプト候補に変換する
  • 新しい imagine タスクを開始する前に、ビジュアルの方向性を抽出する
  • 最初のプロンプトをゼロから書きたくない場合に、作成ループを高速化する

タスクの流れ

1

画像を送信

Midjourney に説明させたい画像をアップロードまたは参照し、返された task id を保存します。
2

describe タスクをポーリング

タスクが完了し、プロンプトのような出力を返すまで Fetch Single Task を使用します。
3

生成されたプロンプトを再利用

意図に合ったプロンプト候補を選び、Imagine で新しい生成パスを続行します。

承認

Authorization
string
header
必須

Bearer token authentication. Use your CometAPI key.

ボディ

application/json
base64
string
デフォルト:data:image/png;base64,<your-image-base64>
必須

Base64-encoded image to describe. Use a data URI such as data:image/png;base64,xxx. Provide either base64 or link.

URL of the image to describe. Provide either link or base64.

botType
enum<string>

Bot type to use. MID_JOURNEY for Midjourney (default), NIJI_JOURNEY for Niji.

利用可能なオプション:
NIJI_JOURNEY,
MID_JOURNEY
state
string

Custom state string. Returned as-is in the task result and webhook callback for your own tracking.

レスポンス

200 - application/json

Success

code
integer
必須

Submission status code. 1 = submitted successfully (result carries the task id). 21 = the action opened a confirmation modal; continue with /mj/submit/modal using the returned task id. 4 = parameter error; description explains the cause.

description
string
必須
properties
object
必須
result
integer
必須