API Compatibility
Choose the right Cortecs-compatible API
Cortecs exposes multiple compatible APIs at the same base URL:
https://api.cortecs.ai/v1Send your Cortecs API key as a Bearer token. Use the exact model ID returned by the Models API.
Choose an API
Agents, reasoning, and tool calling
Responses [BETA]
/responses
Preferred for new agent workflows when the client supports the Responses API
General chat and broad client compatibility
Chat Completions
/chat/completions
Fallback for clients that only implement the OpenAI Chat Completions format
Anthropic-compatible clients
Anthropic Messages
/messages
Use for clients such as Claude Code that speak the Anthropic Messages protocol
Model and capability discovery
Models
/models
Resolve current model IDs, modalities, context sizes and supported features
The three generation APIs do not use identical request or response shapes. For example, Responses accepts input and returns typed output items; the OpenAI SDK also provides output_text. Chat Completions accepts messages and returns choices.
OpenAI-compatible does not mean that every OpenAI-specific feature is available. Only use fields documented in the Cortecs API reference. In particular, the Cortecs Responses API does not currently document OpenAI-managed storage or conversation resources.
Compatibility checklist
If a Responses integration does not work:
Confirm that the client sends requests to
/v1/responses, not/v1/chat/completions.Confirm that the selected model supports every requested capability in the Models API.
Remove OpenAI-specific fields that are not documented by Cortecs.
If the client only supports Chat Completions, switch to
/v1/chat/completionsand translateinputtomessages.Use
/v1/messagesonly when the client implements the Anthropic Messages format.
See the Models API for model discovery, Advanced Usage for routing controls, Model Fallback for retry behavior, and Security & Compliance for data-handling controls.
Last updated