Skip to content
THE-CODE API

Capabilities and compatibility

The-Code API provides a common integration surface for models from multiple providers. Availability and supported parameters depend on the models enabled for your account.

EndpointCapabilityCompatibility notes
GET /v1/modelsModel discoveryAuthoritative catalog for the calling key, including request contracts
POST /v1/chat/completionsChat and tool callingOpenAI-compatible requests; streaming where the model and requested features support it
POST /v1/responsesResponsesDocumented non-streaming subset; do not assume stateful or background support
POST /v1/embeddingsEmbeddingsRequires a model advertising embeddings
GET /v1/requests/{public_id}Request statusPoll asynchronous gateway requests using the same API key

Managed video features are also available through the customer portal and documented API routes, subject to account access. They are separate from the OpenAI-compatible chat and embeddings endpoints.

Inspect the model contract

Function calling, structured output, reasoning settings, output limits, and parallel tool behavior vary by model. Read the selected model's live request contract before sending optional parameters. The same SDK method does not imply identical features across providers.

Use exact model IDs for exact routing. An alias allows administrator-managed routing. Do not silently substitute a different model when a requested model is unavailable.

See the detailed API guide, OpenAPI reference, and agent guide.