Render User Avatar Async
开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
/api/v1/renders/new
common/preview
. Other available scenes can be foundin render docs.
Contact avaturn support for detailed instructions how to provide your own scenes.
1.
/renders/new
endpoint2.
3.
render.ready
webhook,which contains a task ID and a link to the rendering result.
not yet opened via browser UNDEFINED and can be changed in the future.
Set customization via corresponding endpoint to get predictable behaviour.
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/api/v1/renders/new?avatar_id&scene'
响应示例响应示例
200 - 示例 1
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"status": "pending",
"render_url": "string"
}
请求参数
Query 参数
avatar_id
string <uuid>
Avatar Id
scene
string
Scene
正则匹配:
^[a-zA-Z0-9_/]+$
format
enum<string>
Format
枚举值:
jpgpngwebp
默认值:
jpg
返回响应
修改于 2024-05-30 08:40:21