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
  • ENDPOINT
    • User Info
    • User Usage
    • Free File Host
Powered by GitBook
On this page
  • Image Upload Examples
  • Video Upload Examples
  1. ENDPOINT

Free File Host

A Free File Host via API

NOTE: All files are uploaded to secure S3 storage and will be deleted after 24 hours.

API Endpoint:

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

Image Upload Examples

curl -X POST https://api.hyprlab.io/v1/uploads \
  -H "Authorization: Bearer $HYPRLAB_API_KEY" \
  -F "file=@/path/to/your/image.jpg" \
  -F "output_format=webp"
curl -X POST https://api.hyprlab.io/v1/uploads \
  -H "Authorization: Bearer $HYPRLAB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "https://example/image.webp",
    "output_format": "png"
  }'
curl -X POST https://api.hyprlab.io/v1/uploads \
  -H "Authorization: Bearer $HYPRLAB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA...",
    "output_format": "png"
  }'
curl -X POST https://api.hyprlab.io/v1/uploads \
  -H "Authorization: Bearer $HYPRLAB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "iVBORw0KGgoAAAANSUhEUgAAAAUA.....",
    "output_format": "jpg"
  }'

Sample Response:

{
  "imageUrl": "https://example.com/image.png"
}

Video Upload Examples

curl -X POST https://api.hyprlab.io/v1/uploads \
  -H "Authorization: Bearer $HYPRLAB_API_KEY" \
  -F "file=@/path/to/your/video.mp4"
curl -X POST https://api.hyprlab.io/v1/uploads \
  -H "Authorization: Bearer $HYPRLAB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "video": "http://example.com/video.mp4"
  }'
curl -X POST https://api.hyprlab.io/v1/uploads \
  -H "Authorization: Bearer $HYPRLAB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "video": "data:video/mp4;base64,AAAAHGZ0eXBNNFYgAAAC..."
  }'
curl -X POST https://api.hyprlab.io/v1/uploads \
  -H "Authorization: Bearer $HYPRLAB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "video": "AAAAHGZ0eXBNNFYgAAAC...."
  }'

Sample Response:

{
  "videoUrl": "https://example.com/video.mp4"
}
PreviousUser Usage

Last updated 15 days ago