Page cover

IMAGE

Base-Path:

https://api.hyprlab.io/v1

Image Path:

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

Imagen Models


Making Request:

curl https://api.hyprlab.io/v1/images/generations \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $HYPRLAB_API_KEY" \
  -d '{
    "model": "imagen-4",
    "prompt": "cat",
    "aspect_ratio": "16:9",
    "response_format": "url",
    "output_format": "png"
  }'
👉🏻 Request Body Documentation

prompt (string, required)

  • Description: Main text input to guide the generation process.

  • Validation Rules:

    • Must be a non-empty string.

    • Must not exceed 10,000 characters.

aspect_ratio (string, optional)

  • Description: Defines the aspect ratio of the output.

  • Validation Rules:

    • Must be one of the following valid aspect ratios:

      • 1:1

      • 3:4

      • 4:3

      • 9:16

      • 16:9

response_format (string, optional)

  • Description: Defines how the response data is formatted.

  • Validation Rules:

    • Must be either url or b64_json.

output_format (string, optional)

  • Description: Specifies the format of the output image.

  • Validation Rules:

    • Must be one of the following formats:

      • png

      • jpeg

      • webp


Pricing Details

Model Name:
  • imagen-4-ultra

Discount:
  • 50% off

Price:
  • $0.03 / Image

Model Name:
  • imagen-4

Discount:
  • 50% off

Price:
  • $0.02 / Image

Model Name:
  • imagen-4-fast

Discount:
  • 50% off

Price:
  • $0.01 / Image


Nano Banana


Making Request:

curl https://api.hyprlab.io/v1/images/generations \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $HYPRLAB_API_KEY" \
  -d '{
    "model": "nano-banana",
    "prompt": "cat",
    "response_format": "url",
    "output_format": "png"
  }'
👉🏻 Request Body Documentation

prompt (string, required)

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

  • Validation:

    • Must be a non-empty string.

image_input (string / array, optional)

  • Description: This is used to guide the generation.

  • Validation:

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

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.


Pricing Details

Model Name:
  • nano-banana

Discount:
  • 50% off

Price:
  • $0.02 / Image

Last updated