Astrodyne

OpenAI compatibility

Astrodyne provides an OpenAI-compatible Chat Completions API. Point an existing OpenAI client at the Astrodyne base URL with an Astrodyne key and keep your request and response handling unchanged for the documented scope.

Configuration

Python
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.astrodyne.ai/v1",
    api_key=os.environ["ASTRODYNE_API_KEY"],
)

resp = client.chat.completions.create(
    model="YOUR_MODEL_ID",
    messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)
JavaScript
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.astrodyne.ai/v1",
  apiKey: process.env.ASTRODYNE_API_KEY,
});

const resp = await client.chat.completions.create({
  model: "YOUR_MODEL_ID",
  messages: [{ role: "user", content: "Hello" }],
});
console.log(resp.choices[0].message.content);

Currently supported

Differences to know about

Not currently supported

Scope
"OpenAI-compatible" here means the Chat Completions and model-listing scope documented on this page — not every endpoint of every OpenAI API version.