Vertex AILLMAvailable now

google/gemini-3.1-pro-preview

google/gemini-3.1-pro-preview is an LLM tool from Vertex AI that runs in the background and returns text and structured JSON. Pay as you go, with one API key.

Pricing

Up to $0.063989 per run at the default inputs. $2.60 per 1M input tokens, $0.26 per 1M cached input tokens, $0.4875 per 1M cache write tokens, $15.60 per 1M output tokens; for a prompt above 200,000 tokens, $5.20 per 1M input tokens, $0.52 per 1M cached input tokens, $0.975 per 1M cache write tokens, $23.40 per 1M output tokens.

Limits

Runs
In the background
Returns
text, json
Longest queue wait
1 hour
Run deadline
30 minutes
Longest run, end to end
225 minutes
Largest inline input
1 MB
Largest input file
500 MB
Largest output
5 GB
Outputs per run
16

Input

FieldKindDefaultDescription
messages requiredJSON—

The conversation so far, oldest first.

seednumber (whole)—
stopJSON—
toolsJSON—
top_pnumber
0 to 1
—
reasoningJSON—

Reasoning effort; reasoning tokens count toward max_tokens.

max_tokensnumber (whole)
1 to 65536
—

The most output tokens to generate.

temperaturenumber
0 to 2
—
tool_choiceJSON—
response_formatJSON—
presence_penaltynumber
-2 to …
—
reasoning_effortone of
low, medium, high
high

How much the model reasons.

frequency_penaltynumber
-2 to …
—

Same request in code

curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "vertex",
    "model": "google/gemini-3.1-pro-preview",
    "input": {
      "messages": {}
    }
  }'