LLM ReferenceLLM Reference
GCP Vertex AI

Llama 3.1-405B on GCP Vertex AI

Llama 3.1 · AI at Meta

ServerlessOpen Source

Last refreshed 2026-05-11. Next refresh: weekly.

Why use Llama 3.1-405B on GCP Vertex AI?

GCP Vertex AI offers Llama 3.1-405B with pay-as-you-go pricing at $5.00/1M input tokens. Vertex AI is Google Cloud's managed AI platform, offering access to Gemini models and hundreds of partner models alongside tools for fine-tuning, grounding, vector search, and end-to-end MLOps pipelines.

Compare Llama 3.1-405B across 2 providers to find the best fit for your use case
Input / 1M
$5.00
Output / 1M
$16.00
Cache
Not sourced
Batch
Not sourced

Setup recipe

Python + curl
Install
pip install google-cloud-aiplatform
Auth
export GOOGLE_CLOUD_PROJECT=...
Call
import os
import vertexai
from vertexai.generative_models import GenerativeModel
vertexai.init(project=os.environ["GOOGLE_CLOUD_PROJECT"], location="us-central1")
Model ID
llama-3-1-405b

Request example

import os
import vertexai
from vertexai.generative_models import GenerativeModel

# Reads GOOGLE_CLOUD_PROJECT from env; authenticates via Application Default Credentials
vertexai.init(project=os.environ["GOOGLE_CLOUD_PROJECT"], location="us-central1")
model = GenerativeModel("llama-3-1-405b")
response = model.generate_content("Hello")
print(response.text)

Gotchas

  • For Google-published models use the model name directly, e.g. "gemini-2.0-flash-001". For third-party publishers (Anthropic, Meta, etc.) use the full publisher path, e.g. "publishers/anthropic/models/claude-3-5-sonnet-v2@20241022".
  • The examples expect GOOGLE_CLOUD_PROJECT; rename it only if your application config maps the new variable.

Compare Llama 3.1-405B Across Providers

ProviderInput (per 1M)Output (per 1M)
GCP Vertex AI$5.00$16.00
Replicate API$3.75$3.75

Pricing

TypePrice (per 1M)
Input tokens$5.00
Output tokens$16.00

Capabilities

Function CallingTool UseStructured Outputs

About Llama 3.1-405B

Meta's flagship Llama 3.1 model with 405B parameters and 128K context window. Open-weights model with strong reasoning and coding capabilities.

FAQ

What does Llama 3.1-405B cost on GCP Vertex AI?

On GCP Vertex AI, Llama 3.1-405B costs $5 per 1M input tokens and $16 per 1M output tokens.

What is the context window for Llama 3.1-405B on GCP Vertex AI?

Llama 3.1-405B supports a 128,000 token context window on GCP Vertex AI.

How does GCP Vertex AI compare to other Llama 3.1-405B providers?

Llama 3.1-405B is available from 2 providers. The cheapest input pricing is $3.75/1M tokens from Replicate API.

Who created Llama 3.1-405B?

Llama 3.1-405B was created by AI at Meta as part of the Llama 3.1 model family.

Is Llama 3.1-405B open source?

Llama 3.1-405B is open source according to the seed data.

Get Started

Model Specs

Released2024-07-23
Parameters405B
Context128k
Knowledge cutoff2024-04

Related Models on GCP Vertex AI

Provider

GCP Vertex AI
GCP Vertex AI

Google Cloud Platform (GCP)

All models on GCP Vertex AI