Saltar para o conteúdo principal
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.

Use este endpoint para extrair sugestões de prompt no estilo Midjourney de uma imagem de entrada.

Para que esta rota é útil

  • Transformar uma imagem em candidatos de prompt que você pode remixar
  • Extrair uma direção visual antes de iniciar uma nova tarefa imagine
  • Criar um fluxo de autoria mais rápido quando você não quiser escrever o primeiro prompt do zero

Fluxo da tarefa

1

Enviar a imagem

Faça upload ou referencie a imagem que você quer que o Midjourney descreva e armazene o id da tarefa retornado.
2

Consultar a tarefa de descrição

Use Buscar tarefa única até que a tarefa seja concluída e retorne uma saída semelhante a um prompt.
3

Reutilizar o prompt gerado

Pegue o candidato de prompt que corresponde à sua intenção e continue com Imagine para uma nova etapa de geração.

Autorizações

Authorization
string
header
obrigatório

Bearer token authentication. Use your CometAPI key.

Corpo

application/json
base64
string
padrão:example
obrigatório

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.

Opções disponíveis:
NIJI_JOURNEY,
MID_JOURNEY
state
string

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

Resposta

200 - application/json

Success

code
integer
obrigatório
description
string
obrigatório
properties
object
obrigatório
result
integer
obrigatório