Tencent ARC's face restoration model โ 115M+ runs, the most-run model in the restoration collection. Restores old/blurry photos and fixes faces in AI-generated images.
Test this model instantly in the Console Playground โ no code required
Copy usage instructions for Claude, ChatGPT, or other AI
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: cdt_your_api_key" \
-d '{
"model": "tencentarc/gfpgan",
"input": {
"img": "https://example.com/old-photo.jpg",
"version": "v1.4",
"scale": 2
}
}'| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
img | string | Yes | - | Input image with faces to restore |
version | string | No | v1.4 | v1.3: better quality. v1.4: more details and better identity. RestoreFormer: alternative architecture v1.2v1.3v1.4RestoreFormer |
scale | number | No | 2 | Rescaling factor for the output |
There are 3 ways to provide files for the img parameter:
Attach files directly to POST /v1/predictions/upload. No separate upload step needed.
curl -X POST "https://api.core.today/v1/predictions/upload" \
-H "X-API-Key: cdt_your_api_key" \
-F "model=tencentarc/gfpgan" \
-F 'input={"prompt":"your prompt here"}' \
-F "file:img=@your_file.png"Pass a publicly accessible URL directly. You can also use file_url from the Storage API.
{
"model": "tencentarc/gfpgan",
"input": {
"prompt": "your prompt here",
"img": "https://example.com/image.jpg"
}
}Common parameters used when calling POST /v1/predictions.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
model | string | Yes | - | Model identifier |
input | object | Yes | - | Object containing the model-specific parameters from the table above |
output_folder | string | No | - | Folder path for output files (max 256 chars, '..' not allowed) |
webhook_url | string | No | - | Webhook URL to call on completion |
is_public | boolean | No | false | If true, output files are also available via permanent public URLs |
Restore a blurry old family photo at 2x
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: cdt_your_api_key" \
-d '{
"model": "tencentarc/gfpgan",
"input": {
"img": "https://example.com/old-photo.jpg",
"version": "v1.4",
"scale": 2
}
}'POST /v1/predictions