OpenRouterLLMAvailable now

google/gemini-3.1-pro-preview

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

Try itfrom $0.0000026 / token

Pricing

Up to $0.063989 per run at the default inputs. $2.60 per 1M input tokens, $15.60 per 1M output tokens.

Limits

Runs
In the background
Returns
text, json
Longest queue wait
3600s
Run deadline
1800s
Largest inline input
1024 KB
Largest input file
500 MB
Largest output
4768 MB
Outputs per run
16

Input

FieldKindDefaultDescription
messages requiredJSON—

The conversation so far, oldest first.

seednumber (whole)—
stopJSON—
min_pnumber—
toolsJSON—
top_knumber (whole)—
top_pnumber—
logprobstrue or false—
reasoningJSON—

Reasoning effort; reasoning tokens count toward max_tokens.

max_tokensnumber (whole)
1 to …
—

The most output tokens to generate.

temperaturenumber—
tool_choiceJSON—
top_logprobsnumber (whole)—
response_formatJSON—
presence_penaltynumber—
frequency_penaltynumber—
repetition_penaltynumber—
parallel_tool_callstrue or false—

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": "openrouter",
    "model": "google/gemini-3.1-pro-preview",
    "input": {
      "messages": {}
    }
  }'