Models
A list of models available to use for the current user.
list1User not found.
GET /v1/models HTTP/1.1
Host: api.nexos.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"object": "list",
"data": [
{
"id": "GPT 5.6 Sol",
"nexos_model_id": "123e4567-e89b-12d3-a456-426614174000",
"object": "model",
"created": "1686935002",
"updated": "1686935002",
"owned_by": "openai",
"timeout_ms": 1,
"stream_timeout_ms": 1,
"max_tokens": 1,
"context_length": 1,
"pricing": {
"input_cost_per_token": "text",
"output_cost_per_token": "text",
"input_cost_per_second": "text",
"output_cost_per_second": "text",
"cache_write_cost_per_token": "text",
"cache_write_cost_per_token_1h_ttl": "text",
"cache_read_cost_per_token": "text"
},
"endpoints": [
"chat_completion"
],
"region": "EU"
}
],
"total": 1
}A list all models including ones not available for the current user.
listUser not found.
GET /v1/models/all HTTP/1.1
Host: api.nexos.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"object": "list",
"data": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"object": "global_model",
"created": "1686935002",
"updated": "1686935002",
"owned_by": "openai",
"name": "My favorite model",
"timeout_ms": 1,
"stream_timeout_ms": 1,
"max_tokens": 1,
"context_length": 1,
"pricing": {
"input_cost_per_token": "text",
"output_cost_per_token": "text",
"input_cost_per_second": "text",
"output_cost_per_second": "text",
"cache_write_cost_per_token": "text",
"cache_write_cost_per_token_1h_ttl": "text",
"cache_read_cost_per_token": "text"
},
"endpoints": [
"chat_completion"
],
"region": "EU",
"provider": "OpenAI",
"available": true
}
]
}The ID of the model.
Model fallbacks configuration found.
Unique identifier for the model
123e4567-e89b-12d3-a456-426614174000The ID of the model to associate with the company.
987f6543-d21c-45e7-b678-123456789abcThe time the model fallbacks configuration was created.
2024-11-19T10:00:00ZThe time the model fallbacks configuration was last updated.
2024-11-19T12:00:00ZInvalid request.
GET /v1/management/models/{model}/fallbacks HTTP/1.1
Host: api.nexos.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"fallback_ids": [
"987f6543-d21c-45e7-b678-123456789abc"
],
"created_at": "2024-11-19T10:00:00Z",
"updated_at": "2024-11-19T12:00:00Z"
}The ID of the model.
The ID of the model to associate with the company.
987f6543-d21c-45e7-b678-123456789abcModel fallbacks configuration successfully created.
Unique identifier for the model
123e4567-e89b-12d3-a456-426614174000The ID of the model to associate with the company.
987f6543-d21c-45e7-b678-123456789abcThe time the model fallbacks configuration was created.
2024-11-19T10:00:00ZThe time the model fallbacks configuration was last updated.
2024-11-19T12:00:00ZInvalid request or fallback configurations already associated with the model.
Model not found.
POST /v1/management/models/{model}/fallbacks HTTP/1.1
Host: api.nexos.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 51
{
"models": [
"987f6543-d21c-45e7-b678-123456789abc"
]
}{
"id": "123e4567-e89b-12d3-a456-426614174000",
"fallback_ids": [
"987f6543-d21c-45e7-b678-123456789abc"
],
"created_at": "2024-11-19T10:00:00Z",
"updated_at": "2024-11-19T12:00:00Z"
}The ID of the model.
Model fallbacks configuration deleted successfully
No content
Invalid request.
DELETE /v1/management/models/{model}/fallbacks HTTP/1.1
Host: api.nexos.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
The ID of the model.
The ID of the model to associate with the company.
987f6543-d21c-45e7-b678-123456789abcModel fallbacks configuration successfully updated.
Unique identifier for the model
123e4567-e89b-12d3-a456-426614174000The ID of the model to associate with the company.
987f6543-d21c-45e7-b678-123456789abcThe time the model fallbacks configuration was created.
2024-11-19T10:00:00ZThe time the model fallbacks configuration was last updated.
2024-11-19T12:00:00ZInvalid request.
PATCH /v1/management/models/{model}/fallbacks HTTP/1.1
Host: api.nexos.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 51
{
"models": [
"987f6543-d21c-45e7-b678-123456789abc"
]
}{
"id": "123e4567-e89b-12d3-a456-426614174000",
"fallback_ids": [
"987f6543-d21c-45e7-b678-123456789abc"
],
"created_at": "2024-11-19T10:00:00Z",
"updated_at": "2024-11-19T12:00:00Z"
}Last updated

