Google - Format

Base-Path:

https://api.hyprlab.io

Non-Stream Path:

https://api.hyprlab.io/v1beta/models/[MODEL]:generateContent?key=[API-KEY]

Stream Path:

https://api.hyprlab.io/v1beta/models/[MODEL]:streamGenerateContent?alt=sse&key=[API-KEY]

Sample API Request

chevron-rightBasic Request:hashtag
curl -X POST "https://api.hyprlab.io/v1beta/models/gemini-3.1-pro:generateContent?key=API_HERE" \
-H "Content-Type: application/json" \
-d '{
  "system_instruction": {
    "parts": {
      "text": "You are a helpful assistant."
    }
  },
  "contents": [
    {
      "role": "user",
      "parts": [{
        "text": "Hello"
      }]
    },
    {
      "role": "model",
      "parts": [{
        "text": "Great to meet you. What would you like to know?"
      }]
    },
    {
      "role": "user",
      "parts": [{
        "text": "I have two dogs in my house. How many paws are in my house?"
      }]
    }
  ],
  "generationConfig": {
    "temperature": 0.7,
    "topP": 0.95,
    "topK": 0,
    "max_output_tokens": 8192,
    "response_mime_type": "text/plain"
  },
  "safetySettings": [
    {
      "category": "HARM_CATEGORY_HARASSMENT",
      "threshold": "BLOCK_NONE"
    },
    {
      "category": "HARM_CATEGORY_HATE_SPEECH",
      "threshold": "BLOCK_NONE"
    },
    {
      "category": "HARM_CATEGORY_SEXUALLY_EXPLICIT",
      "threshold": "BLOCK_NONE"
    },
    {
      "category": "HARM_CATEGORY_DANGEROUS_CONTENT",
      "threshold": "BLOCK_NONE"
    },
    {
      "category": "HARM_CATEGORY_CIVIC_INTEGRITY",
      "threshold": "BLOCK_NONE"
    }
  ]
}'
chevron-rightImage Input:hashtag
curl -X POST "https://api.hyprlab.io/v1beta/models/gemini-3.1-pro:generateContent?key=API_HERE" \
-H "Content-Type: application/json" \
-d '{
  "system_instruction": {
    "parts": {
      "text": "You are a helpful assistant."
    }
  },
  "contents": {
    "parts": [
      {
        "inline_data": {
          "mime_type": "image/jpeg",
          "data": "'$(base64 /path/to/image.jpg)'"
        }
      },
      {
        "text": "What do you see in this image?"
      }
    ]
  },
  "generationConfig": {
    "temperature": 0.7,
    "topP": 0.9,
    "topK": 40,
    "max_output_tokens": 8192,
    "response_mime_type": "text/plain"
  },
  "safetySettings": [
    {
      "category": "HARM_CATEGORY_HARASSMENT",
      "threshold": "BLOCK_NONE"
    },
    {
      "category": "HARM_CATEGORY_HATE_SPEECH",
      "threshold": "BLOCK_NONE"
    },
    {
      "category": "HARM_CATEGORY_SEXUALLY_EXPLICIT",
      "threshold": "BLOCK_NONE"
    },
    {
      "category": "HARM_CATEGORY_DANGEROUS_CONTENT",
      "threshold": "BLOCK_NONE"
    },
    {
      "category": "HARM_CATEGORY_CIVIC_INTEGRITY",
      "threshold": "BLOCK_NONE"
    }
  ]
}'
chevron-rightAudio Input:hashtag
curl -X POST "https://api.hyprlab.io/v1beta/models/gemini-3.1-pro:generateContent?key=API_HERE" \
-H "Content-Type: application/json" \
-d '{
  "system_instruction": {
    "parts": {
      "text": "You are a helpful assistant."
    }
  },
  "contents": {
    "parts": [
      {
        "inline_data": {
          "mime_type": "audio/mpeg",
          "data": "'$(base64 /path/to/audio.mp3)'"
        }
      },
      {
        "text": "What is being said in this audio?"
      }
    ]
  },
  "generationConfig": {
    "temperature": 0.7,
    "topP": 0.95,
    "topK": 0,
    "max_output_tokens": 8192,
    "response_mime_type": "text/plain"
  },
  "safetySettings": [
    {
      "category": "HARM_CATEGORY_HARASSMENT",
      "threshold": "BLOCK_NONE"
    },
    {
      "category": "HARM_CATEGORY_HATE_SPEECH",
      "threshold": "BLOCK_NONE"
    },
    {
      "category": "HARM_CATEGORY_SEXUALLY_EXPLICIT",
      "threshold": "BLOCK_NONE"
    },
    {
      "category": "HARM_CATEGORY_DANGEROUS_CONTENT",
      "threshold": "BLOCK_NONE"
    },
    {
      "category": "HARM_CATEGORY_CIVIC_INTEGRITY",
      "threshold": "BLOCK_NONE"
    }
  ]
}'
chevron-rightVideo Input:hashtag
chevron-rightFile input:hashtag
chevron-rightStructured Output:hashtag
chevron-rightFunction Calling:hashtag
chevron-rightCode Execution:hashtag
chevron-rightGrounding: (Google Search Retrieval)hashtag
chevron-rightThinking Mode:hashtag
chevron-rightUrl Context: (Website Content Retrieval)hashtag
chevron-rightImage Generation:hashtag

