Diamonds are used for "continue training" (a.k.a diamond avatar) in adding avatar process. This endpoint allows to exchange diamonds from coins.The exchange rate is 100 coins to 1 diamond.Note: same as our website, you cannot get coins back from exchanging diamonds. Please make sure you do need diamonds before you exchange coins.
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json
diamonds
integerÂ
required
The number of diamonds to be exchanged
Example
{"diamonds":1}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST 'https://video.a2e.ai/api/v1/user/exchangeDiamonds' \
--header'Content-Type: application/json' \
--data-raw'{"diamonds":1}'