Skip to Content
CosmicAC Logo
API referenceInference API

Model routes

Model catalog, endpoint health and usage statistics.

/v1/models

GET
/v1/models

Requires a team token issued by app-node. The optional X-Team-Id header narrows the scope to one of the token's teams.

Authorization

teamToken
headerttr-team-token<token>

Team token issued by app-node. Sent as the ttr-team-token header.

Query Parameters

search?string
offset?string
limit?string

Header Parameters

x-team-id?string

Team to act on. Must be one of the teams in the token. Optional.

Response Body

Default Response

Example Request
curl -X GET 'https://your-inference-url/v1/models' \  -H 'ttr-team-token: <team-token>'
Example Response200
Empty
GET
/v1/models/{endpoint_name}

Requires a team token issued by app-node. The optional X-Team-Id header narrows the scope to one of the token's teams.

Authorization

teamToken
headerttr-team-token<token>

Team token issued by app-node. Sent as the ttr-team-token header.

Path Parameters

endpoint_name*string
Length1 <= length

Header Parameters

x-team-id?string

Team to act on. Must be one of the teams in the token. Optional.

Response Body

Default Response

Example Request
curl -X GET 'https://your-inference-url/v1/models/string' \  -H 'ttr-team-token: <team-token>'
Example Response200
Empty

/v1/models/stats

GET
/v1/models/stats

Requires a team token issued by app-node. The optional X-Team-Id header narrows the scope to one of the token's teams.

Authorization

teamToken
headerttr-team-token<token>

Team token issued by app-node. Sent as the ttr-team-token header.

Query Parameters

period?string
Default"1h"
Value in"1h""6h""24h""7d""30d"
overwrite_cache?boolean

Header Parameters

x-team-id?string

Team to act on. Must be one of the teams in the token. Optional.

Response Body

Default Response

Example Request
curl -X GET 'https://your-inference-url/v1/models/stats' \  -H 'ttr-team-token: <team-token>'
Example Response200
Empty
GET
/v1/models/stats/{endpoint_name}

Requires a team token issued by app-node. The optional X-Team-Id header narrows the scope to one of the token's teams.

Authorization

teamToken
headerttr-team-token<token>

Team token issued by app-node. Sent as the ttr-team-token header.

Path Parameters

endpoint_name*string
Length1 <= length

Query Parameters

period?string
Default"1h"
Value in"1h""6h""24h""7d""30d"
overwrite_cache?boolean

Header Parameters

x-team-id?string

Team to act on. Must be one of the teams in the token. Optional.

Response Body

Default Response

Example Request
curl -X GET 'https://your-inference-url/v1/models/stats/string' \  -H 'ttr-team-token: <team-token>'
Example Response200
Empty