POST
/
idcard
/
recognize
curl --request POST \
  --url https://geekai.co/api/v1/idcard/recognize \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "image": "",
  "model": "glm-4v-flash"
}'
{
  "name": "张三",
  "sex": "男",
  "nation": "汉",
  "birth": "2025年2月10日",
  "address": "浙江省杭州市上城区XX小区XX幢元XX室",
  "id": "<string>"
}

注:model 值不传递默认使用免费的 glm-4v-flash,你也可以在模型广场选择极客智坊支持的其他图片识别模型,费用以列表显示的模型价格(API)为准。

cURL 请求示例

curl --location 'https://geekai.co/api/v1/idcard/recognize' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {YOUR_GEEKAI_API_KEY}' \
--data '{
    "image": "https://example.com/idcard.jpg"
}'

Postman 请求响应示例

Authorizations

Authorization
string
header
required

JWT认证token

Body

application/json

Response

200
application/json

成功响应

The response is of type object.