ai newsDo., 15. Okt.
EilmeldungMeta and Apple team up to make Muse AI models run better on Macs

Gemini 4 Argon bringt 3D-Rendering und Kontext von einer Million Token

Google DeepMind hat Gemini 4 Argon vorgestellt, das laut Autor einen architektonischen Sprung für langfristige Softwareentwicklung und 3D-Räumliches-Verstehen markiert. Das Modell verarbeitet bis zu eine Million Input- und eine Million Output-Token, eine Verfünffachung der Output-Kapazität gegenüber 64K.

dev.toDienstag 21:48 · 13.10.DE4 Min. Lesezeit
Bild: dev.to

Google DeepMind recently introduced Gemini 4 Argon ( gemini-4-argon ), marking a major architectural leap for long-horizon software engineering and 3D spatial reasoning:

Instead of just reading the benchmarks, I built and open-sourced the Gemini 4 Argon Cookbook & Live 3D Starter Kit from scratch -- complete with live playable WebGL 3D simulations, a 100% pure-Python zero-dependency 3D raytracer, a procedural 3D Wavefront.obj Pagoda generator, and production 1M-token continuation loops.

Generating up to 1,000,000 output tokens in a single logical generation requires resilient connection handling. Gemini 4 Argon introduces the Long-Decode Continuation Protocol in the Gemini Interactions API v2.

When a generation slice reaches a per-turn boundary while the model still has more content to emit, interaction.status returns "incomplete" along with a cryptographic continuation_token. You simply pass that continuation_token into the next client.interactions.create call to seamlessly resume decoding:

from google import genai client = genai. Client () def generate_up_to_1m_tokens ( prompt: str ) -> str: full_output: list [ str ] = [] continuation_token: str | None = None while True: kwargs = { " model ": " gemini-4-argon ", " generation_config ": { " thinking_level ": " high ", " thinking_summaries ": " auto ", " max_output_tokens ": 1_000_000, }, } if continuation_token is None: kwargs [ " input " ] = prompt else: kwargs [ " continuation_token " ] = continuation_token interaction = client. interactions. create ( ** kwargs ) for item in interaction. outputs or []: if getattr ( item, " type ", None ) == " text ": full_output. append ( item. text ) if interaction. status == " incomplete " and getattr ( interaction, " continuation_token ", None ): continuation_token = interaction. continuation_token continue break return "". join ( full_output ) Enter fullscreen mode Exit fullscreen mode Full Runnable Examples:

With client.interactions.create, reasoning is no longer hidden in raw text blocks. Gemini 4 Argon emits structured thought outputs containing both a human-readable summary and a verifiable signature ( thought_signature ) so multi-turn agentic workflows can preserve exact reasoning state across turns:

stream = client. interactions. create ( model = " gemini-4-argon ", input = " Design a lock-free ring buffer in Rust and prove linearizability. ", stream = True, generation_config = { " thinking_level ": " high ", " thinking_summaries ": " auto ", }, ) for chunk in stream: if chunk. event_type == " content.delta ": if chunk. delta. type == " thought_summary ": print ( f " [Thought] { chunk. delta. content. text } " ) elif chunk. delta. type == " thought_signature ": print ( f " [Signature] { chunk. delta. signature [: 24 ] }... " ) elif chunk. delta. type == " text ": print ( chunk. delta. text, end = "", flush = True ) Enter fullscreen mode Exit fullscreen mode Full Runnable Example: examples/02_deep_reasoning_thoughts.py

To test Gemini 4 Argon's 3D spatial reasoning, I created four 100% original, built-from-scratch 3D engines and interactive simulations:

examples/08_procedural_3d_pagoda_temple.py uses pure Python math ( sin, cos, parabolic catenary curves) with zero external dependencies to procedurally generate a multi-tiered 3D architectural Pagoda Temple as a standard Wavefront.obj 3D mesh, complete with upturned eaves, corner pillars, and a golden finial spire. You can also explore it live in the browser under Preset #2 in the Main 3D Studio.

Play Live in Your Browser | Source ( 09_3d_physics_shatter_arena.html )

Click anywhere in 3D space to fire high-velocity kinetic spheres via 3D raycasting ( THREE.Raycaster ). On impact, a 240-shard crystal monolith fractures using radial impulse transfer, gravity, angular momentum, floor restitution, expanding shockwave rings, and built-in.webm video recording.

Play Live in Your Browser | Source ( 10_3d_robotics_ik_simulator.html )

Solves 2-link planar + base yaw 3D inverse kinematics ( acos / atan2 law of cosines) and parabolic ballistic trajectories. Click Toss Payload at Target to watch the articulated 6-DOF robot arm track a moving target platform and launch payloads right into the bullseye.

examples/04_vanilla_3d_raytracer.py implements a complete 3D ray-tracing engine using only the Python standard library ( math, struct, zlib ) -- rendering recursive mirror reflections, Blinn-Phong specular highlights, soft area-light shadows, and a procedural checkerboard parquet floor directly to.ppm and.png.

In examples/07_multimodal_image_video_to_3d.py, you can pass any 2D photograph or video clip to gemini-4-argon with a strict JSON Schema ( response_schema ) to extract a 3D scene graph containing:

And in the Live 3D WebGL Studio, you can click Upload Image or Video -> 3D Mesh to turn any photo or video on your device into a live 3D depth-mapped point cloud in real time!

git clone https://github.com/RobinaMirbahar/gemini-4-argon-cookbook.git cd gemini-4-argon-cookbook pip install -r requirements.txt # 1. Generate a 3D Pagoda Temple Wavefront (.obj) mesh from scratch python examples/08_procedural_3d_pagoda_temple.py # 2. Render the 100% Pure-Python 3D Raytracer (.ppm /.png) python examples/04_vanilla_3d_raytracer.py # 3.

Run Multimodal Image/Video -> 3D Scene Reconstruction python examples/07_multimodal_image_video_to_3d.py --demo # 4. Run the 1M Token Long-Decode Continuation Protocol python examples/01_long_decode_continuation.py --demo Enter fullscreen mode Exit fullscreen mode What Are You Building First? Check out the full open-source repository at github.com/RobinaMirbahar/gemini-4-argon-cookbook and give it a star if you find it useful!

Let me know in the comments whether you're most excited about Gemini 4 Argon's 1M output token horizon, autonomous code auditing, or 3D spatial reasoning.

Originaltitel: Building a Live 3D & 1M-Token Engineering Cookbook with Google DeepMind's Gemini 4 ArgonQuelle: dev.to (dev.to). Original öffnen