Skip to main content
POST
/
images
/
generations
curl --request POST \ --url https://platform.qubrid.com/v1/images/generations \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "model": "qwen-image", "prompt": "A futuristic city skyline at sunset" } '
{
  "created": 1710000000,
  "data": [
    {
      "url": "https://cdn.qubrid.com/generated/image.webp"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
model
string
required

The image generation model to use.

Example:

"qwen-image"

prompt
string
required

The text prompt describing the image to generate.

Example:

"A futuristic city skyline at sunset"

enhance_prompt
boolean
default:false

Whether to automatically enhance the prompt before generation.

go_fast
boolean
default:true

Whether to prioritize faster generation.

guidance
number
default:3

Guidance scale controlling prompt adherence.

negative_prompt
string
default:""

Elements you want to avoid in the generated image.

num_inference_steps
integer
default:30

Number of denoising steps used during generation.

seed
integer | null

Optional random seed for reproducible results.

disable_safety_checker
boolean
default:false

Disable the safety checker for generation.

image
string | null

Optional input image for image-to-image generation or editing.

strength
number
default:0

Strength of transformation when using an input image.

lora_weights
string | null

Optional LoRA weights identifier.

lora_scale
number
default:1

Scale factor for the primary LoRA weights.

extra_lora_weights
string[]

Additional LoRA weights to apply.

extra_lora_scale
number[]

Scale values for additional LoRA weights.

aspect_ratio
string

Aspect ratio for the generated image.

Example:

"16:9"

image_size
string

Controls image resolution or optimization mode.

Example:

"optimize_for_quality"

output_format
string

Desired output image format.

Example:

"webp"

output_quality
integer
default:80

Compression quality for the output image.

Response

Image generated successfully

created
integer

Unix timestamp when the image was generated.

Example:

1710000000

data
object[]