Introduction
Submit multilingual transcripts, long documents, and rich JSON catalogs in state and define up to 64 independent questions for Gemini Decision 1 using noul, choice, or score to receive structured answers keyed by your names.
| Field | Value |
|---|---|
| Input | Text |
| Output | Structured data |
| Publisher and model | Google — Gemini Decision 1 |
| Public API name | google/gemini-decision-1/decision |
| State format | String, JSON object, or array |
| Answer types | noul, choice, score |
| Question cap | Up to 64 parallel |
| Token ceiling | 64k input tokens |
| Choice options | 1–255 named options |
| Score levels | 2–10 ordered levels |
| Measured probe | 1.72 s, 194 input tokens |
| Billing | Input tokens only |
Key features & highlights
Built for rich, multilingual state
Handles dense JSON payloads, multilingual customer threads, and long transcripts while returning clean yes/no probabilities, category choices, and ordered rubric scores.
Probabilities, choices, and rubrics from Gemini Decision 1
Ask Gemini Decision 1 using noul for 0–1 yes probabilities, choice for 1–255 described options with confidence, or score for 2–10 weighted rubric levels with a returned legend.
Score multilingual transcripts in one pass
Send multilingual transcripts, long documents, and rich JSON catalogs once inside state and let Gemini Decision 1 evaluate up to 64 independent questions in parallel so your application can branch without chaining prompts.
Calibrate Gemini Decision 1 thresholds in code
Use Gemini Decision 1 confidence and probability distributions to automate high-certainty decisions over multilingual transcripts, long documents, and rich JSON catalogs while escalating ambiguous items to a reviewer or generative model.
Request parameters
| Parameter | Required | Description |
|---|---|---|
questions | Yes | Map of 1–64 named questions for Gemini Decision 1, each specifying type (noul, choice, or score), instructions, and criteria (1–255 choice options or 2–10 score levels). |
state | Yes | Text, JSON object, or array holding multilingual transcripts, long documents, and rich JSON catalogs for Gemini Decision 1; every question reads this state independently. at least 1 characters |
Pricing
$0.0001 / 1,000 tokens
Gemini Decision 1 bills per measured input token with free output tokens; the acceptance hold uses the 64k-token cap and releases the difference at settlement.
Use cases
Triage multilingual support queues
Classify refund intent, owning team, and urgency consistently across global customer messages in one unified pipeline.
Audit catalog listings and structured feeds
Inspect multi-field product JSON for title-description consistency, required attributes, and completeness scores.
Evaluate long meeting and call transcripts
Run up to 64 independent questions over a full transcript to extract action flags, topic labels, and escalation scores.
Cross-check document extraction pipelines
Verify whether structured fields extracted from forms or emails agree with the source text before writing to your database.
Prompt guide & pro tips
Assemble the state payload
Place multilingual transcripts, long documents, and rich JSON catalogs in state as plain text, a JSON object, or an array containing every fact Gemini Decision 1 needs.
Author typed questions
Add 1–64 named entries under questions for Gemini Decision 1, choosing noul, choice, or score with explicit instructions and criteria.
Invoke Gemini Decision 1
Send POST /api/v1/jobs/createTask?wait=30 with model set to google/gemini-decision-1/decision and read output.decision, or poll recordInfo for completion.
Validate and route outputs
Benchmark Gemini Decision 1 probabilities on labelled samples of multilingual transcripts, long documents, and rich JSON catalogs, route uncertain answers to review, and log inputTokens.
Gemini Decision 1 API for typed decisions
Gemini Decision 1 is Google’s structured decision model tuned for multi-aspect evaluation across long documents, multilingual transcripts, and rich JSON records. Submit multilingual transcripts, long documents, and rich JSON catalogs in state with up to 64 named questions to receive noul probabilities, choice labels, and score rubrics.
Call Gemini Decision 1
Send POST /api/v1/jobs/createTask?wait=30 with model set to google/gemini-decision-1/decision.
{
"model": "google/gemini-decision-1/decision",
"input": {
"state": {
"locale": "de-DE",
"transcript": "Unsere Bestellung 8842 kam beschädigt an; wir benötigen rasch Ersatz oder Erstattung."
},
"questions": {
"replacement_or_refund": {
"type": "noul",
"instructions": "Does the caller ask for a replacement or refund?"
},
"queue": {
"type": "choice",
"instructions": "Pick support queue",
"criteria": {
"fulfillment": "Damaged parcel replacement",
"billing": "Invoice or payment issue"
}
}
}
}
}
Inspect Gemini Decision 1 output
Completed Gemini Decision 1 tasks populate output.decision.answers and output.decision.inputTokens (or poll recordInfo).
{
"output": {
"decision": {
"answers": {
"replacement_or_refund": {
"type": "noul",
"noul": 0.99
},
"queue": {
"type": "choice",
"choice": "fulfillment",
"confidence": 0.95
}
},
"inputTokens": 194
}
}
}
Input schema for Gemini Decision 1
state: String, JSON object, or array carrying multilingual transcripts, long documents, and rich JSON catalogs for Gemini Decision 1.questions: 1–64 keyed entries that Gemini Decision 1 evaluates independently in parallel.type: Picknoul,choice, orscoredepending on the typed value your Gemini Decision 1 caller expects.instructionsandcriteria: Clear wording plus optionaltrue/false, 1–255 options, or 2–10 ordered levels for Gemini Decision 1.
Billing and limits
Gemini Decision 1 bills strictly on measured inputTokens (our 3-question probe took 1.72 s and 194 input tokens); output tokens are free. Stay within 64 questions and 64k text or JSON tokens, and route uncertain Gemini Decision 1 results to review.
API quick start
# Generate the idempotency key once; reuse it when retrying after a lost response.
export SPICY_IDEMPOTENCY_KEY="${SPICY_IDEMPOTENCY_KEY:-$(uuidgen)}"
curl -X POST https://api.spicyapi.ai/api/v1/jobs/createTask \
-H "Authorization: Bearer $SPICY_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $SPICY_IDEMPOTENCY_KEY" \
-d '{
"model": "google/gemini-decision-1/decision",
"input": {
"state": "example",
"questions": {
"example": {
"type": "noul",
"instructions": "The customer asks for a refund after being billed twice."
}
}
}
}'
# Copy data.taskId from the response into TASK_ID, then poll the status.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.spicyapi.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
-H "Authorization: Bearer $SPICY_API_KEY"
See the API reference for authentication, the complete schema, polling, and error handling.
