Skip to main content
POST

Authorizations

Authorization
string
header
required

Supabase user JWT (or an internal service token). Send as Authorization: Bearer <token>.

Body

application/json
image_url
string<uri>
required

HTTPS URL of the input photo. Also accepted as input_image_url.

Example:

"https://example.com/portrait.jpg"

target_age
integer
default:30

Desired apparent age in years.

Required range: 1 <= x <= 100
Example:

65

gender
enum<string>
default:none

Subject gender hint.

Available options:
none,
male,
female,
other
age_mode
enum<string>
default:selected_age

Age modification strategy. The model is chosen automatically based on this field and target_age.

Available options:
selected_age,
age_progression
webhook_url
string<uri>

HTTPS URL to receive the result after generation completes. Delivery is fire-and-forget — sent once, never retried.

Example:

"https://myapp.example.com/webhooks/age-modifier"

Response

Age modification completed successfully.

status
integer
Example:

200

data
object