Skip to main content
POST
身份证识别接口
If you omit model, GeekAI uses the free glm-4v-flash model. You can select another vision model in the model marketplace; the listed API price applies.

Example cURL request

Example request and response in Postman

Recognize an ID card

Authorizations

Authorization
string
header
required

极客智坊 API KEY

Body

application/json
image
string
required

支持图片URL或Base64编码图片,支持主流图片格式,如png/jpg/jpeg等

Example:

""

model
string

支持图片识别的模型,不传默认是免费的glm-4v-flash

Example:

"glm-4v-flash"

Response

成功响应

name
string

姓名

Example:

"张三"

sex
enum<string>

性别

Available options:
男,
女
Example:

"男"

nation
string

民族

Example:

"汉"

birth
string<date>

出生日期

Example:

"2025年2月10日"

address
string

住址

Example:

"浙江省杭州市上城区XX小区XX幢元XX室"

id
string

身份证号码