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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
docs image edits
Ishaan Jaff95b59cbf4dc1
diff --git a/docs/my-website/docs/image_edits.md b/docs/my-website/docs/image_edits.mdindex c8959e4c561..8e71764c094 100644--- a/docs/my-website/docs/image_edits.md+++ b/docs/my-website/docs/image_edits.md@@ -106,13 +106,6 @@ for i, image_data in enumerate(response.data):### LiteLLM Proxy with OpenAI SDK-First, set up and start your LiteLLM proxy server.--```bash showLineNumbers title="Start LiteLLM Proxy Server"-litellm --config /path/to/config.yaml--# RUNNING on http://0.0.0.0:4000-```<Tabs><TabItem value="openai" label="OpenAI">@@ -126,6 +119,14 @@ model_list:api_key: os.environ/OPENAI_API_KEY```+Start the LiteLLM proxy server:++```bash showLineNumbers title="Start LiteLLM Proxy Server"+litellm --config /path/to/config.yaml++# RUNNING on http://0.0.0.0:4000+```+#### Basic Image Edit via Proxy```python showLineNumbers title="OpenAI Proxy Image Edit"from openai import OpenAI@@ -148,29 +149,6 @@ response = client.images.edit(print(response)```-#### Image Edit with Mask via Proxy-```python showLineNumbers title="OpenAI Proxy Image Edit with Mask"-from openai import OpenAI--# Initialize client with your proxy URL-client = OpenAI(- base_url="http://localhost:4000", # Your proxy URL- api_key="your-api-key" # Your proxy API key-)--# Edit an image with a mask-response = client.images.edit(- model="gpt-image-1",- image=open("original_image.png", "rb"),- mask=open("mask_image.png", "rb"),- prompt="Replace the background with a mountain landscape",- n=2,- size="512x512"-)--print(response)-```-#### cURL Example```bash showLineNumbers title="cURL Image Edit Request"curl -X POST "http://localhost:4000/v1/images/edits" \