Skip to main content
TokModel exposes a single base URL through which you can reach every supported endpoint. All requests require a TokModel API key, and all request and response bodies use JSON. The sections below describe the connection details, list every available endpoint, and document the error codes you may encounter.

Base URL

All API requests are sent to:

Authentication

Include your API key in the Authorization header of every request:
You can create and manage API keys from the TokModel console.

Content type

Set Content-Type: application/json on all requests that include a body. Multipart file upload endpoints (audio transcription, audio translation, image edits, and image variations) use multipart/form-data instead.

Endpoints

Error codes

TokModel returns standard HTTP status codes. When a request fails, the response body contains an error object with a message field describing the problem.

Example error response