// guides

OpenAI compatibility

Litepod implements the OpenAI Chat Completions API, so existing OpenAI code works after changing two settings.

Switching from OpenAI

SettingOpenAILitepod
Base URLhttps://api.openai.com/v1https://api.litepod.io/v1
API keysk-...sk_litepod_...
Modelgpt-4onvidia/nemotron-lightning-3.5-30b-a3b

Frameworks built on the OpenAI SDK, such as LangChain, LlamaIndex and the Vercel AI SDK, work the same way: set their OpenAI base URL and key.

What's supported

  • POST /v1/chat/completions, including streaming, vision, function calling and JSON mode.
  • GET /v1/models and GET /v1/models/{model}.
  • OpenAI's error format, so SDK error handling and retries work as usual.

Differences from OpenAI

  • Model ids are Litepod's (see Models), not OpenAI's.
  • Only chat completions for now: no embeddings, images, audio, Assistants or Responses API endpoints.
  • Parameters Litepod doesn't check are passed through to the model. A parameter a model doesn't support may be ignored or rejected with a 400.
  • Every response has an x-request-id header. Include it when you contact us about a request.