所有API请求都需要API密钥
Authorization: Bearer isp_your_api_key_here
满足您所有照片处理需求的强大端点
/api/v1/remove-background
以像素级精度从图像中去除背景。返回透明PNG或应用自定义背景颜色。
curl -X POST https://api.ishotaphoto.com/v1/remove-background \
-H "Authorization: Bearer isp_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"image_url": "https://example.com/photo.jpg",
"output_format": "png",
"background_color": null
}'
{
"success": true,
"credits_used": 1,
"credits_remaining": 249,
"result": {
"image_url": "https://cdn.ishotaphoto.com/results/abc123.png",
"expires_at": "2025-01-08T12:00:00Z"
}
}
/api/v1/replace-background
用纯色、渐变或自定义图像替换背景。非常适合产品摄影和人像。
curl -X POST https://api.ishotaphoto.com/v1/replace-background \
-H "Authorization: Bearer isp_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"image_url": "https://example.com/photo.jpg",
"background": {
"type": "color",
"value": "#FFFFFF"
}
}'
{
"success": true,
"credits_used": 1,
"credits_remaining": 248,
"result": {
"image_url": "https://cdn.ishotaphoto.com/results/def456.jpg",
"expires_at": "2025-01-08T12:00:00Z"
}
}
/api/v1/detect-faces
使用边界框、置信度分数和多人脸支持检测和定位图像中的人脸。
curl -X POST https://api.ishotaphoto.com/v1/detect-faces \
-H "Authorization: Bearer isp_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"image_url": "https://example.com/photo.jpg"
}'
{
"success": true,
"credits_used": 1,
"faces": [
{
"confidence": 0.98,
"bounding_box": {
"x": 120, "y": 80,
"width": 200, "height": 250
}
}
]
}
/api/v1/detect-emotions
分析面部表情以检测快乐、惊讶、中性等情绪,并提供置信度分数。
curl -X POST https://api.ishotaphoto.com/v1/detect-emotions \
-H "Authorization: Bearer isp_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"image_url": "https://example.com/photo.jpg"
}'
{
"success": true,
"credits_used": 1,
"faces": [
{
"emotions": {
"neutral": 0.85,
"happy": 0.10,
"surprised": 0.03,
"sad": 0.02
}
}
]
}
/api/v1/detect-keypoints
检测68+个面部特征点,包括眼睛、鼻子、嘴巴和下颌线,用于精确的面部分析和对齐。
curl -X POST https://api.ishotaphoto.com/v1/detect-keypoints \
-H "Authorization: Bearer isp_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"image_url": "https://example.com/photo.jpg"
}'
{
"success": true,
"credits_used": 1,
"faces": [
{
"keypoints": {
"left_eye": {"x": 180, "y": 120},
"right_eye": {"x": 260, "y": 118},
"nose_tip": {"x": 220, "y": 170},
"mouth_center": {"x": 222, "y": 210}
}
}
]
}
/api/v1/generate-passport-photo
为100多个国家生成符合规格的护照和签证照片。自动裁剪、调整大小并应用正确的规格。
curl -X POST https://api.ishotaphoto.com/v1/generate-passport-photo \
-H "Authorization: Bearer isp_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"image_url": "https://example.com/photo.jpg",
"country_code": "US",
"document_type": "passport"
}'
{
"success": true,
"credits_used": 1,
"result": {
"image_url": "https://cdn.ishotaphoto.com/results/ghi789.jpg",
"dimensions": {"width": 600, "height": 600},
"dpi": 300,
"compliant": true
}
}
/api/v1/validate-photo
根据官方要求验证照片。检查尺寸、背景、面部位置、表情等。
curl -X POST https://api.ishotaphoto.com/v1/validate-photo \
-H "Authorization: Bearer isp_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"image_url": "https://example.com/photo.jpg",
"country_code": "US",
"document_type": "passport"
}'
{
"success": true,
"credits_used": 1,
"valid": false,
"checks": {
"face_detected": {"pass": true},
"background": {"pass": false, "reason": "Not white"},
"head_position": {"pass": true},
"expression": {"pass": true, "value": "neutral"}
}
}
/api/v1/enhance-image
AI驱动的亮度、对比度、锐度和色彩校正增强。非常适合低质量上传。
curl -X POST https://api.ishotaphoto.com/v1/enhance-image \
-H "Authorization: Bearer isp_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"image_url": "https://example.com/photo.jpg",
"enhancements": ["brightness", "sharpness", "denoise"]
}'
{
"success": true,
"credits_used": 1,
"result": {
"image_url": "https://cdn.ishotaphoto.com/results/jkl012.jpg",
"enhancements_applied": ["brightness", "sharpness", "denoise"],
"expires_at": "2025-01-08T12:00:00Z"
}
}
/api/v1/estimate-head-pose
使用俯仰、偏航和滚动角度检测头部方向。对于验证正面照片至关重要。
curl -X POST https://api.ishotaphoto.com/v1/estimate-head-pose \
-H "Authorization: Bearer isp_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"image_url": "https://example.com/photo.jpg"
}'
{
"success": true,
"credits_used": 1,
"faces": [
{
"pose": {
"pitch": 2.5,
"yaw": -1.2,
"roll": 0.8
},
"front_facing": true
}
]
}
1积分 = 1次API调用。无订阅,只为使用付费。
为开发者打造,受企业信赖
大多数操作的平均响应时间低于500毫秒
符合SOC 2标准,端到端加密
可靠的基础设施配合全球CDN
企业客户优先支持