Skip to content

About

Trio-Spark — fast judgment for the next move

Resources

Contributing

Stars

5 stars

Watchers

0 watching

Forks

Repository files navigation

Trio-Spark — Fast judgment for the next move

Try Trio-Spark · API Docs · Pricing · Latest release

Trio-Spark is a Situated World Model built for fast judgment. Give it the state of an environment and 2–8 possible moves. In one pass, it returns the best next move and a probability for every choice.

Trio-Spark is currently available as a hosted API. Model weights and training code are not publicly released. This repository is its public home for API clients, integrations, evaluations, and community-built demos.

Text and visual decisions

Use model: "trio-spark" for text, a single image, or a short sequence of 2–4 video frames. It always runs the current release, so your integration improves without code changes. Tell Spark what matters and define the answers your application can act on. The same key and wallet cover text and vision at $0.042 per million billed input tokens; output is free.

The current release, v1.4, serves one model for text and vision. On thirteen public benchmarks it has the best score of four fast decision models on seven.

Trio-Spark accuracy on thirteen benchmarks against Jev 1.14, Clef-Flash and Clef

Method, footnotes and every number · API docs · Try hand gestures

Text decisions at volume

Route 1,000 support tickets

Trio-Spark v1.3 routes 1,000 support tickets

Every ticket gets one decision across eight team queues, with a probability for each. If the top probability is low, the ticket goes to a person instead.

1,000 tickets · 6 min 47 s · 94.7% match the human label · 33 to review · $0.0050

Run the demo · Recording details · Watch MP4

Moderate comments with a policy you can move

Trio-Spark v1.3 moderates 600 comments

Spark returns P(hide) for each comment. Two thresholds decide what is shown, reviewed or hidden. Moving the thresholds re-sorts every comment without calling the model again.

600 comments · 88.3% match human raters · 2.7% of fine comments auto-hidden · $0.0017

Run the demo · Recording details · Watch MP4

Front Door Watch

Trio-Spark front-door camera decisions

Four events at a front door, each judged from four frames: a delivery, two household members and a stranger at night. Only the stranger raises an alert. Uses the visual model.

46 seconds · four real model calls · about 2.5 s per decision

Run the demo · Recording details · Watch MP4

These runs are demos, not benchmarks. Each recording details file states its serving path and what was logged.

A little road trip · recorded via v1.2

Trio-Spark v1.2 chooses lanes from real game screenshots

One continuous 35-second run through the public API: 10 applied decisions, 2 coins and 1 collision. Screenshots in, three raw lane choices out; no scripted avoidance or fallback. This is an illustrative demo, not a benchmark.

Watch MP4 · GIF · Run it and inspect evidence

Visual demos · v1.1

Spark’s Little Road Trip

Spark’s Little Road Trip

A tiny robot takes the wheel. Spark sees game screenshots and chooses a lane; no obstacle coordinates or scripted avoidance are passed to the model. Recorded continuously with live visual inference on our production service, including the bonk. This is an illustrative game run, not a driving benchmark.

45 seconds of gameplay · 19 model decisions · 4 coins · 1 collision

Run the demo · Recording details · Watch MP4

Read a hand signal

Trio-Spark visual gestures

Watch moving hand footage alongside four recorded visual decisions and their probabilities. Dataset captions were removed before inference.

22 seconds · four real model calls

Run the demo · Recording details · Watch MP4

Watch a crossing change

Trio-Spark crossing decisions

Six chronological video windows show a pedestrian wave followed by vehicles and pedestrians moving through the crossing together. The display updates from recorded model responses and preserves the measured request timing.

30 seconds · six real model calls · four frames per window

Run the demo · Recording details · Watch MP4

These v1.1 videos replay real calls to our deployed visual inference service. The recording details identify the serving path, inputs and timings. Their runnable examples use the public API. Source footage credits and licenses are included with each demo.

Text-driven demos · v1.0

The following v1.0 videos replay real production API runs with presentation overlays. Their decisions use structured text state.

Autonomous drone

Trio-Spark autonomous drone demo

Spark chose tactical maneuvers while a simulated quadrotor followed a moving rover through an obstacle field. A separate 500 Hz reflex controller retained collision avoidance.

