Skip to main content
Helicone OSS LLM Observability

Gateway Integration

The optimal method to integrate with Helicone is through our Gateway. This API provides a seamless interface for sending requests and responses to Helicone.
4 min read

Overview#

The Gateway serves as a unified entry point for all traffic, regardless of your provider. It enables you to dispatch requests to any provider through a single endpoint. This provides you with the advantage of utilizing all of Helicone's features such as Caching, Monitoring, Rate Limiting, Vaults, Feedback, and many more for any provider.

Simple Integration#

This is achieved by allowing you to determine the destination of your request by specifying the provider in the URL path. For instance, if you wish to send a request to LemonFox, you would send a request to https://gateway.helicone.ai instead of https://api.lemonfox.ai, but you would specify the provider and the endpoint in the URL path within the headers of your request.

Ex 1#

api.groq.com/openai/v1" -> gateway.helicone.ai/openai/v1

  • Header: Helicone-Target-Url: https://api.groq.com

Ex 2#

api.lemonfox.ai/v1 -> gateway.helicone.ai/v1

  • Header: Helicone-Target-Url: https://api.lemonfox.ai

How to Use the Gateway#

Examples#

Cloudflare gateway example

Current gateway request

Simply change gateway.ai.cloudflare.com to gateway.helicone.ai and add the following headers

TogetherAI example
Gemini Vertex Examples

Gemini Pro

Gemini Pro Vision

Approved Domains#

ProviderDomain NameCost SupportDedicated Domain
OpenAIapi.openai.comoai.helicone.ai
Google Gemini`generativelanguage.googleapis.com
Google Vertex AI`aiplatform.googleapis.com
Anthropicapi.anthropic.comanthropic.helicone.ai
Together-AIapi.together.xyztogether.helicone.ai
OpenRouteropenrouter.aiopenrouter.helicone.ai
Fireworksapi.fireworks.aifireworks.helicone.ai
Azureopenai.azure.com
Groqapi.groq.comgroq.helicone.ai
Deepinfraapi.deepinfra.comdeepinfra.helicone.ai
Anyscaleapi.endpoints.anyscale.com
Cloudflaregateway.ai.cloudflare.com
LemonFoxapi.lemonfox.ai
Perplexityapi.perplexity.aiperplexity.helicone.ai
Mistralapi.mistral.aimistral.helicone.ai
DeepSeekapi.deepseek.comdeepseek.helicone.ai
X.AIapi.x.aix.helicone.ai
AWS Bedrockbedrock-runtime.*.amazonaws.combedrock.helicone.ai
Nebiusapi.tokenfactory.nebius.comnebius.helicone.ai
Novitaapi.novita.ainovita.helicone.ai
Avianapi.avian.io
Cohereapi.cohere.ai
QStashqstash.upstash.ioqstash.helicone.ai
Firecrawlapi.firecrawl.devfirecrawl.helicone.ai

Unapproved Domains#

To protect our community from potential threats, we have certain restrictions for unapproved domains. To ensure a safe internet environment, you can use any unapproved domain, but you will be limited to the following:

  • 10,000 requests per day
  • 1 request per second

The integration is the same as the approved domains, but you will need to add the following header:

Automated Mappers ("Model is pending mapping")#

Helicone will automatically determine how to map any unsupported model that
you throw at it using our automated
mapper.

Helicone will automatically determine how to map any unsupported model that you throw at it using our automated mapper. Helicone intelligently determines the schema of the model and maps it to the appropriate schema for the provider. This allows you to use any model you want without having to wait for us to manually map it.

Mappings are on a specialized job that runs every 24 hours, so your UI may not be mapped immediately. If you would like to expedite the mapping, please contact us at engineering@helicone.ai or connect with us on Discord!

How to Get a Domain Approved or Mapper Expedited#

To get a domain approved, please contact us at engineering@helicone.ai or connect with us on Discord!

Subject: Domain Approval Request

Body: Is this a personal deployment? If not, what is the name of the company? What is the domain name?

If it is a personal deployment, please provide proof you own the domain by updating a text record with the following value: hconeai-verification=true