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]

use with base64

Ishaan Jaff1765976ce0db
diff --git a/docs/my-website/docs/providers/vertex.md b/docs/my-website/docs/providers/vertex.md
index 31dfb8ecda7..f9117c6bbb5 100644
--- a/docs/my-website/docs/providers/vertex.md
+++ b/docs/my-website/docs/providers/vertex.md
@@ -1610,6 +1610,33 @@ $ litellm --config /path/to/config.yaml
3. Make Request use OpenAI Python SDK
+
+```python
+import openai
+
+client = openai.OpenAI(api_key="sk-1234", base_url="http://0.0.0.0:4000")
+
+# # request sent to model set on litellm proxy, `litellm --model`
+response = client.embeddings.create(
+ model="multimodalembedding@001",
+ input = None,
+ extra_body = {
+ "instances": [
+ {
+ "image": {
+ "bytesBase64Encoded": "base64"
+ },
+ "text": "this is a unicorn",
+ },
+ ],
+ }
+)
+
+print(response)
+```
+
+
+
```python
import openai