fofr
/
mama
- Public
- 78 runs
Run fofr/mama with an API
Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.
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 |
---|---|---|---|
prompt |
string
|
|
None
|
negative_prompt |
string
|
|
Things you do not want to see in your image
|
number_of_images |
integer
|
1
Min: 1 Max: 10 |
Number of images to generate
|
width |
integer
|
1024
|
None
|
height |
integer
|
1024
|
None
|
lora_strength |
number
|
1
Max: 3 |
Strength of the lora to use for the generation. Default is 1.0.
|
output_format |
string
(enum)
|
webp
Options: webp, jpg, png |
Format of the output images
|
output_quality |
integer
|
80
Max: 100 |
Quality of the output images, from 0 to 100. 100 is best quality, 0 is lowest quality.
|
seed |
integer
|
Set a seed for reproducibility. Random by default.
|
|
disable_safety_checker |
boolean
|
False
|
Disable safety checker for generated images.
|
sampler |
string
(enum)
|
Default
Options: Default, euler, euler_ancestral, heun, heunpp2, dpm_2, dpm_2_ancestral, lms, dpm_fast, dpm_adaptive, dpmpp_2s_ancestral, dpmpp_sde, dpmpp_sde_gpu, dpmpp_2m, dpmpp_2m_sde, dpmpp_2m_sde_gpu, dpmpp_3m_sde, dpmpp_3m_sde_gpu, ddpm, lcm, ddim, uni_pc, uni_pc_bh2 |
Advanced. Change the sampler used for generation. Default is what we think gives the best images.
|
scheduler |
string
(enum)
|
Default
Options: Default, normal, karras, exponential, sgm_uniform, simple, ddim_uniform |
Advanced. Change the scheduler used for generation. Default is what we think gives the best images.
|
steps |
integer
|
Min: 1 Max: 50 |
Advanced. Leave empty to use recommended steps. Set it only if you want to customise the number of steps to run the sampler for.
|
cfg |
number
|
Max: 20 |
Advanced. Leave empty to use recommended CFG (classifier free guidance). This changes how much the prompt influences the output. Set it only if you want to customise.
|
{
"type": "object",
"title": "Input",
"properties": {
"cfg": {
"type": "number",
"title": "Cfg",
"maximum": 20,
"minimum": 0,
"x-order": 13,
"description": "Advanced. Leave empty to use recommended CFG (classifier free guidance). This changes how much the prompt influences the output. Set it only if you want to customise."
},
"seed": {
"type": "integer",
"title": "Seed",
"x-order": 8,
"description": "Set a seed for reproducibility. Random by default."
},
"steps": {
"type": "integer",
"title": "Steps",
"maximum": 50,
"minimum": 1,
"x-order": 12,
"description": "Advanced. Leave empty to use recommended steps. Set it only if you want to customise the number of steps to run the sampler for."
},
"width": {
"type": "integer",
"title": "Width",
"default": 1024,
"x-order": 3
},
"height": {
"type": "integer",
"title": "Height",
"default": 1024,
"x-order": 4
},
"prompt": {
"type": "string",
"title": "Prompt",
"default": "",
"x-order": 0
},
"sampler": {
"enum": [
"Default",
"euler",
"euler_ancestral",
"heun",
"heunpp2",
"dpm_2",
"dpm_2_ancestral",
"lms",
"dpm_fast",
"dpm_adaptive",
"dpmpp_2s_ancestral",
"dpmpp_sde",
"dpmpp_sde_gpu",
"dpmpp_2m",
"dpmpp_2m_sde",
"dpmpp_2m_sde_gpu",
"dpmpp_3m_sde",
"dpmpp_3m_sde_gpu",
"ddpm",
"lcm",
"ddim",
"uni_pc",
"uni_pc_bh2"
],
"type": "string",
"title": "sampler",
"description": "Advanced. Change the sampler used for generation. Default is what we think gives the best images.",
"default": "Default",
"x-order": 10
},
"scheduler": {
"enum": [
"Default",
"normal",
"karras",
"exponential",
"sgm_uniform",
"simple",
"ddim_uniform"
],
"type": "string",
"title": "scheduler",
"description": "Advanced. Change the scheduler used for generation. Default is what we think gives the best images.",
"default": "Default",
"x-order": 11
},
"lora_strength": {
"type": "number",
"title": "Lora Strength",
"default": 1,
"maximum": 3,
"minimum": 0,
"x-order": 5,
"description": "Strength of the lora to use for the generation. Default is 1.0."
},
"output_format": {
"enum": [
"webp",
"jpg",
"png"
],
"type": "string",
"title": "output_format",
"description": "Format of the output images",
"default": "webp",
"x-order": 6
},
"output_quality": {
"type": "integer",
"title": "Output Quality",
"default": 80,
"maximum": 100,
"minimum": 0,
"x-order": 7,
"description": "Quality of the output images, from 0 to 100. 100 is best quality, 0 is lowest quality."
},
"negative_prompt": {
"type": "string",
"title": "Negative Prompt",
"default": "",
"x-order": 1,
"description": "Things you do not want to see in your image"
},
"number_of_images": {
"type": "integer",
"title": "Number Of Images",
"default": 1,
"maximum": 10,
"minimum": 1,
"x-order": 2,
"description": "Number of images to generate"
},
"disable_safety_checker": {
"type": "boolean",
"title": "Disable Safety Checker",
"default": false,
"x-order": 9,
"description": "Disable safety checker for generated images."
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
{
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"title": "Output"
}