GET
/
v0
/
endpoint-details
curl --request GET \
  --url 'https://api.unify.ai/v0/endpoint-details?endpoint=claude-3.5-haiku@anthropic' \
  --header "Authorization: Bearer $UNIFY_KEY"
{
    "endpoint": "claude-3.5-haiku@anthropic",
    "context_window": 200000,
    "input_cost": 0.8,
    "output_cost": 4
}

Extracts cost and context window data for the provided endpoint .

The endpoint is the endpoint name in the form <model>@<provider>.

Authorizations

Authorization
string
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

endpoint
string

Name of the endpoint.

curl --request GET \
  --url 'https://api.unify.ai/v0/endpoint-details?endpoint=claude-3.5-haiku@anthropic' \
  --header "Authorization: Bearer $UNIFY_KEY"
{
    "endpoint": "claude-3.5-haiku@anthropic",
    "context_window": 200000,
    "input_cost": 0.8,
    "output_cost": 4
}