Skip to main content
POST
/
bizcard
/
recognize
名片识别接口
curl --request POST \
  --url https://geekai.co/api/v1/bizcard/recognize \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "image": "<string>",
  "model": "glm-4v-flash"
}
'
{
  "name": "张三",
  "company": "极客智识网络科技有限公司",
  "position": "客户经理",
  "address": "浙江省杭州市上城区钱江新城",
  "phone": [
    "+8618888888888",
    "057128888888"
  ],
  "email": [
    "zhangsan@geekai.dev"
  ]
}
GeekAI has reconstructed the traditional OCR image recognition service based on AI model services and opened it up in the form of an API interface.
Note: If the model value is not passed, the free glm-4v-flash is used by default. You can also choose other image recognition models supported by GeekAI in the Model Marketplace. The cost is based on the model price (API) displayed in the list.

cURL Request Example

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

Authorizations

Authorization
string
header
required

API认证token

Body

application/json
image
string
required

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

model
string
default:glm-4v-flash

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

Example:

"glm-4v-flash"

Response

成功响应

name
string

姓名

Example:

"张三"

company
string

公司

Example:

"极客智识网络科技有限公司"

position
string

职位

Example:

"客户经理"

address
string

地址

Example:

"浙江省杭州市上城区钱江新城"

phone
string[]

电话号码列表

Example:
["+8618888888888", "057128888888"]
email
string[]

邮箱列表

Example:
["zhangsan@geekai.dev"]