Page cover

STABLE 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": "stable-image-ultra",
    "prompt": "A cute cat",
    "negative_prompt": "..to not include specific elements."
    "aspect_ratio": "1:1",
    "style_preset": "pixel-art",
    "response_format": "url",
    "output_format": "webp"
  }'
chevron-right📌 Request Body Documentationhashtag

prompt (string, required)

  • Description: What you wish to see in the output image. A strong, descriptive prompt that clearly defines elements, colors, and subjects will lead to better results.

  • Addtional Info: To control the weight of a given word use the format (word:weight), where word is the word you'd like to control the weight of and weight is a value between 0 and 1. For example: The sky was a crisp (blue:0.3) and (green:0.8) would convey a sky that was blue and green, but more green than blue.

  • Validation:

    • Must be a non-empty string.

    • Must not exceed 10,000 characters.

aspect_ratio (string, optional)

  • Description: Specifies the aspect ratio of the output.

  • Validation:

    • Must be one of the following supported aspect ratios:

      • 16:9

      • 1:1

      • 21:9

      • 2:3

      • 3:2

      • 4:5

      • 5:4

      • 9:16

      • 9:21

seed (integer, optional)

  • Description: A seed value used for deterministic image generation, influencing the outcome consistently across runs.

  • Validation:

    • Must be an integer between 0 and 4,294,967,294.

negative_prompt (string, optional)

  • Description: An optional input prompt used to guide the model on what to avoid during processing.

  • Validation:

    • Must be a string.

    • Must not exceed 10,000 characters.

style_preset (string, optional)

  • Description: A preset style that will influence the output's artistic direction.

  • Validation:

    • Must be one of the following styles:

      • 3d-model

      • analog-film

      • anime

      • cinematic

      • comic-book

      • digital-art

      • enhance

      • fantasy-art

      • isometric

      • line-art

      • low-poly

      • modeling-compound

      • neon-punk

      • origami

      • photographic

      • pixel-art

      • tile-texture

response_format (string, optional)

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

  • Validation:

    • Must be either "url" or "b64_json".

output_format (string, optional)

  • Description: The format for image generation.

  • Validation:

    • Allowed values are: "png", "jpeg", or "webp".


Pricing Details

Model Name:
  • stable-image-ultra

Discount:
  • 80% off

Price:
  • $0.016 / Image

Model Name:
  • stable-image-core

Discount:
  • 80% off

Price:
  • $0.006 / Image

Last updated