How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Edgee Tokens API

Token estimation endpoints

Edgee Tokens API is one of 7 APIs that Edgee publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Tokens. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and authentication docs.

This API exposes 2 operations across 2 paths, and defines 8 schemas. It is described by OpenAPI 3.2.0, at version 1.0.0.

Requests are made against a single base URL, https://edgee.io.

2 operations 2 paths 8 schemas 2 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
1.0.0
Base URL
https://edgee.io
Authentication
HTTP Bearer, API Key
Resource Areas
1

Authentication & Security 2

Edgee Tokens API declares 2 security schemes for authenticating requests. It accepts HTTP bearer tokens (JWT) (bearerAuth). An API key is passed in the header as x-api-key (apiKeyAuth). By default, every request must be authenticated.

  • bearerAuth — Bearer authentication header of the form Bearer , where is your API key. More info [here](/docs/api-reference/authentication)
  • apiKeyAuth — Anthropic-style API key authentication using the x-api-key header

Paths & Operations 2

Across 2 paths, the API surfaces 2 operations — 2 POST. Each is listed below with its method, path, parameters, and response codes.

Tokens 2

Token estimation endpoints

POST
/v1/messages/count_tokens
Count tokens (Anthropic format)
countTokensMessages body → 200400401403
POST
/v1/count_tokens
Count tokens
countTokens body → 200400401

Schemas 8

The contract defines 8 schemas that model the data the API accepts and returns. The most detailed are CreateMessageRequest (7 properties), CountTokensRequest (4 properties), AnthropicTool (3 properties), MessageParam (2 properties). Each schema is shown below with its type and property counts.

ToolChoice
object
1 required
ErrorResponse
object
Error response. The error object follows OpenAI's error envelope shape; the gateway additionally populates type (Anthropic-style category) and param when appli…
1 property 1 required
CreateMessageRequest
object
7 properties 3 required
MessageParam
object
2 properties 2 required
AnthropicTool
object
3 properties 2 required
ContentBlock
object
1 required
CountTokensResponse
object
1 property 1 required
CountTokensRequest
object
4 properties 1 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

edgee-tokens-api-openapi.yml Raw ↑

Other APIs Edgee publishes across the network.

Edgee Console API
Edgee Chat API
Edgee Compress API
Edgee Messages API
Edgee Models API
Edgee Responses API
Where this information came from

This is an independent, third-party profile of Edgee Tokens API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.