Vertex ai

Vertex Proxy Route

Call LiteLLM proxy via Vertex AI SDK.

Docs

GET/vertex_ai/{endpoint}
Path parameters
endpoint*Endpoint
Response

Successful Response

Body
any
Request
const response = await fetch('/vertex_ai/{endpoint}', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "detail": [
    {
      "loc": [
        "text"
      ],
      "msg": "text",
      "type": "text"
    }
  ]
}

Vertex Proxy Route

Call LiteLLM proxy via Vertex AI SDK.

Docs

POST/vertex_ai/{endpoint}
Path parameters
endpoint*Endpoint
Response

Successful Response

Body
any
Request
const response = await fetch('/vertex_ai/{endpoint}', {
    method: 'POST',
    headers: {},
});
const data = await response.json();
Response
{
  "detail": [
    {
      "loc": [
        "text"
      ],
      "msg": "text",
      "type": "text"
    }
  ]
}

Vertex Proxy Route

Call LiteLLM proxy via Vertex AI SDK.

Docs

PUT/vertex_ai/{endpoint}
Path parameters
endpoint*Endpoint
Response

Successful Response

Body
any
Request
const response = await fetch('/vertex_ai/{endpoint}', {
    method: 'PUT',
    headers: {},
});
const data = await response.json();
Response
{
  "detail": [
    {
      "loc": [
        "text"
      ],
      "msg": "text",
      "type": "text"
    }
  ]
}

Vertex Proxy Route

Call LiteLLM proxy via Vertex AI SDK.

Docs

DELETE/vertex_ai/{endpoint}
Path parameters
endpoint*Endpoint
Response

Successful Response

Body
any
Request
const response = await fetch('/vertex_ai/{endpoint}', {
    method: 'DELETE',
    headers: {},
});
const data = await response.json();
Response
{
  "detail": [
    {
      "loc": [
        "text"
      ],
      "msg": "text",
      "type": "text"
    }
  ]
}

Vertex Proxy Route

Call LiteLLM proxy via Vertex AI SDK.

Docs

PATCH/vertex_ai/{endpoint}
Path parameters
endpoint*Endpoint
Response

Successful Response

Body
any
Request
const response = await fetch('/vertex_ai/{endpoint}', {
    method: 'PATCH',
    headers: {},
});
const data = await response.json();
Response
{
  "detail": [
    {
      "loc": [
        "text"
      ],
      "msg": "text",
      "type": "text"
    }
  ]
}