Skip to content
96Astro API

Palm Scan

POSTAvailable

POSThttps://api.96astroapi.com/v1/palmistry/palm-scan

Scan 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
Headers
HeaderValue and description
AuthorizationRequiredBearer YOUR_API_KEY

Your sandbox (sk_test_...) or live (sk_live_...) key. X-API-Key: <key> is accepted instead.

Content-TypeRequiredapplication/json

The 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)

Body · application/json
FieldDescription
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: iVBORw0KGgoAAAANSUhEUgAAAKAAAAB4CAAAAABQyaazAAAAgklEQVR42u3bQQoAIAgEQP//6fpCBsFWs2fBEbyJNcJTgICAgIDXACspgIeAp/aouvWAgICAgICAgICAgICAgICAgICAgICAgICAgICAgGsN0+/F4cCNgQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQE7QA/QbwMzAwgICPg7cAJxuHlDZty0owAAAABJRU5ErkJggg==

mime_typestring | nullOptional

The image's type. Required unless image_base64 is a data: URI; must match the file.

Default: null

Allowed values: image/pngimage/jpegimage/webp

Example: image/png

tierstringOptional

fast (Claude Haiku) or balanced (Sonnet). Sets the price range.

Default: fast

Allowed values: fastbalanced

Example: fast

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: true

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: en

Allowed values: enasbndeesfrguhiitjaknkomlmrnenlorpaplptrusitatetrur

labelstring | nullOptional

Your own name for this scan (a person, a date), up to 80 characters.

Default: null

Limits: at most 80 characters

Example: Asha, right hand

birthobject | nullOptional

Optional date of birth and gender, used only for the readings' age and gender.

Default: null

birth.datestring | nullOptional

Date of birth, YYYY-MM-DD. Used only to give the readings an age.

Default: null

Limits: format date

Example: 1990-10-18

birth.genderstring | nullOptional

Used only where palmistry distinguishes the hands.

Default: null

Allowed values: femalemaleother

Example: female

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 · string
  • label · string | null
  • hand_side · string
  • photo_quality · number | null
  • lines · array of object
  • element · object
  • dominant_mounts · array of string
  • unique_traits · array of string
  • fields_seen · integer
  • created_at · string
  • expires_at · string
  • notice · string
  • tier · string
  • next · string

Try in Playground →Capability overview

Example request

Example response (illustrative)

200application/json
{
  "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.

Was this page helpful?

Send us feedback

What is it about?