Chuyển đến nội dung chính
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
}

Documentation Index

Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt

Use this file to discover all available pages before exploring further.

Sử dụng endpoint này để trích xuất các gợi ý prompt theo phong cách Midjourney từ một hình ảnh đầu vào.

Trường hợp phù hợp để dùng route này

  • Biến một hình ảnh thành các prompt candidate mà bạn có thể remix
  • Trích xuất một định hướng hình ảnh trước khi bạn bắt đầu một tác vụ imagine mới
  • Xây dựng vòng lặp soạn thảo nhanh hơn khi bạn không muốn viết prompt đầu tiên từ đầu

Luồng tác vụ

1

Gửi hình ảnh

Tải lên hoặc tham chiếu hình ảnh mà bạn muốn Midjourney mô tả và lưu task id được trả về.
2

Poll describe task

Sử dụng Fetch Single Task cho đến khi task hoàn tất và trả về đầu ra giống prompt.
3

Tái sử dụng prompt đã tạo

Lấy prompt candidate phù hợp với mục đích của bạn và tiếp tục với Imagine cho một lượt tạo mới.

Ủy quyền

Authorization
string
header
bắt buộc

Bearer token authentication. Use your CometAPI key.

Nội dung

application/json
base64
string
mặc định:example
bắt buộc

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.

Tùy chọn có sẵn:
NIJI_JOURNEY,
MID_JOURNEY
state
string

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

Phản hồi

200 - application/json

Success

code
integer
bắt buộc
description
string
bắt buộc
properties
object
bắt buộc
result
integer
bắt buộc