GPT-5.4 mini
OpenAI
gpt-5.4-mini
OpenAI-compatible API
Create a Routerra API key, use available trial credits, and make your first request with an OpenAI-compatible SDK.
Check your wallet for available credits and the model catalog for current rates. Model access depends on your API key.
OpenAI
gpt-5.4-mini
Anthropic
claude-haiku-4-5-20251001
DeepSeek
DeepSeek-V3.2
Create a key in the console and choose a model that supports Chat Completions. Set these variables before running an example.
export OPENAI_BASE_URL='https://routerra.ai/v1'
export OPENAI_API_KEY='YOUR_PLATFORM_API_KEY'
export OPENAI_MODEL='YOUR_MODEL_ID'export OPENAI_BASE_URL='https://routerra.ai/v1'
export OPENAI_API_KEY='YOUR_PLATFORM_API_KEY'
export OPENAI_MODEL='YOUR_MODEL_ID'
curl --fail-with-body "$OPENAI_BASE_URL/chat/completions" \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H 'Content-Type: application/json' \
-d @- <<EOF
{"model":"$OPENAI_MODEL","messages":[{"role":"user","content":"Hello"}]}
EOF# pip install openai
import os
from openai import OpenAI
client = OpenAI(
base_url=os.environ["OPENAI_BASE_URL"],
api_key=os.environ["OPENAI_API_KEY"],
)
response = client.chat.completions.create(
model=os.environ["OPENAI_MODEL"],
messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)// bun add openai
import OpenAI from 'openai';
const client = new OpenAI({
baseURL: process.env.OPENAI_BASE_URL,
apiKey: process.env.OPENAI_API_KEY,
});
const response = await client.chat.completions.create({
model: process.env.OPENAI_MODEL,
messages: [{ role: 'user', content: 'Hello' }],
});
console.log(response.choices[0].message.content);$env:OPENAI_BASE_URL = 'https://routerra.ai/v1'
$env:OPENAI_API_KEY = 'YOUR_PLATFORM_API_KEY'
$env:OPENAI_MODEL = 'YOUR_MODEL_ID'
$body = @{
model = $env:OPENAI_MODEL
messages = @(@{ role = 'user'; content = 'Hello' })
} | ConvertTo-Json -Depth 5
Invoke-RestMethod -Method Post `
-Uri "$env:OPENAI_BASE_URL/chat/completions" `
-Headers @{ Authorization = "Bearer $env:OPENAI_API_KEY" } `
-ContentType 'application/json' -Body $bodyTrial credits cover eligible requests up to the available balance. Check your wallet for your balance and your usage logs for request costs.
Top up your wallet to continue sending billable requests at the listed model rates.
Use the exact ID of a model available to your key that supports Chat Completions.
Yes. Set the Routerra base URL and API key in your OpenAI SDK or compatible client.