Make ID photo
make_id_photoTurn a portrait photo into a compliant passport / visa / ID photo for a given document spec (cropping, resizing, background replacement, quality checks). Returns a temporary download URL for the finished JPEG, its pixel/physical size, and any detected quality issues (e.g. ISSUE_EYEGLASSES_NOT_ALLOWED) that may require a retake. Use list_photo_specs or get_photo_spec first if you are unsure of the specCode. The input image must be base64 (data URI prefix allowed), at most ~4 MB decoded, showing one person facing the camera. Without API credentials this is limited to 3 photos per day.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"specCode": "<specCode>",
"imageBase64": "<imageBase64>"
},
"name": "make_id_photo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| specCode | Yes | Document spec code, e.g. 'us-passport', 'uk-passport', 'schengen-visa'. Specs starting with 'ai-' use AI generation and may be slow. | |
| imageBase64 | Yes | Source portrait as base64 (JPEG/PNG). A 'data:image/jpeg;base64,' prefix is optional. |