Skip to main content

OpenAI Compatible API

An OpenAI compatible API allows you to keep your existing OpenAI-style code while switching the underlying model provider or gateway. This is the standard way to avoid vendor lock-in and optimize your AI infrastructure costs. Rock API exposes OpenAI-compatible endpoints so existing clients can usually migrate by changing the base URL and API key.

Base URL

Python

Node.js

Create an API key

Register, create an API key, and point your OpenAI-compatible client at Rock API.