Utilizing Headers

curl https://gateway.hconeai.com/v1/completions \
  -H 'Content-Type: application/json' \
  -H 'Helicone-Auth: Bearer HELICONE_API_KEY' \
  -H 'Helicone-<HEADER>: <VALUE>'
  -d ...

Supported Headers

Header NameTypeDescriptionExample
Helicone-Target-URLstring (url)The URL to proxy the request to when using gateway.hconeai.comhttps://api.openai.com/v1/engines/davinci/completions
Helicone-OpenAI-Api-Basestring (url)The URL to proxy the request to when using oai.hconeai.comhttps://[YOUR_AZURE_DOMAIN].openai.azure.com
Helicone-Request-Idstring (uuid)The ID of the request123e4567-e89b-12d3-a456-426614174000
Helicone-Omit-ResponsebooleanWhether to exclude the response from the requesttrue
Helicone-Omit-RequestbooleanWhether to exclude the request from the responsetrue
Helicone-Model-Overridestring (model)Overrides the model used to calculate costs and mapping. Useful for when the model does not exist in url, request or responsegpt-4-1106-preview

Feature Flags

Header NameTypeDescriptionExample
Helicone-Stream-Force-FormatbooleanEnforce proper stream formatting for libraries that do not inherently support it, such as Ruby.true