curl --request GET \
--url https://api.reflection.ai/openai/v1/models/{model} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.reflection.ai/openai/v1/models/{model}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.reflection.ai/openai/v1/models/{model}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "Beam-501B-A23B",
"object": "model",
"created": 1791158400,
"owned_by": "reflection",
"shutdown_date": null,
"context_length": 262144,
"max_output_tokens": 131072,
"reasoning": {
"supported_efforts": [
"max",
"xhigh",
"high",
"medium",
"low"
],
"default_effort": "medium",
"mandatory": true
}
}Retrieve a model
Retrieves one model by its identifier, with the same information the models list returns for it.
curl --request GET \
--url https://api.reflection.ai/openai/v1/models/{model} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.reflection.ai/openai/v1/models/{model}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.reflection.ai/openai/v1/models/{model}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "Beam-501B-A23B",
"object": "model",
"created": 1791158400,
"owned_by": "reflection",
"shutdown_date": null,
"context_length": 262144,
"max_output_tokens": 131072,
"reasoning": {
"supported_efforts": [
"max",
"xhigh",
"high",
"medium",
"low"
],
"default_effort": "medium",
"mandatory": true
}
}Authorizations
A Reflection API key, sent in the Authorization header as Bearer <API key>. Create a key for your project from the Reflection platform.
Path Parameters
The identifier of the model, as returned in the models list. An identifier that contains / may be sent as written.
Response
The model.
Describes a model offering that can be used with the API.
The model identifier, which can be referenced in the API endpoints.
The object type, which is always model.
model The Unix timestamp (in seconds) when the model was published, or 0 if its publication time is not announced.
The organization that owns the model.
The date when the model will shut down, or null if not announced.
The largest request the model supports, in tokens, counting the prompt and the generated output together. A request longer than the model accepts is rejected rather than truncated. Omitted if not announced.
x >= 1The most tokens the model supports generating in response to one request. Omitted if not announced.
x >= 1The model's reasoning-effort configuration. Omitted if the model does not announce its supported efforts.
Show child attributes
Show child attributes