Skip to Content
API/models

/models

Lists the currently available models, and provides detailed information about each one.

Endpoint

GET /v1/models

Response

Returns a list of model objects:

{ "data": [ { "id": string, // The model identifier "name": string, // The model name "context_length": number, // The context length of the model "input_token_unit_price": number, // The cost per token for input in lamports (one lamport is 10^-9 SOL) "output_token_unit_price": number // The cost per token for output in lamports (one lamport is 10^-9 SOL) } ] }

Error Codes

  • 404 - Model not found
  • 500 - Server error

Example

curl -X GET https://api.octora.io/v1/models