65 s · 25 model calls · 75.7 m flown · 0 collisions · course completed

Run this demo · Measured evidence · Watch MP4

Browser agent

Trio-Spark browser agent demo

Spark read the visible page state, opened the requested category, selected the requested book, and stopped when the goal was visibly complete.

4.002 s · 3 model calls · 2 browser actions · autonomous DONE

Run this demo · Measured evidence · Watch MP4

Robot arm

Trio-Spark robot arm demo

Spark repeatedly chose the next manipulation skill from fresh MuJoCo state: approach, grasp, lift, carry, lower, release, and withdraw. The simulator evaluated physical success independently.

13.68 s · 13 model calls · physical success · 0 forbidden contacts

Run this demo · Measured evidence · Watch MP4

More recorded production runs

These compact runs show the same decision API in games, operations, and a GUI safety workflow:

Each directory includes a sanitized decision record and measured evidence. The videos replay captured production responses with presentation timing.

Build with Trio-Spark

Create an API key in the Trio-Spark console, then follow the API docs.

export TRIO_SPARK_API_KEY=tf_...

python - <<'PY'
from clients.python.trio_spark import decide

result = decide(
    task="Keep the machine safe while completing the current operation.",
    state={"temperature_c": 84, "load_pct": 91, "vibration": "rising"},
    choices={
        "continue": "Continue at the current speed",
        "slow": "Reduce speed and keep observing",
        "stop": "Stop the machine now",
    },
    session_id="machine-line:shift-42",
)

print(result["choice_id"])
print(result["probabilities"])
PY

The dependency-free Python client lives at clients/python/trio_spark.py. The request/response schema, limits, errors, and pricing are documented in the API docs. Account management and live usage remain in the Trio-Spark console.

Reproduce the public benchmarks

The evals/ harness runs the hosted production API against pinned public dataset revisions and records accuracy, calibration, latency, billed tokens, cost, model version, and raw responses. Start with a small smoke before spending credits on a complete split:

python3 -m pip install -r evals/requirements.txt
python3 evals/run.py --benchmark sst2 --limit 10 --output runs/sst2-smoke

See evals/README.md for the reproducibility contract and the exact commands used for full runs.

New integrations use trio-spark, which always runs the current release; the exact release is reported in each response's model_version. Earlier identifiers (trio-spark-preview, trio-spark-v1.0 to trio-spark-v1.3) remain accepted for existing clients.

How Spark fits into an agent

environment signals → structured state → Trio-Spark → next move → executor
                              ↑                         │
                              └──── fresh feedback ─────┘

Spark makes a bounded decision. Your application defines the state, allowed moves, executor, and safety controls. The same API can therefore support software agents, games, robots, industrial systems, and other environments where the next move matters.

Contribute a demo

We welcome demos that use Trio-Spark in new environments. A useful contribution should make the model's role easy to understand and the run easy to verify.

  1. Build the demo against the hosted Trio-Spark API.
  2. Add it under demos/<demo-name>/ with setup and reproduction instructions.
  3. Include a compact evidence file with the task, number of API calls, measured latency, outcome, and relevant environment checks.
  4. Include a short MP4 and a 16:9 poster under assets/demos/ when the result is visual.
  5. State clearly which signals were sent to Spark and which controls remained deterministic.
  6. Open a pull request using the demo template.

Do not commit API keys, account data, raw credentials, or private endpoints. A successful demo should be a recorded real run rather than a scripted animation presented as model output.

See CONTRIBUTING.md for the complete checklist.

Repository structure

clients/          minimal API clients
demos/            reproducible integrations and measured evidence
assets/demos/     shareable videos, posters, and checksums

The current demos use structured signals derived from their environments: depth-derived flight telemetry, visible browser DOM state, and simulator geometry plus contacts. They do not claim direct end-to-end control from raw camera pixels.

License

MachineFi-authored code is licensed under Apache-2.0. The demo adapters target MIT-licensed upstream projects. See THIRD_PARTY.md for exact repositories and revisions.

About

Trio-Spark — fast judgment for the next move

Resources

Contributing

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages