openai-compat
Chat completions (OpenAI-compatible)
OpenAI-compatible chat completions endpoint. Works with the OpenAI Python SDK by setting base_url="https://api.pioneer.ai/v1". Set stream=true for SSE streaming. The response includes a x_pioneer extension field with inference_id and routed_model.
post/v1/chat/completions
Request body
Response
Chat completion result. Returns application/json when stream=false (default) and text/event-stream SSE when stream=true. Each SSE event is data: {...}\n\n terminated by data: [DONE]\n\n.