API Documentation
Avatar
API documentation and implementation examples for the Avatar model.
Part of the Image To Image / Avatar collection
API Endpoint
/v1/image-to-image/avatar
Request Parameters
seedinteger
Optional seed value for reproducible generation
prompt(Required)string
Text prompt describing the desired image
face_image_url(Required)string
URL to a face image to be used in generation
enable_safety_checkerboolean
Optional flag to enable content safety checking
Code Examples
Response Example
Response Fields
seed(Required)integer
Seed value used for this generation
images(Required)array [object]
Array of generated images
Array items:
[item]object
urlstring
URL to access the generated image
widthinteger
Width of the image in pixels
heightinteger
Height of the image in pixels
file_datastring
Optional base64 encoded image data
file_namestring
Name of the generated image file
file_sizeinteger
Size of the image file in bytes
content_typestring
MIME type of the image
prompt(Required)string
The original prompt used for generation
timings(Required)object
Performance metrics for the generation process
inferencenumber
Time taken for inference in seconds
has_nsfw_concepts(Required)array [boolean]
Array of flags indicating NSFW content detection for each image