Hyperbolic’s OpenAI-compatible API makes it easy to integrate with your existing tools and frameworks. Simply change the base URL and API key to start using Hyperbolic models with your favorite libraries.
Build AI applications, chains, and agents with LangChain.
from langchain_openai import ChatOpenAIllm = ChatOpenAI( openai_api_key="YOUR_HYPERBOLIC_API_KEY", openai_api_base="https://api.hyperbolic.xyz/v1", model_name="meta-llama/Llama-3.3-70B-Instruct")response = llm.invoke("What is the capital of France?")print(response.content)
Access Hyperbolic models through the Hugging Face ecosystem.
from huggingface_hub import InferenceClientclient = InferenceClient( provider="hyperbolic", api_key="YOUR_HYPERBOLIC_API_KEY")response = client.chat.completions.create( model="deepseek-ai/DeepSeek-R1", messages=[ {"role": "user", "content": "What is the capital of France?"} ], max_tokens=500)print(response.choices[0].message.content)