Integration · 2026-08-28 · HippoAPI Documentation Team

Use the OpenAI SDK with HippoAPI

Change the base URL and key, keep familiar client code, and account for model-specific behavior.

Python client

Install the current OpenAI Python package, read the key from an environment variable, and set the HippoAPI base URL.

from openai import OpenAI
import os

client = OpenAI(
    base_url='https://hippoapi.net/v1',
    api_key=os.environ['HIPPOAPI_API_KEY'],
)

JavaScript client

Use the server-side OpenAI JavaScript client. Never enable browser access with a secret production key.

import OpenAI from 'openai'

const client = new OpenAI({
  baseURL: 'https://hippoapi.net/v1',
  apiKey: process.env.HIPPOAPI_API_KEY,
})

Compatibility is not identical behavior

A compatible request shape does not mean every model supports every parameter. Check the model detail page for modalities and capabilities, then test tool use, JSON output, streaming, and context limits for the selected model.