0x7o / if-v1.0-img2img
Run 0x7o/if-v1.0-img2img 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 |
---|---|---|---|
original_image |
string
|
Inital image to generate variations of.
|
|
prompt |
string
|
A painting of a cat
|
Input prompt
|
negative_prompt |
string
|
|
None
|
style_prompt |
string
|
|
None
|
num_outputs |
integer
|
1
Min: 1 Max: 5 |
Number of images to output.
|
seed |
integer
|
0
Max: 4294967295 |
Random seed. Leave 0 to randomize the seed
|
guidance_scale |
number
|
10
Max: 15 |
Guidance scale
|
{
"type": "object",
"title": "Input",
"required": [
"original_image"
],
"properties": {
"seed": {
"type": "integer",
"title": "Seed",
"default": 0,
"maximum": 4294967295,
"minimum": 0,
"x-order": 5,
"description": "Random seed. Leave 0 to randomize the seed"
},
"prompt": {
"type": "string",
"title": "Prompt",
"default": "A painting of a cat",
"x-order": 1,
"description": "Input prompt"
},
"num_outputs": {
"type": "integer",
"title": "Num Outputs",
"default": 1,
"maximum": 5,
"minimum": 1,
"x-order": 4,
"description": "Number of images to output."
},
"style_prompt": {
"type": "string",
"title": "Style Prompt",
"default": "",
"x-order": 3
},
"guidance_scale": {
"type": "number",
"title": "Guidance Scale",
"default": 10,
"maximum": 15,
"minimum": 0,
"x-order": 6,
"description": "Guidance scale"
},
"original_image": {
"type": "string",
"title": "Original Image",
"format": "uri",
"x-order": 0,
"description": "Inital image to generate variations of."
},
"negative_prompt": {
"type": "string",
"title": "Negative Prompt",
"default": "",
"x-order": 2
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"title": "Output"
}