Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

docs(openai.md): document openai chat completions to responses api bridge

Krrish Dholakia706454250496
diff --git a/docs/my-website/docs/providers/openai.md b/docs/my-website/docs/providers/openai.md
index 4fd75035fb0..472981d405f 100644
--- a/docs/my-website/docs/providers/openai.md
+++ b/docs/my-website/docs/providers/openai.md
@@ -331,6 +331,70 @@ curl -X POST 'http://0.0.0.0:4000/chat/completions' \
| fine tuned `gpt-3.5-turbo-0613` | `response = completion(model="ft:gpt-3.5-turbo-0613", messages=messages)` |
+## OpenAI Chat Completion to Responses API Bridge
+
+Call Responses API from OpenAI's `/chat/completions` endpoint.
+
+<Tabs>
+<TabItem value="sdk" label="SDK">
+
+```python
+import litellm
+import os
+
+os.environ["OPENAI_API_KEY"] = "sk-1234"
+
+response = litellm.completion(
+ model="o3-deep-research-2025-06-26",
+ messages=[{"role": "user", "content": "What is the capital of France?"}],
+ tools=[
+ {"type": "web_search_preview"},
+ {"type": "code_interpreter", "container": {"type": "auto"}},
+ ],
+)
+print(response)
+```
+</TabItem>
+<TabItem value="proxy" label="PROXY">
+
+1. Setup config.yaml
+
+```yaml
+model_list:
+ - model_name: openai-model
+ litellm_params:
+ model: o3-deep-research-2025-06-26
+ api_key: os.environ/OPENAI_API_KEY
+```
+
+2. Start the proxy
+
+```bash
+litellm --config config.yaml
+```
+
+3. Test it!
+
+```bash
+curl -X POST 'http://0.0.0.0:4000/chat/completions' \
+-H 'Content-Type: application/json' \
+-H 'Authorization: Bearer sk-1234' \
+-d '{
+ "model": "openai-model",
+ "messages": [
+ {"role": "user", "content": "What is the capital of France?"}
+ ],
+ "tools": [
+ {"type": "web_search_preview"},
+ {"type": "code_interpreter", "container": {"type": "auto"}},
+ ],
+}'
+```
+
+</TabItem>
+</Tabs>
+
+
## OpenAI Audio Transcription
LiteLLM supports OpenAI Audio Transcription endpoint.