Skip to main content

Model

Model is one of the main entities in Genera system. It represents a digital model of the person that can be used for try-on process.

type Model {
id: ID!
name: String!
height: Float
heightUnit: HeightUnit
weight: Float
weightUnit: WeightUnit
gender: Gender
skinTone: String
bodyType: BodyType
age: Int
createdDate: Date!
updatedDate: Date
images: [ModelImage]
}

Fields

Model.id ● ID! non-null scalar

Autogenerated unique uuid.

Model.name ● String! non-null scalar

Name is a string that represents the name of the model. E.g. 'John Doe', 'Jane Doe'.

Model.height ● Float scalar

Height is a float number that represents the height of the model.

Model.heightUnit ● HeightUnit enum

Height unit is an enum that represents the height unit of the model. E.g. 'CM', 'IN'.

Model.weight ● Float scalar

Weight is a float number that represents the weight of the model.

Model.weightUnit ● WeightUnit enum

Weight unit is an enum that represents the weight unit of the model. E.g. 'KG', 'LBS'.

Model.gender ● Gender enum

Gender value helps to create more detailed generation results.

Model.skinTone ● String scalar

Skin tone is a string that represents the skin tone of the model. It accepts HEX color. E.g. '#FFD700', '#FF6347'.

Model.bodyType ● BodyType enum

Body type is a field that defines body type mask for the generation.

Model.age ● Int scalar

Age field helps to generate try on with correct skin texture.

Model.createdDate ● Date! non-null scalar

Created date is a date when the model was created.

Model.updatedDate ● Date scalar

Date when last update was applied to the model.

Model.images ● [ModelImage] list object

Is a list of images attached to the model.

Returned By

createModel mutation ● model query ● updateModel mutation

Member Of

ModelImage object ● ModelPage object