HyprLab Docs
  • GETTING STARTED
    • Introduction
    • Authentication
    • Making requests
  • BROWSE MODELS
    • Model List
      • OpenAI
        • AUDIO
        • CHAT
        • EMBEDDINGS
        • IMAGE
        • TEXT
        • MODERATION
      • Anthropic
      • Google
        • AUDIO
        • CHAT
          • OpenAI-Format
          • Google-Format
        • IMAGE
        • VIDEO
      • DeepSeek
      • x.AI
        • CHAT
        • IMAGE
      • Cohere
      • Meta AI
      • Qwen
      • Microsoft
      • Mistral AI
      • Perplexity AI
      • Cognitive Computations
      • Nvidia
      • Nous Research
      • MiniMax
      • Amazon
      • AI21-Labs
      • Reka AI
      • Black Forest Labs
      • Stability AI
        • Stable Diffusion 3.5
        • Stable Diffusion 3 - Ultra
        • Stable Diffusion 3 - Core
        • Stable Diffusion 3
        • Stable Diffusion XL 1.0
      • Recraft AI
      • Ideogram AI
      • Kling AI
      • Luma AI
      • Free-GPT
  • Playground
    • HyprLab Studio
    • HyprLab Chat
    • HyprLab - SillyTavern
  • INTEGRATION
    • Basic Setup
      • SillyTavern
      • Janitor AI
      • Risu AI
      • Agnai Chat
      • TypingMind
      • ChatWaifu - Steam
Powered by GitBook
On this page
  • 🖼️ OpenAI - Image Models
  • 🖼️ Azure - Image Models
  1. BROWSE MODELS
  2. Model List
  3. OpenAI

IMAGE

PreviousEMBEDDINGSNextTEXT

Last updated 1 month ago

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": "dall-e-3",
    "prompt": "A cute baby sea otter",
    "n": 1,
    "quality": "hd",
    "response_format": "url",
    "style": "vivid",
    "size": "1024x1024"
  }'
import OpenAI from "openai";

const openai = new OpenAI({
  apiKey: "<HYPRLAB_API_KEY>",
  baseURL: "https://api.hyprlab.io/v1",
});

async function main() {
  const image = await openai.images.generate({
    model: "dall-e-3",
    prompt: "A cute baby sea otter",
    n: 1,
    quality: "hd",
    response_format: "url",
    style: "vivid",
    size: "1024x1024",
  });

  console.log(image.data);
}
main();
from openai import OpenAI

client = OpenAI(
    api_key="<HYPRLAB_API_KEY>",
    base_url="https://api.hyprlab.io/v1",
)

client.images.generate(
  model="dall-e-3",
  prompt="A cute baby sea otter",
  n=1,
  quality="hd",
  response_format="url",
  style="vivid",
  size="1024x1024",
)

SEE MORE:


🖼️ OpenAI - Image Models


Model Name:
Discount:
Text Input:
Image Input:
Image Output:
Quality:
Resolution:
Generation Price:

gpt-image-1

10% off

$4.5 / 1M Tokens

$9 / 1M Tokens

$36 / 1M Tokens

Low

1024 x 1024

$0.0099 / image

$4.5 / 1M Tokens

$9 / 1M Tokens

$36 / 1M Tokens

Low

1024 x 1536

1536 x 1024

$0.0144 / image

$4.5 / 1M Tokens

$9 / 1M Tokens

$36 / 1M Tokens

Medium

1024 x 1024

$0.0378 / image

$4.5 / 1M Tokens

$9 / 1M Tokens

$36 / 1M Tokens

Medium

1024 x 1536

1536 x 1024

$0.0567 / image

$4.5 / 1M Tokens

$9 / 1M Tokens

$36 / 1M Tokens

High

1024 x 1024

$0.1503 / image

$4.5 / 1M Tokens

$9 / 1M Tokens

$36 / 1M Tokens

High

1024 x 1536

1536 x 1024

$0.2250 / image


Model Name:
Discount:
Quality:
Resolution:
Price:

DALL·E 3

30% off

Standard

1024×1024

$0.028 / image

30% off

Standard

1024×1792

1792×1024

$0.056 / image

DALL·E 3

30% off

HD

1024×1024

$0.056 / image

30% off

HD

1024×1792

1792×1024

$0.084 / image

DALL·E 2

30% off

Standard

1024×1024

$0.014 / image

30% off

Standard

512×512

$0.0126 / image

30% off

Standard

256×256

$0.0112 / image


🖼️ Azure - Image Models

Model Name:
Discount:
Quality:
Resolution:
Price:

azure/dall-e-3

80% off

Standard

1024×1024

$0.008 / image

80% off

Standard

1024×1792

1792×1024

$0.016 / image

azure/dall-e-3

80% off

HD

1024×1024

$0.016 / image

80% off

HD

1024×1792

1792×1024

$0.024 / image

https://platform.openai.com/docs/api-reference/images/create
Page cover image