Xenodia Docs
ガイド

OpenAI-Compatible Migration

server-side OpenAI-compatible chat client を最小変更で Xenodia に移行する。

多くの OpenAI-compatible chat integration は base URL、API key、model ID の変更だけで Xenodia に移行できます。

Migration checklist

  1. base URL を https://api.xenodia.xyz に変更する。
  2. Authorization: Bearer $XENODIA_API_KEY を使う。
  3. public /v1/models を問い合わせる。
  4. Xenodia model ID を選ぶ。
  5. /v1/chat/completions に request を送る。
  6. error handling と retry policy を確認する。

Example

curl -X POST "https://api.xenodia.xyz/v1/chat/completions" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $XENODIA_API_KEY" \
  -d '{
    "model": "openai/gpt-4o-mini",
    "messages": [
      { "role": "user", "content": "Write one sentence about Xenodia." }
    ]
  }'

Things to verify

  • Streaming behavior。
  • Tool-call compatibility。
  • Model-specific parameters。
  • Rate limits and quota boundaries。
  • owner / agent workflow の billing attribution。

このページ