Skip to content
Hot eventWatching

OpenRouter tests text-to-SQL agent across six models

1 reports1 reporting sourcesUpdated 2 d ago

Start here

AI digest

OpenRouter ran a text-to-SQL agent on six current models through its tool-calling API on October 22, 2026, using a synthetic shop database and 22 questions with known answers. Across completed runs, the agent answered 95% correctly from the schema alone (244 of 256) and 99% when given a five-line note about data quirks (246 of 248); counting provider errors, 93.2% of all 264 attempts succeeded. With the notes, openai/gpt-6-luna answered all 44 runs correctly at $0.16 per 1,000 questions, matching anthropic/claude-sonnet-5.5 at $6.20. OpenRouter cautions that 44 runs per model on one synthetic database are too few to rank models, and recommends rerunning your own questions on two or three before choosing. OpenRouter also advises opening the database connection in read-only mode or as a SELECT-only user, because a check on the prompt or query text can be bypassed. During the run, 24 of 88 requests to google/gemini-3.8-flash failed with a provider server_error, so its scores cover only completed runs.

Generated from reports · updated 2 d ago

Report timeline

Follow the reports to see the event from different sides.

December 3
  1. OpenRouter AnnouncementsPicks
    OpenRouter tests a text-to-SQL agent across six models and shows how data notes raise accuracy to 99%

    OpenRouter ran a text-to-SQL agent on six current models through its tool calling API on October 22, 2026, using a synthetic shop database and 22 questions with known answers. Across completed runs, the agent answered 95% correctly from the schema alone (244 of 256) and 99% with a five-line note about data quirks (246 of 248). With the notes, openai/gpt-6-luna answered all 44 runs correctly at $0.16 per 1,000 questions, the same score as anthropic/claude-sonnet-5.5 at $6.20, and the post recommends a read-only database connection because a check on the query text can be bypassed.

Heat for this event

Current, comparable range
3
Peak, comparable range
10December 3 09:00
Change in 24 hours
-49%

The trend compares the same participants over hours observed continuously, so its range can be narrower than the current heat count. Hover or tap the chart for hourly heat; the arrow keys move through it.