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": "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


🏞️ Imagen Models

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

Model Name:
  • imagen-3

Discount:
  • 50% off

Price:
  • $0.02 / Image

Model Name:
  • imagen-3-fast

Discount:
  • 50% off

Price:
  • $0.01 / Image

Last updated