Skip to main content
The Age Modifier API changes the apparent age of a person in a photo to your specified target_age. The model is chosen automatically based on the age and modification mode you provide — no model selection required. The call is synchronous — it blocks until processing completes and returns the finished image URLs directly.
Processing can take up to four minutes. Most HTTP clients default to a 30-second timeout — raise yours to at least 300 seconds before calling this endpoint.

Before you start

  • A valid Bearer token. See Authentication.
  • Enough credits. Failed generations are refunded automatically.
  • A publicly reachable image URL. The API fetches the image server-side — it cannot be behind a login, a signed-URL expiry, or a firewall.

Step 1 — Submit the request

Request fields

The model is selected automatically based on target_age and age_mode. You do not need to specify a model.

Step 2 — Read the response

Credits are reserved when the job is accepted and refunded automatically if the generation fails.

Step 3 — Optional: receive results by webhook

Pass a webhook_url to have the result delivered to your server after generation completes, in addition to the synchronous response.
The delivered payload is the same data object shown in Step 2. Delivery is fire-and-forget — sent once, never retried. The URL must be HTTPS.

Step 4 — Look up an earlier job

Use this to re-fetch the result of a past job, or if the connection dropped during generation:
output_urls and credits_deducted appear only once status is completed. When it is failed, you get an error field instead.

Common issues

See Errors for the full code reference.