curl --request POST \
--url https://www.gostudio.ai/api/v2/apps/age-modifier \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"image_url": "https://example.com/portrait.jpg",
"target_age": 65,
"gender": "female"
}
'{
"status": 200,
"data": {
"job_id": 12345,
"status": "processing",
"output_urls": [
"<string>"
],
"credits_deducted": 10,
"credit_balance": 490,
"error": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}Modify a person's apparent age in a photo
Modifies the apparent age of a person in a photo to the specified target_age. The model is chosen automatically based on target_age and age_mode.
The call blocks until processing completes (up to ~4 minutes) and returns the finished image URLs directly. Credits are deducted before generation begins and refunded if the job fails.
If webhook_url is provided, the result is also POSTed to that URL after generation completes (fire-and-forget, no retries). Must be HTTPS.
curl --request POST \
--url https://www.gostudio.ai/api/v2/apps/age-modifier \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"image_url": "https://example.com/portrait.jpg",
"target_age": 65,
"gender": "female"
}
'{
"status": 200,
"data": {
"job_id": 12345,
"status": "processing",
"output_urls": [
"<string>"
],
"credits_deducted": 10,
"credit_balance": 490,
"error": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}Authorizations
Supabase user JWT (or an internal service token). Send as Authorization: Bearer <token>.
Body
HTTPS URL of the input photo. Also accepted as input_image_url.
"https://example.com/portrait.jpg"
Desired apparent age in years.
1 <= x <= 10065
Subject gender hint.
none, male, female, other Age modification strategy. The model is chosen automatically based on this field and target_age.
selected_age, age_progression HTTPS URL to receive the result after generation completes. Delivery is fire-and-forget — sent once, never retried.
"https://myapp.example.com/webhooks/age-modifier"

