PlatformGuard

Model adapters

Keep your model and your keys. Humane works around them.

Humane talks to models through four adapters: OpenAI-compatible, Anthropic, Amazon Bedrock and Replicate. Change providers without touching the behavioural layer.

Model adapters

Your app

Humane

state · gates · timing · memory

OpenAI-compatible

Any OpenAI-style endpoint

Anthropic

Messages API

Amazon Bedrock

Converse API

Replicate

Hosted open models

Your keys · your model · base URLs SSRF-checked

Illustration of Humane between your app and your model
Adapters

Four adapters, many providers

OpenAI-compatible

Any provider with an OpenAI-style API. The catalogue has presets for services such as Azure OpenAI, Groq, Together and Mistral, and for a local Ollama server.

Anthropic

A native adapter for Anthropic's API, with streaming.

Amazon Bedrock

Uses the Converse API, so one request shape covers the models Bedrock hosts. Credentials from your environment or an instance role.

Replicate

Run hosted open models through Replicate with the same Humane layer on top.

Two ways in

Wrap your client, or let Humane call the model

wrap() puts Humane in front of the OpenAI-style client you already use, and on BLOCK it never calls the model. process() goes further: Humane builds the prompt, calls your configured provider and checks the reply before you see it.

  • Per-tenant base URL and key, checked against SSRF rules
  • Provider errors cleaned before they reach your users
  • Automatic retry on 429 and 503 responses
  • Streaming on providers that support it

Playground

> this is the third time I’m asking. forget it.
frustrationdismissiveintent: complaint

Raw model

Great question! There are several things you can try. First, let’s go over the options in detail…

With Humane context

I’m sorry you’ve had to ask three times. Here’s exactly where it stands.

tone warm_grounded · length short

Illustration of the playground comparison
One line

Wrap the client you have

python
import os
from openai import OpenAI
from humane_ai import wrap

# One line: every chat.completions.create() now goes through Humane first
client = wrap(OpenAI(), humane_key=os.environ["HUMANE_API_KEY"])

resp = client.chat.completions.create(
    model="gpt-4o-mini",
    messages=[{"role": "user", "content": "I'm really struggling with this"}],
    user="user_42",            # a stable id for this end user
)

print(resp.choices[0].message.content)
print(resp.humane.safety.action)    # "PROCEED" | "HOLD" | "BLOCK"
print(resp.humane.user.mood)        # this user's mood, 0.0 to 1.0
print(resp.humane.analysis.reasons) # the phrases behind the reading

Model questions

Something else? Ask us.

Every AI should know who it's talking to.

The safety and human-oversight layer for emotional AI: user state across sessions, risk alerts, safety gates and human takeover, with every decision explained.