Easily Create Your AR Ring or Engagement Ring Try Ons. You Only Need to Upload Images. Opt for 2D images for effortless yet high-quality virtual try-on experiences with minimal effort.
AI Ring Virtual Try-On API (v1.8) (1.0.0)
Download OpenAPI description
Languages
Servers
Production server
https://api.example.com
Bodyapplication/jsonrequired
One of:
Url of the reference file to run task. The url should be publicly accessible.
Example: ["https://example.com/vto_sku.jpg"]
Url of the reference mask file to run task. The url should be publicly accessible.
Default null
Example: ["https://example.com/vto_sku_mask.jpg"]
Url of the file to run task. The url should be publicly accessible.
Example: "https://example.com/selfie.jpg"
Url of the source mask file to run task. The url should be publicly accessible.
Default null
Example: "https://example.com/src_mask.jpg"
The reference url or File ID. Indicate which reference product image should be matched.
Example: "https://example.com/vto_sku.jpg"
The reference mask url or File ID. Indicate which reference product image should be matched.
Default null
Example: "https://example.com/vto_sku_mask.jpg"
- Production serverhttps://api.example.com/s2s/v2.0/task/ring
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
- RingRunTaskV21
- RingRunTaskV22
- RingRunTaskV23
- RingRunTaskV24
curl -i -X POST \
https://api.example.com/s2s/v2.0/task/ring \
-H 'Content-Type: application/json' \
-d '{
"source_info": {
"name": "https://example.com/selfie.jpg",
"mask_name": "https://example.com/src_mask.jpg"
},
"ref_file_urls": [
"https://example.com/vto_sku.jpg"
],
"refmsk_file_urls": [
"https://example.com/vto_sku_mask.jpg"
],
"src_file_url": "https://example.com/selfie.jpg",
"srcmsk_file_url": "https://example.com/src_mask.jpg",
"object_infos": [
{
"name": "https://example.com/vto_sku.jpg",
"mask_name": "https://example.com/vto_sku_mask.jpg",
"parameter": {
"ring_ambient_light_intensity": 1,
"ring_anchor_point": null,
"ring_need_remove_background": true,
"ring_shadow_intensity": 0.15,
"ring_wearing_finger": null,
"ring_wearing_location": null
}
}
]
}'Response
application/json
{ "data": { "task_id": "string", "status": "string", "results": [ … ] } }