Page cover

IMAGE

Base-Path:

https://api.hyprlab.io/v1

Image Path:

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

🖼️ GPT-IMAGE


Making Request:

curl https://api.hyprlab.io/v1/images/generations \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $HYPRLAB_API_KEY" \
  -d '{
    "model": "gpt-image-1",
    "prompt": "A cute cat.",
    "background": "auto",
    "moderation": "auto",
    "output_compression": 100,
    "output_format": "png",
    "quality": "high",
    "response_format": "url",
    "size": "1024x1024"
  }'

NOTE: We didn't adapt the /v1/images/edits endpoint of OpenAI because that endpoint uses file uploads, making it hard to integrate. Instead, we merged it with /v1/images/generations and made the image and mask inputs support both Image URLs and Base64 Images for seamless image input integration.


Model Name:
  • gpt-image-1

Discount:
  • 10% off

Text Input:
  • $4.5 / 1M Tokens

Image Input:
  • $9 / 1M Tokens

Image Output:
  • $36 / 1M Tokens

Model Name:

gpt-image-1-mini

Discount:
  • 10% off

Text Input:
  • $1.8 / 1M Tokens

Image Input:
  • $2.25 / 1M Tokens

Image Output:
  • $7.2 / 1M Tokens

Model Name
Quality
1024 x 1024
1024 x 1536
1536 x 1024

gpt-image-1

Low

$0.0099

$0.0144

$0.0144

Medium

$0.0378

$0.0567

$0.0567

High

$0.1503

$0.2250

$0.2250

gpt-image-1-mini

Low

$0.0045

$0.0054

$0.0054

Medium

$0.0099

$0.0135

$0.0135

High

$0.0324

$0.0468

$0.0468


🖼️ Dall·E


Making Request:

curl https://api.hyprlab.io/v1/images/generations \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $HYPRLAB_API_KEY" \
  -d '{
    "model": "dall-e-3",
    "prompt": "A cute baby sea otter",
    "n": 1,
    "quality": "hd",
    "response_format": "url",
    "style": "vivid",
    "size": "1024x1024"
  }'

Model Name
Discount
Quality
1024 x 1024
1024 x 1792
1792 x 1024

dall-e-3

30% off

Standard

$0.028

$0.056

$0.056

HD

$0.056

$0.084

$0.084

Model Name
Discount
Quality
256 x 256
512 x 512
1024 x 1024

dall-e-2

30% off

Standard

$0.0112

$0.0126

$0.014


Last updated