GET
/v1/schemas/stability/image/v2beta/stable-image/control/style-transfer
Accept:
| field | recorded source |
|---|---|
| schema | Source linked above. upstream-spec Source trace1ea5455da5ce2efef103daa142cc44a3e70b4fb3cfcdfa0c9a6a6f46d93912ea{
"fetchedAt": 1789536057,
"extractorVersion": "1",
"verifiedAt": null
} |
Request body
9 properties · 2 required · 2 $defs| property | type | description | constraints |
|---|---|---|---|
| init_image* | string | An image containing the subject you wish to restyle. | format: binary |
| style_image* | string | An image containing the new style. | format: binary |
| prompt | string | What you wish to see in the output image. A strong, descriptive prompt that clearly defines elements, colors, and subjects will lead to better results. | length ≥ 0 · length ≤ 10000 |
| negative_prompt | string | A blurb of text describing what you **do not** wish to see in the output image. This is an advanced feature. | length ≤ 10000 |
| seed | number | A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.) | 0 ≤ n ≤ 4294967294 · default: 0 |
| style_strength | number | Sometimes referred to as _denoising_, this parameter controls how much influence the `style_image` parameter has on the generated image. A value of 0 would yield an image that is identical to the input. A value of 1 would be as if you passed in no image at all… | 0 ≤ n ≤ 1 · default: 1 |
| composition_fidelity | number | How closely the output image's style resembles the input image's style. | 0 ≤ n ≤ 1 · default: 0.9 |
| change_strength | number | How much the original image should change | 0.1 ≤ n ≤ 1 · default: 0.9 |
| output_format | enum | Dictates the `content-type` of the generated image. | png | jpeg | webp · default: "png" |
Types
2 $defsNegativePromptstring
A blurb of text describing what you **do not** wish to see in the output image. This is an advanced feature.
length ≤ 10000
Seednumber
A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)
0 ≤ n ≤ 4294967294 · default: 0
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"stability","endpointId":"v2beta/stable-image/control/style-transfer","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}