使用我们简单的REST API将专业背景移除、AI人脸增强、EXIF处理和水印集成到您的应用程序中。
curl -X POST "https://visapics.org/api/v1/photo/remove-background" \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "photo=@portrait.jpg" \
-F "background_color=white"
专业照片处理所需的一切
AI驱动的背景移除,支持白色、透明或自定义颜色(包括十六进制值)。
GFPGAN驱动的人脸增强,可改善质量、修复瑕疵并增强面部细节。
添加文字或图片水印,可自定义位置、不透明度、旋转和平铺图案。
提取完整的EXIF数据,包括相机信息、GPS坐标和曝光设置。
移除所有EXIF元数据以保护隐私,同时可选择保留图像方向。
完整的签证/护照照片处理,包含来自172个国家的952+份文档规格。
向您的API余额充值。充值越多,自动折扣越大。
每张照片
任意充值金额
每张照片
充值$50+
每张照片
充值$100+
每张照片
充值$500+
工具端点按照片费率的百分比定价:背景移除(20%)、增强(30%)、水印(10%)
EXIF端点始终免费
多种语言的即用示例
移除背景并替换为白色、透明或自定义颜色。
# White background
curl -X POST "https://visapics.org/api/v1/photo/remove-background" \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "photo=@portrait.jpg" \
-F "background_color=white"
# Transparent background (PNG output)
curl -X POST "https://visapics.org/api/v1/photo/remove-background" \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "photo=@portrait.jpg" \
-F "background_color=transparent"
# Custom hex color
curl -X POST "https://visapics.org/api/v1/photo/remove-background" \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "photo=@portrait.jpg" \
-F "background_color=#87CEEB"
使用GFPGAN增强面部特征和照片质量。
curl -X POST "https://visapics.org/api/v1/photo/enhance" \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "photo=@portrait.jpg" \
-F "output_format=url"
添加文字或图片水印,提供完整的自定义选项。
# Text watermark in corner
curl -X POST "https://visapics.org/api/v1/photo/watermark" \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "photo=@image.jpg" \
-F "watermark_type=text" \
-F "text=© MyCompany 2025" \
-F "position=bottom-right" \
-F "font_size=24" \
-F "color=#FFFFFF" \
-F "opacity=0.7"
# Tile watermark pattern
curl -X POST "https://visapics.org/api/v1/photo/watermark" \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "photo=@image.jpg" \
-F "watermark_type=text" \
-F "text=SAMPLE" \
-F "position=tile" \
-F "opacity=0.3"
# Image watermark (logo)
curl -X POST "https://visapics.org/api/v1/photo/watermark" \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "photo=@image.jpg" \
-F "watermark_type=image" \
-F "watermark_image=@logo.png" \
-F "position=bottom-right" \
-F "opacity=0.5"
读取或移除照片的EXIF元数据。
# Read EXIF data
curl -X POST "https://visapics.org/api/v1/photo/exif" \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "photo=@image.jpg"
# Remove EXIF data (strip metadata for privacy)
curl -X POST "https://visapics.org/api/v1/photo/exif/remove" \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "photo=@image.jpg" \
-F "keep_orientation=true"
完整的签证/护照照片处理,包含自动裁剪、背景移除和合规检查。
# US Passport Photo
curl -X POST "https://visapics.org/api/v1/photo/process" \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "photo=@selfie.jpg" \
-F "country_code=US" \
-F "document_type=Passport" \
-F "remove_background=true" \
-F "enhance_photo=true"
# UK Passport (Digital Code)
curl -X POST "https://visapics.org/api/v1/photo/process" \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "photo=@selfie.jpg" \
-F "country_code=GB" \
-F "document_type=Passport"
# Schengen Visa
curl -X POST "https://visapics.org/api/v1/photo/process" \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "photo=@selfie.jpg" \
-F "country_code=EU" \
-F "document_type=Schengen Visa"
在visapics.org创建免费账户,然后转到您的账户仪表板 > API密钥以生成新密钥。您可以为不同的应用程序创建多个具有不同名称的密钥。
默认速率限制为每个API密钥每小时1000个请求。需要更高的限制?联系我们获取具有自定义速率限制的企业计划。
按需付费模式。向您的API余额充值,然后每个请求从您的余额中扣除。更高的充值可解锁更低的每请求费率。EXIF端点始终免费。
我们支持最大10MB的JPEG和PNG输入文件。输出默认为JPEG,透明背景则为PNG。
我们建议使用EXIF端点(免费)来测试您的集成。对于付费端点,费用仅从每个请求$0.05起。