Flux Srpo

flux-srpo-text-to-image

post

FLUX.1 SRPO [dev] is a 12 billion parameter flow transformer that generates high-quality images from text with incredible aesthetics. It is suitable for personal and commercial use.

Header parameters
AuthorizationstringRequiredExample: sk-yOm1Vc3raDjQluBttyAwSdbVxtWFEAPCbtAZ2uF3yST1xNCY
Body
modelstringRequired

model is the model name

Example: flux-srpo-text-to-image
promptstringRequired

prompt is the prompt.

Example: A cute baby sea otter.
sizestring · enumOptional

The size of the generated image. Default value: landscape_4_3

Possible enum values: square_hd, square, portrait_4_3, portrait_16_9, landscape_4_3, landscape_16_9

Note: For custom image sizes, you can pass the width and height as an object:

"image_size": {
  "width": 1280,
  "height": 720
}
Default: landscape_4_3Example: landscape_4_3Possible values:
num_inference_stepsintegerOptional

The number of inference steps to perform. Default value: 28

Default: 28Example: 28
guidance_scalenumberOptional

The 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. Default value: 4.5

Default: 4.5Example: 4.5
accelerationstring · enumOptional

The speed of the generation. The higher the speed, the faster the generation. Default value: "none"

Possible enum values: none, regular, high

Default: noneExample: nonePossible values:
seedintegerOptional

The same seed and the same prompt given to the same version of the model will output the same image every time.

enable_safety_checkerbooleanOptional

If set to true, the safety checker will be enabled. Default value: false

Default: false
nintegerOptional

n is the number of images to generate, default value is 1.

Default: 1Example: 1
output_formatstring · enumOptional

output_format indicate the output format, default value is url.

Default: urlExample: urlPossible values:
Responses
200Success
application/json
post
/v1/images/generations
POST /v1/images/generations HTTP/1.1
Host: image.onerouter.pro
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 228

{
  "model": "flux-srpo-text-to-image",
  "prompt": "A cute baby sea otter.",
  "size": "landscape_4_3",
  "num_inference_steps": 28,
  "guidance_scale": 4.5,
  "acceleration": "none",
  "seed": 83,
  "enable_safety_checker": false,
  "n": 1,
  "output_format": "url"
}
200Success
{
  "data": [
    {
      "url": "https://resource.onerouter.pro/image/generated%2Fonerouter_5132fa92-f1ed-4fe7-a6e7-093f115f50bf.png",
      "b64_json": "",
      "revised_prompt": ""
    }
  ],
  "created": 1760772438
}

Last updated