メインコンテンツへスキップ
POST
/
mj
/
submit
/
describe
Describe (image -> text)
curl --request POST \
  --url https://api.cometapi.com/mj/submit/describe \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "base64": "data:image/png;base64,xxx"
}
'
{
  "code": 123,
  "description": "<string>",
  "properties": {},
  "result": 123
}
このエンドポイントを使用すると、入力画像から 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
デフォルト:example
必須

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
必須
description
string
必須
properties
object
必須
result
integer
必須