The Sequrity Control Chat Completion API is compatible with the OpenAI Chat Completions API. This allows you to use Sequrity's security features while maintaining compatibility with existing OpenAI-based applications.
For the Anthropic Messages format, see the Messages API reference.
Endpoints
Endpoint
Provider
POST /control/{endpoint_type}/v1/chat/completions
Default
POST /control/{endpoint_type}/openai/v1/chat/completions
OpenAI
POST /control/{endpoint_type}/openrouter/v1/chat/completions
OpenRouter
POST /control/{endpoint_type}/sequrity_azure/v1/chat/completions
SEQURITY_API_KEY="${SEQURITY_API_KEY:-your-sequrity-api-key}"OPENROUTER_API_KEY="${OPENROUTER_API_KEY:-your-openrouter-key}"SERVICE_PROVIDER="openrouter"REST_API_URL="https://api.sequrity.ai/control/chat/${SERVICE_PROVIDER}/v1/chat/completions"curl-XPOST$REST_API_URL\-H"Authorization: Bearer $SEQURITY_API_KEY"\-H"Content-Type: application/json"\-H"X-Api-Key: $OPENROUTER_API_KEY"\-H'X-Features: {"agent_arch":"single-llm"}'\-d'{ "model": "openai/gpt-5-mini", "messages": [{"role": "user", "content": "What is the largest prime number below 100?"}] }'
SEQURITY_API_KEY="${SEQURITY_API_KEY:-your-sequrity-api-key}"OPENROUTER_API_KEY="${OPENROUTER_API_KEY:-your-openrouter-key}"SERVICE_PROVIDER="openrouter"REST_API_URL="https://api.sequrity.ai/control/chat/${SERVICE_PROVIDER}/v1/chat/completions"curl-XPOST$REST_API_URL\-H"Authorization: Bearer $SEQURITY_API_KEY"\-H"Content-Type: application/json"\-H"X-Api-Key: $OPENROUTER_API_KEY"\-H'X-Features: {"agent_arch":"dual-llm"}'\-d'{ "model": "openai/gpt-5-mini", "messages": [{"role": "user", "content": "What is the largest prime number below 100?"}] }'
Response
{"id":"gen-1769519573-03eFDboLr45TxWIgz76t","choices":[{"finish_reason":"stop","index":0,"message":{"content":"97\n\nExplanation: 99, 98, and 100 are composite ...","role":"assistant"}}],"created":1769519573,"model":"openai/gpt-5-mini","object":"chat.completion","usage":{"completion_tokens":186,"prompt_tokens":16,"total_tokens":202}}