Skip to Content
API/models/:id

/models/:id

Returns information about a specific model.

Endpoint

GET /v1/models/:id

Response

Returns a model object:

{ "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/gpt-4o