openai (Python, Node, Go, .NET), LangChain, LlamaIndex, Vercel AI SDK, and anything else built on /v1/chat/completions.
Install
Configure
Only the base URL and key change:Streaming
Supported OpenAI routes
/v1/chat/completions, /v1/completions, /v1/responses, /v1/embeddings, /v1/models, /v1/images/generations, /v1/images/edits, /v1/audio/speech, /v1/audio/transcriptions, /v1/audio/translations, /v1/moderations, /v1/rerank, /v1/files, /v1/fine-tunes.
Notes that save debugging time
- Do not append
/chat/completionsto the base URL yourself if the SDK already does it. organizationandprojectheaders from the OpenAI SDK are ignored.- Tool calling, JSON mode, and
response_formatare passed through to the upstream model. Whether they work depends on the model, not on Triw. - Error bodies follow the OpenAI shape; see Errors for the code table.

