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 add example curl command
Ishaan Jaff7f95a865fefe
diff --git a/docs/my-website/docs/vertex_ai.md b/docs/my-website/docs/vertex_ai.mdindex 2c9a6279a1c..7ae06f3af73 100644--- a/docs/my-website/docs/vertex_ai.md+++ b/docs/my-website/docs/vertex_ai.md@@ -37,4 +37,41 @@ curl http://localhost:4000/vertex-ai/publishers/google/models/textembedding-geck-H "Content-Type: application/json" \-H "Authorization: Bearer sk-1234" \-d '{"instances":[{"content": "gm"}]}'+```+++### Gemini API (Generate Content)++```shell+curl http://localhost:4000/vertex-ai/publishers/google/models/gemini-1.5-flash-001:generateContent \+ -H "Content-Type: application/json" \+ -H "Authorization: Bearer sk-1234" \+ -d '{"contents":[{"role": "user", "parts":[{"text": "hi"}]}]}'+```++### Embeddings API++```shell+curl http://localhost:4000/vertex-ai/publishers/google/models/textembedding-gecko@001:predict \+ -H "Content-Type: application/json" \+ -H "Authorization: Bearer sk-1234" \+ -d '{"instances":[{"content": "gm"}]}'+```++### Imagen API++```shell+curl http://localhost:4000/vertex-ai/publishers/google/models/imagen-3.0-generate-001:predict \+ -H "Content-Type: application/json" \+ -H "Authorization: Bearer sk-1234" \+ -d '{"instances":[{"prompt": "make an otter"}], "parameters": {"sampleCount": 1}}'+```++### Count Tokens API++```shell+curl http://localhost:4000/vertex-ai/publishers/google/models/gemini-1.5-flash-001:countTokens \+ -H "Content-Type: application/json" \+ -H "Authorization: Bearer sk-1234" \+ -d '{"contents":[{"role": "user", "parts":[{"text": "hi"}]}]}'```\ No newline at end of file