flux/srpo/image-to-image
Model Overview
flux/dev/image-to-image model upgraded with Tencent’s SRPO technique.
flux/srpo/image-to-image
Format: JPEG, PNG Fixed size: Matches the dimensions of the reference image.
Setup your API Key
If you don’t have an API key for the AI/ML API yet, feel free to use our Quickstart guide.
API Schema
The text prompt describing the content, style, or composition of the image to be generated.
The number of images to generate.
1The same seed and the same prompt given to the same version of the model will output the same image every time.
The number of inference steps to perform.
40The CFG (Classifier Free Guidance) scale is a measure of how close you want the model to stick to your prompt when looking for a related image to show you.
4.5If set to true, the function will wait for the image to be generated and uploaded before returning the response. This will increase the latency of the function but it allows you to get the image directly in the response without going through the CDN.
falseIf set to True, the safety checker will be enabled.
trueThe format of the generated image.
jpegPossible values: The speed of the generation. The higher the speed, the faster the generation.
regularPossible values: The URL of the reference image.
Determines how much the prompt influences the generated image.
0.95Quick Example
Let's generate a new image using the one from the flux/dev Quick Example as a reference — and make a simple change to it with a prompt.


Last updated
Was this helpful?