Page cover

IMAGE

Base-Path:

https://api.hyprlab.io/v1

Image Path:

https://api.hyprlab.io/v1/images/generations

Making Request:

curl https://api.hyprlab.io/v1/images/generations \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $HYPRLAB_API_KEY" \
  -d '{
    "model": "qwen-image",
    "prompt": "A cute cat",
    "response_format": "url",
  }'
📌 QWEN IMAGE EDIT - Request Body Documentions

prompt (string, required)

  • Description: The main text prompt that influences the output generation.

  • Validation:

    • Must be a non-empty string.

image (string, required)

  • Description: This is used to guide the generation.

  • Validation:

    • Must be a string (URL, Data URI, or base64 string).

aspect_ratio (string, optional)

  • Description: Defines the aspect ratio of the generated output.

  • Validation:

    • Must be one of the following:

      • 1:1

      • 16:9

      • 9:16

      • 4:3

      • 3:4

response_format (string, optional)

  • Description: The format in which the response will be returned.

  • Validation:

    • Must be either:

      • "url" or

      • "b64_json".

output_format (string, optional)

  • Description: The file format for the output.

  • Validation:

    • Must be one of the following formats:

      • png, jpeg, webp.

📌 QWEN IMAGE - Request Body Documentions

prompt (string, required)

  • Description: The main text prompt that influences the output generation.

  • Validation:

    • Must be a non-empty string.

enhance_prompt (boolean, optional)

  • Description: Enhance the prompt with LLM.

  • Validation:

    • Must be a boolean (true or false).

aspect_ratio (string, optional)

  • Description: Defines the aspect ratio of the generated output.

  • Validation:

    • Must be one of the following:

      • 1:1

      • 16:9

      • 9:16

      • 4:3

      • 3:4

num_inference_steps (number, optional)

  • Description: Number of inference steps.

  • Validation:

    • Must be a number between 1 and 50.

guidance (number, optional)

  • Description: Guidance scale for generation.

  • Validation:

    • Must be a number between 0 and 10.

response_format (string, optional)

  • Description: The format in which the response will be returned.

  • Validation:

    • Must be either:

      • "url" or

      • "b64_json".

output_format (string, optional)

  • Description: The file format for the output.

  • Validation:

    • Must be one of the following formats:

      • png, jpeg, webp.


🖼️ Qwen Image Models


Model Name:
  • qwen-image-edit

Discount:
  • 30% off

Price:
  • $0.021 / Image

Model Name:
  • qwen-image

Discount:
  • 30% off

Price:
  • $0.0175 / Image

Last updated