Vai al contenuto principale
POST
/
kling
/
v1
/
videos
/
image-recognize
Run Kling image recognition
curl --request POST \
  --url https://api.cometapi.com/kling/v1/videos/image-recognize \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "image": "https://cc.tvbs.com.tw/portal/images/2018/anchor21.jpg"
}
'
{
  "code": 0,
  "message": "SUCCEED",
  "data": {
    "task_result": {
      "images": [
        {
          "type": "head_seg",
          "is_contain": true
        },
        {
          "type": "face_seg",
          "is_contain": true
        },
        {
          "type": "cloth_seg",
          "is_contain": true
        },
        {
          "type": "object_seg",
          "is_contain": true
        }
      ]
    }
  }
}

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.

Usa questo endpoint per eseguire i controlli di riconoscimento immagini di Kling prima di decidere quale workflow downstream utilizzare.

Cosa restituisce

  • La route è sincrona e restituisce direttamente i flag di riconoscimento
  • I risultati attuali indicano se l’immagine contiene regioni come head_seg, face_seg, cloth_seg e object_seg
  • Usa questi flag per decidere se un’immagine sorgente è adatta a workflow avatar, try-on o altri workflow basati su asset
Per il riferimento completo dei parametri, consulta la documentazione ufficiale di Kling.

Autorizzazioni

Authorization
string
header
obbligatorio

Bearer token authentication. Use your CometAPI key.

Intestazioni

Content-Type
string

Optional content type header.

Corpo

application/json
image
string
predefinito:https://cc.tvbs.com.tw/portal/images/2018/anchor21.jpg
obbligatorio

Image to analyze. Accepts an image URL or raw Base64 string (no data: prefix). Supported formats: JPG, JPEG, PNG. Max 10 MB, minimum 300 px per side, aspect ratio between 1:2.5 and 2.5:1.

Risposta

200 - application/json

Recognition result.

code
integer
obbligatorio
message
string
obbligatorio
data
object
obbligatorio
request_id
string