Skip to main content
D1 is Sqwish’s structured prediction API. Send a text or JSON context with a set of questions, then use the answers to classify, route, or score that context. For example, give D1 a customer message and ask whether it needs support, which team should handle it, and how urgent it is — all in one request.

Three question types

Mix question types in the same request. Answers preserve your question IDs and order, so they are straightforward to map back into your application.

Make your first prediction

Create an API key in the console, send a prediction, and read its answers. The quickstart walks through a complete request.
Access is currently by invitation. The staging deployment returns simulated answers for integration testing. Check simulated in GET /v1/models before interpreting results; sample scores and latency do not describe a real model.
The API reference documents each endpoint, including request fields, responses, and code examples. Read API behavior when integrating billing, retries, or pagination.