Generating avatar images from text

Creating visual representations or digital avatars based on textual descriptions.

Use case example

  • - Avatar creation tools for profiles or gaming
  • - Transforming written characteristics into visual representations

Added by: APIForAI

Price per call≈ 0.07

Try it nowAPI information

Try it

Examples

Input

{
"input":{
"prompt":"close portrait of a dog, avata..."
"negative_prompt":"cartoon"
"width":512
"height":512
"prompt_strength":0.8
"num_outputs":1
"num_inference_steps":50
"guidance_scale":7.5
"scheduler":"DPMSolverMultistep"
"seed":328
}
"id":87
}

Output

Image
{
"status":"succeeded"
"output":[
0:"https://rbqktisnztholqojxlaf.s..."
]
"prediction_time":25.711588
}

API Information

Input description

prompt string

Input prompt (Needs to contain the mention 'avatarart style')

negative_prompt* string

Specify things to not see in the output

width integer

An enumeration.

Default value: 512

Enum values: 128, 256, 384, 448, 512, 576, 640, 704, 768, 832, 896, 960, 1024

height integer

An enumeration.

Default value: 512

Enum values: 128, 256, 384, 448, 512, 576, 640, 704, 768, 832, 896, 960, 1024

prompt_strength number

Prompt strength when using init image. 1.0 corresponds to full destruction of information in init image

Default value: 0.8

num_outputs integer

Number of images to output.

Default value: 1

num_inference_steps integer

Number of denoising steps

Default value: 50

guidance_scale number

Scale for classifier-free guidance

Default value: 7.5

scheduler string

An enumeration.

Default value: DPMSolverMultistep

Enum values: DDIM, K_EULER, DPMSolverMultistep, K_EULER_ANCESTRAL, PNDM, KLMS

seed integer

Random seed. Leave blank to randomize the seed

Output JSON Schema

This represents the JSON schema that details the structure of the model's output.

{
"type":"array"
"items":{
"type":"string"
"format":"uri"
}
"title":"Output"
}

APIForAI

Build fast by accessing AI models easily