You're looking at a specific version of this model. Jump to the model overview.

cjwbw /unidiffuser:3f3d7dc7

Input schema

The fields you can use to run this model with an API. If you don’t give a value for a field its default value will be used.

Field Type Default value Description
mode
string (enum)
text-to-image generation

Options:

text-to-image generation, image-to-text generation, joint generation, text generation, image generation, text variation, image variation

Choose between Visual Question Answering and Image Captioning
prompt
string
Input prompt
image
string
Input image
num_inference_steps
integer
50

Min: 1

Max: 500

Number of denoising steps
guidance_scale
number
8

Min: 1

Max: 20

Scale for classifier-free guidance
seed
integer
Random seed. Leave blank to randomize the seed

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{'properties': {'generated_image': {'format': 'uri',
                                    'title': 'Generated Image',
                                    'type': 'string'},
                'generated_text': {'title': 'Generated Text',
                                   'type': 'string'}},
 'title': 'ModelOutput',
 'type': 'object'}