Authentication
All API requests require authentication using a Bearer token. You can obtain your API key from the MatterAI Console.
Authorization: Bearer MATTERAI_API_KEY
Keep your API key secure and never expose it in client-side code. Get your API
key from the MatterAI console.
Request
Path Parameters
The ID of the model to retrieve.
Response
A description of the model.
The object type, which is always "model".
The input modalities supported by the model.
The maximum context length for the model.
The maximum output length for the model.
The output modalities supported by the model.
supported_sampling_parameters
The sampling parameters supported by the model.
The features supported by the model.
OpenRouter integration details.
The OpenRouter slug for the model.
The datacenters where the model is available.
The country code of the datacenter.
The Unix timestamp (in seconds) of when the model was created.
The organization that owns the model.
Pricing information for the model.
The price per prompt token.
The price per completion token.
The price for input cache reads.
The price for input cache writes.
Example Request
curl --location 'https://api.matterai.so/v1/models/axon-code' \
--header 'Authorization: Bearer MATTERAI_API_KEY'
Example Response
{
"id": "axon-code",
"name": "Axon Code",
"description": "Axon Code is super intelligent LLM model for coding tasks",
"object": "model",
"input_modalities": [
"text"
],
"context_length": 256000,
"max_output_length": 32768,
"output_modalities": [
"text"
],
"supported_sampling_parameters": [
"temperature",
"top_p",
"top_k",
"repetition_penalty",
"frequency_penalty",
"presence_penalty",
"seed",
"stop"
],
"supported_features": [
"tools",
"structured_outputs",
"web_search"
],
"openrouter": {
"slug": "matterai/axon"
},
"datacenters": [
{
"country_code": "US"
}
],
"created": 1750426201,
"owned_by": "matterai",
"pricing": {
"prompt": "0.000001",
"completion": "0.000004",
"image": "0",
"request": "0",
"input_cache_reads": "0",
"input_cache_writes": "0"
}
}
Error Responses
The API returns standard HTTP status codes to indicate success or failure:
Invalid or missing API key.
The requested model was not found.
Too many requests. Please slow down.
Server error. Please try again later.
Example error response:
{
"error": {
"message": "Model not found",
"type": "invalid_request_error",
"code": "model_not_found"
}
}