beatra
Launch & operate

Migrating from OpenAI

Move OpenAI-compatible text chat calls to beatra.

For text chat, most OpenAI Chat Completions clients can move by changing the base URL and API key.

from openai import OpenAI
 
client = OpenAI(
    base_url="https://api.beatra.ai/v1",
    api_key="<BEATRA_KEY>",
)
 
response = client.chat.completions.create(
    model="auto",
    messages=[{"role": "user", "content": "Summarize this note."}],
)
import OpenAI from "openai";
 
const client = new OpenAI({
  baseURL: "https://api.beatra.ai/v1",
  apiKey: process.env.BEATRA_API_KEY,
});

Status by OpenAI surface

OpenAI surfacebeatra statusNotes
Chat Completions textAvailableUse /v1/chat/completions.
Streaming chatAvailableUse stream: true for OpenAI-compatible Server-Sent Events.
Models listPreview/v1/models is available for discovery, with Preview stability.
Files/uploadsPreviewSingle-shot upload is callable for source media; resumable upload is Planned.
Images, audio, videoPlannedDo not migrate production calls yet.
Embeddings, Assistants, RealtimePlannedNot part of the current callable v1 surface.

What to audit

  • Model ids — start with auto, then pin only account-enabled ids.
  • Timeouts — keep interactive chat timeouts short.
  • Headers — use Authorization, Content-Type, optional Idempotency-Key, and X-Request-Id.
  • Advanced OpenAI features — verify behavior before assuming full parity beyond text chat.

On this page