Skip to main content

Introduction

Our platform allows you to integrate our Hmodels (baby1, daddy1, mommy1) into your projects using OpenAI Compatibility. You can interact with these models using the official openai package.

Generate an API Key

Before you start, you need to generate an API key from our platform. To do so, visit: 👉 Generate an API Key

Base URL

All requests must be sent to:

Installing the OpenAI Package

If you haven’t installed it yet, add the OpenAI package to your project: Python:
JavaScript (Node.js):

Using OpenAI Compatibility

Sending a Request to a Model

Here is an example of how to interact with the baby1 basic model using Python and JavaScript. Find an verview of all available AI models on Hmodels here 👉 Hmodels.

Other Useful Parameters

The API supports several options to customize the model’s responses. Example with Advanced Parameters: