Influencers
Choose a look
On this page
/v1/influencers/{influencer}/lookNeedsGenerateMCP toolchoose_look
Make one of the influencer's finished images their look. It costs nothing.
Authorization
AuthorizationstringrequiredBearerthen the key, with thegeneratescope. A Layo API key, from layo.co/api-keys.
Path parameters
influencerstring<uuid>requiredThe influencer's id.
Body
assetIdstring<uuid>requiredTheidof an image in a finished look'soutputs.
Response
application/jsonOK
idstring<uuid>requirednamestringrequireddescriptionstringrequiredcreatedAtstring | nullrequiredupdatedAtstringrequiredunfinishedSetupbooleanrequiredpageUrlstring<uri>requiredLayo's page for it, where the person can see it once signed in. It keeps working: give people this link, never a file'surl.avatarMedia | nullrequiredTheir look, as an image.Show child attributesHide child attributes
idstring<uuid>requiredmimeTypeenum<string>requiredAvailable options:
image/jpegimage/pngimage/webpvideo/mp4audio/wavbyteSizeintegerrequiredRange:
x > 0widthintegerRange:
x > 0heightintegerRange:
x > 0durationMsinteger | nullrequiredA video's or audio file's length in milliseconds. Null for an image, and for a video made before Layo kept video lengths.Range:
x > 0urlstring<uri>requiredA signed link for showing or playing the file. It stops working afterexpiresInseconds; ask again for a fresh one. To give a person a link, give thempageUrl.expiresInintegerSeconds the link lasts.Range:
x > 0downloadUrlstring<uri> | nullrequiredA link that saves the file as layo-<id>.<ext> instead of showing it. It lasts five minutes: ask again for a fresh one. Null where a download isn't offered.previewUrlstring<uri> | nullrequiredAn image's small WebP copy (720 px on its short side), for showing it: much quicker thanurl. Null for a video, or until the copy is made. It lasts at least half an hour.
voiceVoice | nullrequiredThe voice in use, if they have one.Show child attributesHide child attributes
idstring<uuid>requiredpresetIdstring | nullrequireddurationMsinteger | nullrequiredRange:
x > 0stateenum<string>requiredAvailable options:
makingreadyfailedsourceenum<string>requiredAvailable options:
clonedpresetdesigned