Skip to main content

API Overview

Please create an API Key before using the API.

Authentication

All Palm X interfaces are authenticated with an API Key over HTTPS Bearer Auth.

ItemValue
Security scheme typehttps
HTTP authorization schemebearer
CredentialAPI Key (ak_ prefix)

Apply for an API Key in the developer console:

🔑 https://palm.tencent.com/developer/api-keys

Send the key in every request header:

Authorization: Bearer ak_xxxxxxxxxxxxxxxxxxxxxxxxxxxx

⚠️ The API Key is a server-side credential. Never embed it in client-side code, public repositories, or mobile app packages. If leaked, delete and regenerate it in the console immediately.

Common Conventions

ItemValue
Endpoint hosthttps://open.intl.palm.tencent.com
URL patternPOST /palm/openai/<interface>
Content-Typeapplication/json; charset=utf-8
Field namingPascalCase (e.g. UserId, RgbImage)
Image payloadBase64-encoded string in RgbImage.Data

All interfaces return a unified response envelope:

{
"code": 0,
"message": "ok",
"requestId": "4d5912a82af144f8a982c2da031c1035",
"data": {}
}
FieldTypeDescription
codeIntegerBusiness error code. 0 = success; non-zero = failure, see Error Codes
messageStringError description ("ok" on success)
requestIdStringUnique request ID — always provide it when reporting issues
dataObjectBusiness payload (see each interface page)

Functional Classification

Palmprint Management Interfaces (RGB)

InterfaceFunctionRate Limit (req/sec/AppId)
RegisterRgbPalmRegister RGB palmprint20
CompareRgbPalmCompare RGB palmprint (1:1)20
SearchRgbPalmSearch RGB palmprint (1:N)20
DeletePalmDelete palmprint20

Rate Limits

  • Default rate limit: 20 requests/sec per interface (counted independently per credential).
  • When the rate limit is exceeded, the API returns HTTP 429 or business error code 2060002 (too many requests). Lower your QPS; contact the official team to request a higher limit.
  • Capacity-related business error codes (e.g. 2080014, 2080020) indicate the palmprint gallery is full — contact the official team to request an expansion, or delete unused palmprints first. See Error Codes.

Trial & Payment: Palm X is free to use for 90 days after application creation. After 90 days, call-count and palmprint-capacity limits apply; purchasing a License removes these limits. Specific pricing rules will be announced officially at a later date.