Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Not Diamond Model Routing API

The Model Routing API from Not Diamond — 1 operation(s) for model routing.

Not Diamond Model Routing API is one of 4 APIs that Not Diamond publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Model Routing. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and an API reference.

This API exposes 1 operation across 1 path, and defines 4 schemas. It is described by OpenAPI 3.0.1, at version 2.0.

Requests are made against a single base URL, https://api.notdiamond.ai/v2.

1 operations 1 paths 4 schemas 1 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.1
API Version
2.0
Base URL
https://api.notdiamond.ai/v2
Authentication
HTTP Bearer
Terms of Service
Resource Areas
1

Authentication & Security 1

Not Diamond Model Routing API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (bearerAuth). By default, every request must be authenticated.

  • bearerAuth — Not Diamond API key passed as a Bearer token.

Paths & Operations 1

Across 1 path, the API surfaces 1 operation — 1 POST. Each is listed below with its method, path, parameters, and response codes.

Model Routing 1
POST
/modelRouter/modelSelect
Route a prompt to the best model.
modelSelect body → 200401422

Schemas 4

The contract defines 4 schemas that model the data the API accepts and returns. The most detailed are ModelSelectRequest (10 properties), LLMProvider (7 properties), ModelSelectResponse (2 properties), Message (2 properties). Each schema is shown below with its type and property counts.

Message
object
An OpenAI-format chat message.
2 properties 2 required
ModelSelectResponse
object
2 properties
ModelSelectRequest
object
10 properties 2 required
LLMProvider
object
A candidate provider/model that the router may select.
7 properties 1 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

notdiamond-model-routing-api-openapi.yml Raw ↑

Other APIs Not Diamond publishes across the network.

Not Diamond Custom Routers API
Not Diamond Feedback API
Not Diamond Models API