Agents
Generate an avatar image for an editable profile, group, Agent or plugin.
Generate an avatar image for an editable profile, group, Agent or plugin. The request enforces Agent roles, ownership, workspace boundaries, and lifecycle state.
POST
/
api
/
v1
/
avatars
/
generate
Generate an avatar image for an editable profile, group, Agent or plugin.
curl --request POST \
--url https://api.revoengine.com/api/v1/avatars/generate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({prompt: '<string>'})
};
fetch('https://api.revoengine.com/api/v1/avatars/generate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/avatars/generate"
payload = { "prompt": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"contentType": "image/png",
"imageBase64": "<string>"
}Authorizations
Bearer JWT token or API Key (sk-*).
Body
application/json
Description of the avatar to generate. Do not include credentials or other secrets.
Required string length:
1 - 1000⌘I
Generate an avatar image for an editable profile, group, Agent or plugin.
curl --request POST \
--url https://api.revoengine.com/api/v1/avatars/generate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({prompt: '<string>'})
};
fetch('https://api.revoengine.com/api/v1/avatars/generate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/avatars/generate"
payload = { "prompt": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"contentType": "image/png",
"imageBase64": "<string>"
}
