POST
request.authorization
field. The body of the request must bemultipart/form-data
. The accept header should be set to one of the following:image/*
to receive the image in the format specified by the output_format
parameter.application/json
to receive the image encoded as base64 in a JSON response.prompt
, it also supports an aspect_ratio
parameter which can be used to control theprompt
- text to generate the image fromimage
- the image to use as the starting point for the generationstrength
- controls how much influence the image
parameter has on the output imagemode
- must be set to image-to-image
Note: maximum request size is 10MiB.
model
- the model to use (SD3 Medium, SD3 Large, or SD3 Large Turbo)output_format
- the the format of the output imageseed
- the randomness seed to use for the generationnegative_prompt
- keywords of what you do not wish to see in the output imageNote: for more details about these parameters please see the request schema below.
image/*
to get the image bytes directly. Otherwise specify application/json
to receive the image as base64 encoded JSON.prompt
parameterprompt
, image
, and strength
parametersImportant: This parameter is only valid for image-to-image requests.
image
parameter has on the generated image. A value of 0 would yield an image thatImportant: This parameter is only valid for image-to-image requests.
Important: This parameter is only valid for text-to-image requests.
sd3-medium
requires 3.5 credits per generationsd3-large
requires 6.5 credits per generationsd3-large-turbo
requires 4 credits per generation0
to use a random seed.)content-type
of the generated image.Important: This parameter does not work with sd3-large-turbo
.