OpenAI-style requests
Use the same request shape your apps already understand, with Subaxis as the base URL.
OpenAI-compatible API access
Create an account, add balance, and call supported models from a clean OpenAI-style endpoint. Subaxis keeps keys, usage, and billing simple.
curl https://subaxis.dev/v1/chat/completions \
-H "Authorization: Bearer $SUBAXIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-5.5",
"messages": [
{"role": "user", "content": "Why is the sky blue?"}
]
}'
from openai import OpenAI
client = OpenAI(
base_url="https://subaxis.dev/v1",
api_key="$SUBAXIS_API_KEY",
)
response = client.chat.completions.create(
model="gpt-5.5",
messages=[{"role": "user", "content": "Why is the sky blue?"}],
)
print(response.choices[0].message.content)
import { createOpenAI } from "@ai-sdk/openai";
import { generateText } from "ai";
const subaxis = createOpenAI({
baseURL: "https://subaxis.dev/v1",
apiKey: process.env.SUBAXIS_API_KEY,
});
const { text } = await generateText({
model: subaxis("gpt-5.5"),
prompt: "Why is the sky blue?",
});
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://subaxis.dev/v1",
apiKey: process.env.SUBAXIS_API_KEY,
});
const completion = await client.chat.completions.create({
model: "gpt-5.5",
messages: [{ role: "user", content: "Why is the sky blue?" }],
});
console.log(completion.choices[0].message.content);
const OpenAI = require("openai");
const client = new OpenAI({
baseURL: "https://subaxis.dev/v1",
apiKey: process.env.SUBAXIS_API_KEY,
});
client.chat.completions
.create({
model: "gpt-5.5",
messages: [{ role: "user", content: "Why is the sky blue?" }],
})
.then((res) => console.log(res.choices[0].message.content));
package main
import (
"context"
"fmt"
"github.com/openai/openai-go"
"github.com/openai/openai-go/option"
)
func main() {
client := openai.NewClient(
option.WithBaseURL("https://subaxis.dev/v1"),
option.WithAPIKey(os.Getenv("SUBAXIS_API_KEY")),
)
res, _ := client.Chat.Completions.New(context.TODO(), openai.ChatCompletionNewParams{
Model: "gpt-5.5",
Messages: []openai.ChatCompletionMessageParamUnion{
openai.UserMessage("Why is the sky blue?"),
},
})
fmt.Println(res.Choices[0].Message.Content)
}
Leading AI models & seamless integrations
Model routing
Use the same request shape your apps already understand, with Subaxis as the base URL.
See requests, tokens, model spend, and key activity from one clean customer portal.
Top up when you need more credits and always see exactly how much balance you have.
Build with balance controls