Skip to main content
POST

Authorizations

Authorization
string
header
required

Your Bespoke Labs API key.

Body

application/json

The model field picks the model, and the model decides what the state and the questions must look like.

state
required

The text or JSON to ask about. Nimble reads a JSON state as JSON text.

questions
object
required

Your question IDs mapped to questions. The answers use the same IDs.

model
enum<string>
default:nimble-latest

nimble-latest is the newest general model, which is nimble-v3 now. nimble-v3 and bespokelabs/Bespoke-Nimble-9B-v3 stay on this model, and bespokelabs/Bespoke-Nimble-9B is the previous model. The response repeats this name.

Available options:
nimble-latest,
nimble-v3,
bespokelabs/Bespoke-Nimble-9B-v3,
bespokelabs/Bespoke-Nimble-9B

Response

The answers, keyed by question ID.

model
string
required

The model name from the request.

answers
object
required

Question IDs mapped to answers.

usage
object
required
request_id
string

Fact check and code search only. The same ID as the x-request-id header.

effort
enum<string>

Code search only. low for nimble-codegrep-lite, medium for nimble-codegrep, and high for nimble-codegrep-max.

Available options:
low,
medium,
high
details
object

Code search only. Question IDs mapped to details about how each item was scored.

escalation_skipped
boolean

Code search only. Always false in a 200 response.