Speed benchmark
Moth DocsGuides
How long the Claude models take to start and to finish a short reply through Moth's public API, before and after Moth changed how these models are served, with the script to check it yourself.
What was measured
- Time to the first word, the seconds from sending a request to its first
content_block_deltaevent, the first piece of the reply. - Time to the whole reply, the seconds to its
message_stopevent. - Claude Opus 5.5, Claude Sonnet 5.5 and Claude Haiku 5.5, ten streamed calls each, with the prompt "Reply with OK." and
max_tokensset to 16. - Every call went to the public Messages endpoint with an ordinary key, the way your own code reaches it. The clock starts just before each call, so it includes opening the connection.
Results
The before figures are Moth's own records of the same prompt sent to the same endpoint on the morning of 26 November 2026: one call per model, not streamed, sent together with tests of other models, so part of each may be time spent waiting in line. Every Claude 5.5 call in Moth's records from 19 to 26 November, 13 in all, took 11.4 to 39.2 seconds from request to the end of the reply.
The after figures are ten streamed calls per model on 26 November 2026, from 18:52 to 18:55 UTC, after the change shipped. Not every call is that quick: one of the ten Claude Opus 5.5 calls took 15.4 seconds, the slowest Claude Sonnet 5.5 call 3.2 seconds and the slowest Claude Haiku 5.5 call 5.0 seconds.
Run it yourself
The script sends the same ten calls to each model with your own key, prints the seconds to the first word and to the whole reply for every call, then the medians. It needs bash 5 or later and curl. Each call is billed at the model's usual price, and a reply this short costs a fraction of a cent.
#!/usr/bin/env bash # Times ten streamed replies from each Claude model through Moth's Messages endpoint. # Needs bash 5 or later and curl, with your key in MOTH_API_KEY. set -eu export LC_ALL=C API="https://api.runmoth.si/v1" secs() { awk -v a="$1" -v b="$2" 'BEGIN { printf "%.2f", b - a }'; } median() { sort -n | awk '{ v[NR] = $1 } END { if (NR) printf "%.2f", (NR % 2 ? v[(NR + 1) / 2] : (v[NR / 2] + v[NR / 2 + 1]) / 2) }'; } for model in claude-opus-5.5 claude-sonnet-5.5 claude-haiku-5.5; do firsts=(); wholes=() for run in 1 2 3 4 5 6 7 8 9 10; do start=$EPOCHREALTIME; first=""; stop="" while IFS= read -r line; do line=${line%$'\r'} if [ "$line" = "event: content_block_delta" ] && [ -z "$first" ]; then first=$EPOCHREALTIME; fi if [ "$line" = "event: message_stop" ]; then stop=$EPOCHREALTIME; fi done < <(curl -sS --no-buffer "$API/messages" \ -H "x-api-key: $MOTH_API_KEY" \ -H "Content-Type: application/json" \ -d "{\"model\": \"$model\", \"max_tokens\": 16, \"stream\": true, \"messages\": [{\"role\": \"user\", \"content\": \"Reply with OK.\"}]}") if [ -z "$first" ] || [ -z "$stop" ]; then echo "$model call $run: no full reply"; continue; fi firsts+=("$(secs "$start" "$first")"); wholes+=("$(secs "$start" "$stop")") echo "$model call $run: first word $(secs "$start" "$first") s, whole reply $(secs "$start" "$stop") s" done echo "$model median: first word $(printf '%s\n' "${firsts[@]}" | median) s, whole reply $(printf '%s\n' "${wholes[@]}" | median) s" done
What these figures show. One run of short replies, from one place, at one time of day. Longer prompts, longer replies, another hour or another network give other numbers, so run the script where your own code runs.