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
  1. BROWSE MODELS
  2. Model List
  3. OpenAI

TEXT

PreviousIMAGENextMODERATION

Last updated 6 months ago

Base-Path:

https://api.hyprlab.io/v1

Text Completions Path:

https://api.hyprlab.io/v1/completions

Making Request

curl https://api.hyprlab.io/v1/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $HYPRLAB_API_KEY" \
  -d '{
    "model": "gpt-3.5-turbo-instruct",
    "prompt": "Say this is a test",
    "max_tokens": 7,
    "temperature": 0
  }'
import OpenAI from "openai";

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

async function main() {
  const completion = await openai.completions.create({
    model: "gpt-3.5-turbo-instruct",
    prompt: "Say this is a test.",
    max_tokens: 7,
    temperature: 0,
  });

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

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

client.completions.create(
  model="gpt-3.5-turbo-instruct",
  prompt="Say this is a test",
  max_tokens=7,
  temperature=0
)

SEE MORE:


📝Text Models



Model Name:
Discount:
Output:
Input:
Context:
Moderation:
Model Name:
Discount:
Output:
Input:
Context:
Moderation:
Model Name:
Discount:
Output:
Input:
Context:
Moderation:
  • gpt-3.5-turbo-instruct

  • gpt-3.5-turbo-instruct-0914

  • 30% off

  • $1.05 / 1M Tokens

  • $1.4 / 1M Tokens

  • 4,096

  • Unfiltered

  • babbage-002

  • 30% off

  • $0.28 / 1M Tokens

  • $0.28 / 1M Tokens

  • 16,384

  • Unfiltered

  • davinci-002

  • 30% off

  • $1.4 / 1M Tokens

  • $1.4 / 1M Tokens

  • 16,384

  • Unfiltered

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