顔面偏差値・顔年齢API
ドキュメント

使い方

画像を1枚 POST すると、写っている顔ごとの結果が JSON で返ります。

呼び出し先

POST https://www.ikachi.org/facelevel/api/v1/predict

送るもの

場所名前内容
ヘッダX-API-Key発行したAPIキー(Authorization: Bearer ... でも可)
本文file画像1枚(multipart/form-data)。JPEG か PNG、10MB まで

例(curl)

curl -X POST https://www.ikachi.org/facelevel/api/v1/predict \
  -H "X-API-Key: fsk_あなたのキー" \
  -F "[email protected]"

返ってくるもの

{
  "success": true,
  "faces_detected": 1,
  "results": [
    {
      "face_id": 0,
      "score": 66.2,          // 顔面偏差値
      "raw_score": 3.648,     // 生のスコア(1〜5)
      "age": 33.1,            // 推定年齢
      "gender": "male",       // "male" / "female"
      "gender_prob": 1.0,     // 性別の確からしさ(0〜1)
      "bbox": { "x": 126, "y": 11, "width": 222, "height": 309 }  // 顔の位置(px)
    }
  ],
  "usage": { "plan": "free", "used_today": 1, "limit_today": 20 }
}

ご注意

© 合同会社IKACHI