A routing API for developers
Not Diamond’s developer docs describe an API that reads a
request and returns the model best suited to it from a list
you give. It recommends; you then make the model call
yourself with your own SDK. Python and TypeScript SDKs
install with pip install notdiamond or
npm install notdiamond, and calls use a Not
Diamond API key (quickstart).
You can train a custom router on your own evaluation data: inputs, each model’s responses and a score for each, from 15 samples up to 10,000 per training job. A prompt adaptation endpoint rewrites a prompt written for one model so it works on others.