OP Inference
API reference

Get a tool

GET
/v1/tools/{vendor}/{tool}

One tool, including the input it accepts. A tool your key may not use answers 404 tool_not_found, the same as one that does not exist.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Your API key, sent as Authorization: Bearer <key>.

Path Parameters

vendor*string
tool*string

Response Body

The tool.

application/json
  1. response

A model of modality tool. Every other field is the model's, as /v1/models/{id} lists it.

id*string
object*string
modality*string
pricing*
inputs?
[key: string]?any
curl -X GET "https://example.com/v1/tools/exa/search" \  -H "Authorization: Bearer $OP_API_KEY"
{  "id": "string",  "object": "tool",  "modality": "tool",  "pricing": {},  "inputs": {}}