OpenAI-compatible
Use Responses or Chat Completions with your application token and a custom base URL.
AI Hub connects your applications to models running on machines you control. Durable runs, isolated tenants, and outbound-only workers without exposing your model host.
Self-hosted Rails control plane · OpenAI-compatible API
request.pyimport os
from openai import OpenAI
# Point an existing client at your hub
client = OpenAI(
api_key=os.environ["AI_HUB_TOKEN"],
base_url="https://your-hub.example/v1",
)
response = client.responses.create(
model="assistant.general@1",
input="Summarize this report",
)
response.output_text
Applications submit work over HTTPS. Workers beside your models make short outbound claims, run compatible jobs, and return validated results.
Use Responses or Chat Completions with your application token and a custom base URL.
Leases, retries, idempotency, and a local result outbox protect work across network interruptions.
Applications publish immutable instructions and schemas. Generic workers fetch exactly what each job needs.
Inspect runs, hosting health, applications, tokens, and task versions from one tenant-scoped console.
One Rails app, one durable volume, and a lightweight worker beside your model.