Palm Scan
POSTAvailable
https://api.96astroapi.com/v1/palmistry/palm-scanScan a palm photo once into saved observations: each line with a confidence, the hand's element with its rule, mounts and marks. Returns a palm_id that the cards and readings reuse; the photo is not stored.
- Credits
- Metered, from 15 credits
- Input
- A photo
- Output
- JSON
- Delivery
- Direct response
- Languages
- 26 languages; translated term names with
labels
| Header | Value and description |
|---|---|
AuthorizationRequired | Bearer YOUR_API_KEYYour sandbox (sk_test_...) or live (sk_live_...) key. X-API-Key: <key> is accepted instead. |
Content-TypeRequired | application/jsonThe body is JSON. |
Idempotency-KeyOptional | <unique string>Makes retries safe: a repeated key with the same body replays the stored response and is never charged twice. (1 to 200 characters) |
| Field | Description |
|---|---|
image_base64stringRequired | The photo or image file (a palm, a face or a floor plan), base64-encoded (a `data:image/...;base64,` prefix is accepted). PNG, JPEG or WebP; at most 3.75 MiB decoded and 8000 px a side. Limits: 1 to 5400000 characters Example: |
mime_typestring | nullOptional | The image's type. Required unless image_base64 is a data: URI; must match the file. Default: Allowed values: image/pngimage/jpegimage/webp Example: |
tierstringOptional | fast (Claude Haiku) or balanced (Sonnet). Sets the price range. Default: Allowed values: fastbalanced Example: |
consentbooleanRequired | Must be true: the person in the photo agreed to this reading, and is an adult or has a guardian's agreement. Allowed value: true Example: |
languagestringOptional | Output language (ISO 639-1). The values listed are the ones this capability supports; any other is refused with 422 unsupported_language. Identifiers, enum values and numbers never change with language. Default: Allowed values: enasbndeesfrguhiitjaknkomlmrnenlorpaplptrusitatetrur |
labelstring | nullOptional | Your own name for this scan (a person, a date), up to 80 characters. Default: Limits: at most 80 characters Example: |
birthobject | nullOptional | Optional date of birth and gender, used only for the readings' age and gender. Default: |
birth.datestring | nullOptional | Date of birth, YYYY-MM-DD. Used only to give the readings an age. Default: Limits: format date Example: |
birth.genderstring | nullOptional | Used only where palmistry distinguishes the hands. Default: Allowed values: femalemaleother Example: |
labelsstringOptional | Optional. Adds `meta.labels`: translated display names for the identifiers in the answer. `data` is unchanged. Free. Any other code is refused with 422 unsupported_language. Allowed values: asbndeesfrguhiitjaknkomlmrnenlorpaplptrusitatetrur |
Response · fields in data
The response contract: required fields are always present.
palm_id· stringlabel· string | nullhand_side· stringphoto_quality· number | nulllines· array of objectelement· objectdominant_mounts· array of stringunique_traits· array of stringfields_seen· integercreated_at· stringexpires_at· stringnotice· stringtier· stringnext· string
Example request
curl -X POST https://api.96astroapi.com/v1/palmistry/palm-scan \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"image_base64": "iVBORw0KGgoAAAANSUhEUgAAAKAAAAB4CAAAAABQyaazAAAAgklEQVR42u3bQQoAIAgEQP//6fpCBsFWs2fBEbyJNcJTgICAgIDXACspgIeAp/aouvWAgICAgICAgICAgICAgICAgICAgICAgICAgICAgGsN0+/F4cCNgQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQE7QA/QbwMzAwgICPg7cAJxuHlDZty0owAAAABJRU5ErkJggg==",
"mime_type": "image/png",
"consent": true,
"label": "Asha, right hand",
"birth": {
"date": "1990-10-18",
"gender": "female"
},
"tier": "fast"
}'Example response (illustrative)
{
"data": {
"palm_id": "7b1f0c52-3a4e-4d8b-9c61-2f5e8a90d314",
"label": "Asha, right hand",
"hand_side": "right",
"photo_quality": 0.82,
"lines": [
{
"line": "heart_line",
"confidence": 0.9
},
{
"line": "head_line",
"confidence": 0.8
},
{
"line": "life_line",
"confidence": 0.85
}
],
…Written by hand from the documented shape: AI readings are not captured automatically. Real text, token counts and credits differ.
Error responses
- 400invalid_request
- 401invalid_key, expired_key
- 402payment_required
- 403account_suspended, plan_upgrade_required, plan_family_not_included, key_scope_denied, ip_not_allowed, origin_not_allowed, publishable_key_not_allowed
- 404not_found
- 409idempotency_conflict
- 413payload_too_large
- 422invalid_request, unsupported_language
- 429rate_limited, quota_exhausted, spend_cap_reached, project_budget_exceeded
- 500computation_failed
- 502unavailable
- 503unavailable, maintenance, temporarily_unavailable
- 504deadline_exceeded
Errors are never charged. What each status means and what to do: errors.

