Portrait3D

FREEMIUM
By avatarion
Updated 4 months ago
Media
-/10
Popularity Score
-
Latency
-
Success Rate

Portrait3D API Documentation

Portrait3D API is based on Avatarion’s Tethys 3D™ solution, and provides software developers with a technology to create animated facial models based on photos.

View API Details
Create Avatar
POSTCreate Avatar From POST File
GETCreate Avatar From URL
POSTCreate Avatar From POST File
Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
imageBINARY
REQUIREDSource image data. Supported image types are JPEG and PNG, 200x200 up to 4000x4000 pixels, 10 KB up to 5 MB size.
Code Snippet
unirest.post("https://avatarion-portrait3d.p.rapidapi.com/create/")
.header("X-RapidAPI-Host", "avatarion-portrait3d.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://avatarion-portrait3d.p.rapidapi.com/create/
Request Method: POST
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.post("https://avatarion-portrait3d.p.rapidapi.com/create/")
.header("X-RapidAPI-Host", "avatarion-portrait3d.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication