Vai al contenuto principale
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
}
Usa questo endpoint per estrarre suggerimenti di Prompt in stile Midjourney da un’immagine di input.

A cosa serve questa route

  • Trasformare un’immagine in candidati Prompt che puoi remixare
  • Estrarre una direzione visiva prima di iniziare una nuova attività imagine
  • Creare un flusso di authoring più rapido quando non vuoi scrivere il primo Prompt da zero

Flusso dell’attività

1

Invia l'immagine

Carica o fai riferimento all’immagine che vuoi far descrivere a Midjourney e memorizza il task id restituito.
2

Interroga il task describe

Usa Fetch Single Task finché il task non è completato e restituisce un output simile a un Prompt.
3

Riutilizza il Prompt generato

Prendi il miglior candidato Prompt e continua con Imagine per un nuovo passaggio di generazione.

Autorizzazioni

Authorization
string
header
obbligatorio

Bearer token authentication. Use your CometAPI key.

Corpo

application/json
base64
string
predefinito:example
obbligatorio

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.

Opzioni disponibili:
NIJI_JOURNEY,
MID_JOURNEY
state
string

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

Risposta

200 - application/json

Success

code
integer
obbligatorio
description
string
obbligatorio
properties
object
obbligatorio
result
integer
obbligatorio