Model API
List models
List text and image models available to the calling account. Copy each public id into requests. Capabilities, pricing and rate limits are dynamic; read the current model data rather than assuming one profile applies to every model.
GET
/
models
List models
curl --request GET \
--url https://api.nomask.ai/v1/models \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.nomask.ai/v1/models"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.nomask.ai/v1/models', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "list",
"data": [
{
"id": "<string>",
"type": "text",
"object": "model",
"created": 0,
"owned_by": "nomask",
"name": "<string>",
"description": "<string>",
"icon_svg": "<string>",
"catalog_added_at": "2023-11-07T05:31:56Z",
"is_beta": true,
"is_testing": true,
"deprecation_date": "2023-12-25",
"deprecation_notice_date": "2023-12-25",
"tags": [
"<string>"
],
"context_length": 123,
"max_output_tokens": 123,
"rate_limit": {
"name": "<string>",
"requests_per_minute": 123,
"tokens_per_minute": 123
},
"capabilities": {
"vision": true,
"video": true,
"reasoning": true,
"reasoning_always_on": true,
"supported_reasoning_efforts": [
"minimal"
],
"function_calling": true,
"prompt_caching": true,
"streaming": true
},
"video_input": {
"max_duration_seconds": 1800,
"max_file_size_mb": 32,
"allowed_formats": [
"mp4"
],
"max_videos_per_request": 1
},
"pricing": {
"usd_per_1m_input_tokens": 123,
"usd_per_1m_output_tokens": 123,
"usd_per_1m_cached_input_tokens": 123,
"tier_threshold_tokens": 123,
"usd_per_1m_input_tokens_over": 123,
"usd_per_1m_output_tokens_over": 123,
"usd_per_1m_cached_input_tokens_over": 123
}
}
]
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"param": "<string>"
}
}Authorizations
Create a NoMask API key at https://nomask.ai/api/keys. Keep it private; enter only your own key when sending a request.
⌘I
List models
curl --request GET \
--url https://api.nomask.ai/v1/models \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.nomask.ai/v1/models"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.nomask.ai/v1/models', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "list",
"data": [
{
"id": "<string>",
"type": "text",
"object": "model",
"created": 0,
"owned_by": "nomask",
"name": "<string>",
"description": "<string>",
"icon_svg": "<string>",
"catalog_added_at": "2023-11-07T05:31:56Z",
"is_beta": true,
"is_testing": true,
"deprecation_date": "2023-12-25",
"deprecation_notice_date": "2023-12-25",
"tags": [
"<string>"
],
"context_length": 123,
"max_output_tokens": 123,
"rate_limit": {
"name": "<string>",
"requests_per_minute": 123,
"tokens_per_minute": 123
},
"capabilities": {
"vision": true,
"video": true,
"reasoning": true,
"reasoning_always_on": true,
"supported_reasoning_efforts": [
"minimal"
],
"function_calling": true,
"prompt_caching": true,
"streaming": true
},
"video_input": {
"max_duration_seconds": 1800,
"max_file_size_mb": 32,
"allowed_formats": [
"mp4"
],
"max_videos_per_request": 1
},
"pricing": {
"usd_per_1m_input_tokens": 123,
"usd_per_1m_output_tokens": 123,
"usd_per_1m_cached_input_tokens": 123,
"tier_threshold_tokens": 123,
"usd_per_1m_input_tokens_over": 123,
"usd_per_1m_output_tokens_over": 123,
"usd_per_1m_cached_input_tokens_over": 123
}
}
]
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"param": "<string>"
}
}