Skin Contrast Upscaler Serverless API
Enhances skin detail in images while preserving background quality for professional photography and art.
1import requests
2import json
3
4url = "https://api.segmind.com/v1/skin-contrast-upscaler"
5headers = {
6 "x-api-key": "YOUR_API_KEY",
7 "Content-Type": "application/json"
8}
9
10data = {
11 "image": "https://segmind-resources.s3.amazonaws.com/input/525e16bd-4175-4952-8010-8e91e5050c71-model-face-image-for-testing.png",
12 "image_format": "jpg",
13 "image_quality": 85,
14 "base64": false
15}
16
17response = requests.post(url, headers=headers, json=data)
18
19if response.status_code == 200:
20 result = response.json()
21 print(json.dumps(result, indent=2))
22else:
23 print(f"Error: {response.status_code}")
24 print(response.text) 1import requests
2import json
3
4url = "https://api.segmind.com/v1/skin-contrast-upscaler"
5headers = {
6 "x-api-key": "YOUR_API_KEY",
7 "Content-Type": "application/json"
8}
9
10data = {
11 "image": "https://segmind-resources.s3.amazonaws.com/input/525e16bd-4175-4952-8010-8e91e5050c71-model-face-image-for-testing.png",
12 "image_format": "jpg",
13 "image_quality": 85,
14 "base64": false
15}
16
17response = requests.post(url, headers=headers, json=data)
18
19if response.status_code == 200:
20 result = response.json()
21 print(json.dumps(result, indent=2))
22else:
23 print(f"Error: {response.status_code}")
24 print(response.text)API Endpoint
https://api.segmind.com/v1/skin-contrast-upscalerParameters
imagerequiredstring (uri)Input image URL or base64 to process. Use clear images for best results.
"https://segmind-resources.s3.amazonaws.com/input/525e16bd-4175-4952-8010-8e91e5050c71-model-face-image-for-testing.png"base64optionalbooleanOutput in base64 string instead of URL. Useful for embedding images.
falseimage_formatoptionalstringSet output image format. 'jpg' for general use or 'png' for higher quality.
"jpg""png""jpg""jpeg""webp"image_qualityoptionalintegerDetermine output image quality (1-100). Use 85 for balance or 100 for maximum fidelity.
85Range: 1 - 100Response Type
Returns: Image
Common Error Codes
The API returns standard HTTP status codes. Detailed error messages are provided in the response body.
Bad Request
Invalid parameters or request format
Unauthorized
Missing or invalid API key
Forbidden
Insufficient permissions
Not Found
Model or endpoint not found
Insufficient Credits
Not enough credits to process request
Rate Limited
Too many requests
Server Error
Internal server error
Bad Gateway
Service temporarily unavailable
Timeout
Request timed out