Agents
Generate an Agent avatar
Generate a square avatar with GPT Image 2.5 Flare and save it to the Agent. No Assistant thread or message is created.
POST
/
api
/
v1
/
agents
/
{agentId}
/
generateAvatar
Generate an Agent avatar
curl --request POST \
--url https://api.revoengine.com/api/v1/agents/{agentId}/generateAvatar \
--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/agents/{agentId}/generateAvatar', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/agents/{agentId}/generateAvatar"
payload = { "prompt": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Authorizations
Bearer JWT token or API Key (sk-*).
Path Parameters
Body
application/json
Description of the avatar to generate. Do not include credentials or other secrets.
Required string length:
1 - 1000Response
Generated avatar saved to the Agent.
⌘I
Generate an Agent avatar
curl --request POST \
--url https://api.revoengine.com/api/v1/agents/{agentId}/generateAvatar \
--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/agents/{agentId}/generateAvatar', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/agents/{agentId}/generateAvatar"
payload = { "prompt": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
