Vertex AI (OpenAI-compatible) API
Access partner models (e.g. xAI Grok) via Google Cloud Vertex AI's OpenAI-compatible Chat Completions endpoint.
Data & Privacy
HQ:US
Safety identifier:Not forwarded
API Training:No
Prompt Logging:No
Retention:0 days
GDPR:Compliant
SOC2:Type II Certified
ISO 27001:Certified
Available Models
Grok 4.7
xai
grok-4-7Streaming
Vision
Tools
Reasoning
JSON Output
JSON Schema
Vertex AI (OpenAI-compatible)
Context: 524.3k
Input
$2
/M tokens
Cached
$0.5
/M tokens
Output
$6
/M tokens
Tiered Pricing
IN
CACHED
OUT
≤200K tokens
$2
$0.5
$6
>200K tokens
$4
$1
$12
Grok 4.6
xai
grok-4-6Streaming
Vision
Tools
Reasoning
JSON Output
JSON Schema
Vertex AI (OpenAI-compatible)
Context: 500k
Input
$2
/M tokens
Cached
$0.5
/M tokens
Output
$6
/M tokens
Tiered Pricing
IN
CACHED
OUT
≤200K tokens
$2
$0.5
$6
>200K tokens
$4
$1
$12
Grok 4.20 Reasoning
xai
grok-4-20-reasoningStreaming
Vision
Tools
Reasoning
JSON Output
Vertex AI (OpenAI-compatible)
Context: 2M
Input
$1.25
/M tokens
Cached
$0.2
/M tokens
Output
$2.5
/M tokens
Grok 4.20 Non-Reasoning
xai
grok-4-20-non-reasoningStreaming
Vision
Tools
JSON Output
Vertex AI (OpenAI-compatible)
Context: 2M
Input
$1.25
/M tokens
Cached
$0.2
/M tokens
Output
$2.5
/M tokens
Create an LLM Gateway API key and point any OpenAI-compatible SDK at https://api.llmgateway.io/v1. Set the model to grok-4-7. On pay-as-you-go keys, vertex-openai/grok-4-7 pins every request to Vertex AI (OpenAI-compatible); DevPass coding plans do not support provider pinning. You do not need a separate Vertex AI (OpenAI-compatible) account or SDK.