Skip to content

FactQL AI Explained: Verified Answers, API and Pricing

AINewss Editorial Team

FactQL AI is a text-to-SQL harness that executes and verifies every query before returning an answer, with the SQL, rows and lineage attached. This guide covers its plan-draft-execute-verify pipeline, supported sources, REST API and MCP server, fail-closed tenant isolation, spend limits and the plans listed in December 2026.

View 1 reference
0 views 0 likes

Allow the functional cookie to save your likes. Privacy details

Illustration of a database query being executed and verified with visible SQL code and result rows.

What is FactQL AI?

FactQL AI is a harness around a language model that turns a question into SQL, runs it against your data, and returns the answer together with the query, the rows and the lineage behind them. Its stated promise is that a number is executed and checked before you see it, rather than generated from pattern matching.

The product is aimed at developers putting AI near real data: internal tools, agents and applications where a confident wrong number is expensive. You can start with an uploaded CSV or Excel file before connecting a production database, which lowers the cost of evaluating it.

How does FactQL AI verify an answer?

The pipeline has six stages: plan, explore the schema with tools, draft a candidate query, execute and verify, correct or fail closed, then produce a grounded summary. If verification fails, the query loops back for a re-draft; if it still cannot be verified, the system declines instead of guessing.

This is the key difference from a plain text-to-SQL endpoint. The agent runs the query before the answer is shown, self-corrects a bad query, and constrains the written summary to the returned result set. Every response ships the SQL that ran, so you can check the work against your own tables.

What does fail closed mean in FactQL AI?

Fail closed means the system refuses to answer when it cannot verify one, instead of producing a plausible figure. FactQL describes a red failure state on the path from execution to verification, labeled declined when no verified answer exists. The reason is returned to the caller, so the failure can be diagnosed rather than silently ignored.

That behavior matters more than raw accuracy for audit-sensitive use. A declined answer plus a reason is actionable: you can clarify the question, fix a metric definition or add the missing source. A fluent but invented number is not. FactQL also states that failures and thumbs-downs land in a worklist, and fixes can be promoted into certified metrics that an admin approves.

Which data sources does FactQL AI support?

FactQL lists five source types behind a single POST endpoint: read-only Postgres, read-only MySQL, a DuckDB gateway, versioned and S3-mirrored CSV or XLSX files, and PDFs with cited answers. The first query can run on an uploaded file without production credentials.

Source Access mode
Postgres Read-only
MySQL Read-only
DuckDB Single gateway endpoint
CSV / XLSX Versioned, S3-mirrored
PDF Cited answers

Coverage is narrower than a full data catalog, so confirm your warehouse dialect. The design choice is deliberate: fewer sources, with the same verification path across all of them.

What does a FactQL AI API call look like?

You send a question to https://api.factql.ai/query with an API key and receive SQL, tabular data, an explanation and lineage in one response. That single shape replaces a separate text-to-SQL call, a query execution step and a write-up. Here is the request format published on the official site.

curl -X POST https://api.factql.ai/query \
  -H "X-API-Key: $FACTQL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"q": "Top 5 customers by revenue this quarter vs last?"}'
{
  "sql": "SELECT customer_name, SUM(revenue) AS revenue ...",
  "data": { "columns": ["customer_name", "revenue"], "rows": [] },
  "explanation": "Acme Ltd leads, then Summit Shell ...",
  "lineage": { "tables": ["orders"], "measures": ["SUM(revenue)"] },
  "result": "success"
}

Official SDKs are published as @factql/factql for npm and factql for pip, alongside a Next.js starter.

Can you use FactQL AI from Claude or Cursor?

Yes. FactQL offers a hosted MCP server at https://api.factql.ai/mcp, which can be added to Claude, Claude Code, Cursor or VS Code as a remote Streamable HTTP connector. There is also a self-hosted package for teams that want to run the server themselves.

In Claude Code the published command is claude mcp add --transport http factql https://api.factql.ai/mcp. After signing in, the assistant receives the same verified answers, including the query and rows. Each ask is stateless, so a follow-up question needs to restate what it refers to.

How does FactQL AI handle isolation and spend limits?

FactQL states fail-closed multi-tenant isolation enforced on every query and checked by committed proofs that are regenerated after structural changes. Queries are SELECT-only, credentials are encrypted, and a request can carry an end-user identifier so each user in your application gets private conversations.

Spend control is explicit: plans count questions rather than tokens, and at the limit the API returns HTTP 402. The company says you are never invoiced for going over. That is a useful guarantee for embedded chat, where a runaway agent loop can otherwise generate a surprise bill.

How much does FactQL AI cost?

The site lists a free tier valid until 31 December, a Starter plan at $49 per month for 300 questions, a Scale plan at $299 per month for 2,000 questions, and a one-time $750 seven-day pilot. These prices were listed in December 2026 and may change.

Plan Price Allowance
Free $0 Up to $10 usage, until 31 December
Starter $49 / month 300 questions
Scale $299 / month 2,000 questions
Pilot $750 once Seven days, ten test questions

The pilot is billed only if the chat is live and answers at least seven of ten agreed questions correctly. Because limits are counted in questions, model token prices do not directly determine your bill.

Who is FactQL AI for, and what are the limits?

It suits teams embedding "ask your data" features into a product, or internal agents that must show their work. It is less suitable if you need writes, complex multi-warehouse joins across unsupported engines, or a full semantic layer with many governed metrics from day one.

The verification claim is strong but bounded: summaries are constrained to the result set, not to an independent truth about the business. A correct query over a mislabeled column still returns a wrong answer. Treat lineage and the visible SQL as the audit trail, and keep a human review step for metrics that drive decisions.

FAQ: common FactQL AI questions

These three questions cover the boundaries people ask about first: whether the system can change data, what happens when verification fails, and whether there is a low-cost way to try it. Each answer follows from the product page rather than from assumptions about similar tools.

Does FactQL AI write to my database?

No. The documented sources are read-only Postgres and MySQL, a read-only gateway and uploaded files. That limits blast radius but means you cannot use it for data entry.

What happens when FactQL AI cannot answer?

It returns a declined result with a reason rather than a guess. Vague questions may produce a needs-clarification result instead.

Is there a free way to test it?

Yes. The site offers an embeddable chat and a no-signup demo on sample film-rental data, with free usage until 31 December as listed in December 2026.

Bottom line

FactQL AI is most interesting for the discipline it imposes: execute the query, verify it, decline when uncertain, and show the SQL. The API and MCP paths are simple to try, and question-based pricing is predictable. Validate it against a small, well-understood dataset before connecting production tables.

References

  1. FactQL official sitefactql.ai