OpenAI SDK
The OpenAI SDK works against Verse with one change: the base URL. There is no account and no key; any string will do. Every answer is run on one computer and re-run on a second, and it comes back with both their signatures.
Python
from openai import OpenAI
client = OpenAI(base_url="https://api.versemesh.org/v1", api_key="anything")
r = client.chat.completions.create(
model="smollm2-135m-instruct",
messages=[{"role": "user", "content": "What is a volcano?"}],
)
print(r.choices[0].message.content)
print(r.model_extra["verse"]["state"]) # reproduced
JavaScript
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.versemesh.org/v1", apiKey: "anything" });
const r = await client.chat.completions.create({
model: "smollm2-135m-instruct",
messages: [{ role: "user", content: "What is a volcano?" }],
});
console.log(r.choices[0].message.content, r.verse.state);
Vercel AI SDK
import { createOpenAICompatible } from "@ai-sdk/openai-compatible";
import { generateText } from "ai";
const verse = createOpenAICompatible({ name: "verse", baseURL: "https://api.versemesh.org/v1", apiKey: "anything" });
const { text } = await generateText({ model: verse("smollm2-135m-instruct"), prompt: "What do bees make?" });
streamText works too; the answer arrives in one piece, once it has been re-run. Both ran against the network on
28 November 2026 (ai 7.0.184): 16.7 s and 16.3 s.
GET /v1/models names the one model. Any tool that takes an OpenAI base URL works the same way.
One real run
On 28 November 2026 the Python SDK (openai 3.60.0) ran the code above:
| Answer | ”A volcano is a natural geological feature that forms when magma from the Earth’s mantle rises to the surface…” |
| Time | 18.7 s |
state | reproduced: the second computer got the same bits and the same work |
| Output hash | 7656809808af6f63dfddf736b66c0ac76cdc588209f2648317a86d2d19bc3f69 |
| Work | 22,755,671,147 units of fuel |
The day before, the network had answered the same question for the landing page’s recording. Its output hash and its work were the same, to the last digit: the same answer, bit for bit, a day apart. Asked once more from the JavaScript SDK (openai 7.65.0), the answer came back in 0.2 s with the same hash: a question already re-run is answered from that run, with its receipt and verdict.
What differs from OpenAI
| OpenAI | Verse | |
|---|---|---|
| Key | Required | None: any string |
| Models | Many, large | One: SmolLM2-135M-Instruct, on CPU |
| Time | Seconds or less | About 18 s; at once if asked before |
| Input | The whole conversation | The last user message, at most 500 bytes |
| Output | Up to the model’s limit | At most 96 tokens, no usage |
| Sampling | temperature, seed | None: the answer is fixed by the model and the question |
| Streaming | Token by token | stream: true works; the answer arrives in one piece, once re-run |
| What ran | Not shown | A receipt signed by the computer that ran it, a verdict signed by the one that re-ran it |
When to pick each
Pick OpenAI, or any large provider, when you need a capable model and an answer in seconds. SmolLM2-135M is small, and it is often wrong.
Pick Verse when you need to show what produced an answer: which program, which input, and that a second computer got the same bits. Tests that must not drift, audit trails, agents that hand answers to other agents. It is a free testnet, and today the second computer is one we run.
Check the receipt
verse.receipt names the program, the input and the output by their hashes; verse.signed_verdict is the
second computer’s answer. Check a receipt verifies both signatures and the hashes in your browser.
The same calls without the SDK, and the other three (run a program, store and fetch bytes):
Connect an agent.