kriyam.aistudioAPI reference
Aadhaar Masking

Mask a card

POSThttps://studioapi.kriyam.ai/models/mask/aadhaar/v1

Content type multipart/form-data

Masks the Aadhaar and VID numbers on one card. Send exactly one file — a second file is refused with a 400. The call is synchronous: you get back the finished run, already charged, with the masked image in mask_applied_image. A card the service can't read comes back as a 400 and is not charged.

Request

curl -X POST "https://studioapi.kriyam.ai/models/mask/aadhaar/v1" \
  -H "X-API-Key: $KRIYAM_API_KEY" \
  -F "file=@aadhaar.jpg" \
  -F "cached=False"

Response

{6 items
"request_id":"6f1c2c1e-9a1f-4f3a-9a0e-2f5b4c..."
"status":"completed"
"error":null
"created_at":"2026-09-18T09:12:04.182741Z"
"pipeline":"v2"
"mask_applied_image":"iVBORw0KGgoAAAANSUhEUgAA..."
}

Authentication

Send your key in the X-API-Key header. See Authentication.

Request

Body

NameTypeRequiredDescription
filefileRequired

The Aadhaar card: a PNG or JPEG image, or a PDF (only its first page is masked). Exactly one file.

cachedbooleanOptional

Return the result of an identical file checked by you or your team in the last 30 days by the same version, free, instead of running again. The response then has cached: true.

Default false

Response

200 OK

Returns the run envelope. The fields below are what this tool puts inside it.

FieldTypeDescription
cachedboolean

True when this is the free copy of an identical file checked by you or your team in the last 30 days (you sent cached=true); nothing ran and nothing was charged.

request_idstring

This request's id. Quote it if you contact support about a result.

pipelinestring

The version of this endpoint that answered. Always v2.

mask_applied_imagestring

The masked image as base64-encoded PNG — this is what you came for.

Errors

Every keyed call can also get401402403404429— see Errors.