✨ Gemini

Model Name:

  • gemini-3.1-pro

Discount:

  • 60% off

Prompts upto 200K:

  • Input: $0.8 / 1M Tokens

  • Output: $4.8 / 1M Tokens

Prompts longer than 200K:

  • Input: $1.6 / 1M Tokens

  • Output: $7.2 / 1M Tokens

Context Length:

  • 1,048,576

Moderation:

  • Unfiltered

Capabilities:

  • Image Input

  • Audio Input

  • Video Input

  • File Input

  • Structured Output

  • Function Calling

  • Code Execution

  • Grounding

  • Thinking

  • URL Context

Model Name:

  • gemini-3.1-flash-lite

Discount:

  • 60% off

Input:

  • $0.1 / 1M Tokens

Output:

  • $0.6 / 1M Tokens

Context Length:

  • 1,048,576

Moderation:

  • Unfiltered

Capabilities:

  • Image Input

  • Audio Input

  • Video Input

  • File Input

  • Structured Output

  • Function Calling

  • Code Execution

  • Grounding

  • Thinking

  • URL Context

Model Name:

  • gemini-3.1-flash-image

Discount:

  • 50% off

Text Input:

  • $0.25 / 1M Tokens

Text Output:

  • $1.5 / 1M Tokens

Image Input:

  • $0.25 / 1M Tokens

Image Output:

  • $30 / 1M Tokens

Context Length:

  • 65,536

Moderation:

  • Unfiltered

Capabilities:

  • Image Generation

  • Google Search

  • Image Search

  • Image Input

  • Structured Output

Model Name:

  • gemini-3-pro-image

Discount:

  • 50% off

Text Input:

  • $1 / 1M Tokens

Text Output:

  • $6 / 1M Tokens

Image Input:

  • $1 / 1M Tokens

Image Output:

  • $60 / 1M Tokens

Context Length:

  • 131,072

Moderation:

  • Unfiltered

Capabilities:

  • Image Generation

  • Grounding

  • Image Input

  • Structured Output

Model Name:

  • gemini-3-flash

Discount:

  • 60% off

Input:

  • $0.2 / 1M Tokens

Output:

  • $1.2 / 1M Tokens

Context Length:

  • 1,048,576

Moderation:

  • Unfiltered

Capabilities:

  • Image Input

  • Audio Input

  • Video Input

  • File Input

  • Structured Output

  • Function Calling

  • Code Execution

  • Grounding

  • Thinking

  • URL Context

Model Name:

  • gemini-2.5-flash-image

Discount:

  • 50% off

Text Input:

  • $0.15 / 1M Tokens

Text Output:

  • $1.25 / 1M Tokens

Image Input:

  • $0.15 / 1M Tokens

Image Output:

  • $15 / 1M Tokens

Context Length:

  • 65,536

Moderation:

  • Unfiltered

Capabilities:

  • Image Generation

  • Image Input

  • Structured Output

Model Name:

  • gemini-2.5-pro

Discount:

  • 60% off

Prompts upto 200K:

  • Input: $0.5 / 1M Tokens

  • Output: $4 / 1M Tokens

Prompts longer than 200K:

  • Input: $1 / 1M Tokens

  • Output: $6 / 1M Tokens

Context Length:

  • 1,048,576

Moderation:

  • Unfiltered

Capabilities:

  • Image Input

  • Audio Input

  • Video Input

  • File Input

  • Structured Output

  • Function Calling

  • Code Execution

  • Grounding

  • Thinking

  • URL Context

Model Name:

  • gemini-2.5-flash

Discount:

  • 60% off

Input:

  • $0.12 / 1M Tokens

Output:

  • $1 / 1M Tokens

Context Length:

  • 1,048,576

Moderation:

  • Unfiltered

Capabilities:

  • Image Input

  • Audio Input

  • Video Input

  • File Input

  • Structured Output

  • Function Calling

  • Code Execution

  • Grounding

  • Thinking

  • URL Context

Model Name:

  • gemini-2.5-flash-lite

Discount:

  • 60% off

Input:

  • $0.04 / 1M Tokens

Output:

  • $0.16 / 1M Tokens

Context Length:

  • 1,048,576

Moderation:

  • Unfiltered

Capabilities:

  • Image Input

  • Audio Input

  • Video Input

  • File Input

  • Structured Output

  • Function Calling

  • Code Execution

  • Grounding

  • Thinking

  • URL Context

Model Name:

  • gemini-2.0-flash

Discount:

  • 60% off

Input:

  • $0.04 / 1M Tokens

Output:

  • $0.16 / 1M Tokens

Context Length:

  • 1,048,576

Moderation:

  • Unfiltered

Capabilities:

  • Image Input

  • Audio Input

  • Video Input

  • File Input

  • Structured Output

  • Function Calling

  • Code Execution

  • Grounding

Model Name:

  • gemini-2.0-flash-lite

Discount:

  • 60% off

Input:

  • $0.03 / 1M Tokens

Output:

  • $0.12 / 1M Tokens

Context Length:

  • 1,048,576

Moderation:

  • Unfiltered

Capabilities:

  • Image Input

  • Audio Input

  • Video Input

  • File Input

  • Structured Output

  • Function Calling

Last updated