Page cover

SEEDREAM 4

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": "seedream-4",
    "prompt": "A cute cat",
    "image_input": [
      "https://example.com/image1.png",
      "https://example.com/image2.png",
      "https://example.com/image3.png",
      "https://example.com/image4.png"
    ],
    "aspect_ratio": "1:1",
    "size": "1K",
    "response_format": "url",
    "output_format": "png"
  }'
chevron-right 📌 Request Body Documentationhashtag

prompt (string, required)

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

  • Validation:

    • Must be a non-empty string.

    • Must not exceed 10,000 characters.

image_input (string / object, optional)

  • Description: This is used to guide the generation.

  • Validation:

    • Must be a string / object of (URL, Data URI, or base64 string) up-to 10 images.

aspect_ratio (string, optional)

  • Description: Defines the aspect ratio of the output.

  • Validation:

    • Must be one of the following valid aspect ratios:

      • 1:1

      • 3:4

      • 4:3

      • 9:16

      • 16:9

      • 2:3

      • 3:2

      • 21:9

      • match_input_image

size(string, optional)

  • Description: Image resolution.

  • Validation:

    • Must be one of the following valid size:

      • 1K

      • 2K

      • 4K

response_format (string, optional)

  • Description: Defines how the response data is formatted.

  • Validation:

    • Must be either url or b64_json.

output_format (string, optional)

  • Description: Specifies the format of the output image.

  • Validation:

    • Must be one of the following formats:

      • png

      • jpeg

      • webp


Pricing Details

Model Name:
  • seedream-4

Discount:
  • 30% off

Price:
  • $0.021 / Image

Last updated