Skip to content

TextCortex API guides

Build a DeepSeek retrieval app with the TextCortex API

Use DeepSeek through TextCortex’s API in a retrieval application. Supply authorized context and compare other models through the same integration.

Build a DeepSeek retrieval app with the TextCortex API

The practical takeaway

Build on a multi-model API.

Your application retrieves the context; TextCortex provides the model API. Use a DeepSeek EU-hosted route when required, and keep the option to evaluate other model families.

Retrieve authorized context before generating

Search your document store using the current user’s permissions. Select the passages needed for the question and pass them to the model as context with stable source identifiers.

Keep authorization in application code. The model should only see material the user is allowed to access, and a model response must not be used to decide that access.

Call the selected DeepSeek model

Configure the TextCortex base URL and choose a DeepSeek identifier available to your account. For European processing requirements, use the intended EU-hosted deployment.

Send the question, retrieved passages and instructions in your chat request. Tell the model to distinguish supported answers from missing information, then validate the output before presenting it.

Make citations verifiable

Ask the model to reference the source identifiers supplied with the passages. Resolve those identifiers to links in application code, and reject references that were not in the retrieved set.

This approach avoids letting generated text invent a trusted destination. It also lets you inspect whether a correct-looking answer is actually supported by the supplied material.

Compare model choices with the same retrieval layer

Keep the retrieved passages fixed while evaluating DeepSeek against GPT, Claude, Gemini, Kimi or GLM through TextCortex. Score factual support, refusal when context is insufficient, output validity and latency.

The DeepSeek EU API page covers model access. For the client setup, follow the OpenAI-compatible API guide.

Questions

Your next questions, answered.

Is TextCortex limited to open-source models?

No. The API provides access to proprietary model families such as GPT, Claude and Gemini alongside open-weight families such as Kimi, GLM, DeepSeek and MiMo. Use GET /models to list the identifiers available to your account.

Can I use an OpenAI-compatible client?

Yes. Configure the client with the TextCortex base URL and API key. Use a TextCortex model identifier and the parameters supported by that model. Model discovery, chat completions and responses are documented in the API reference.

How do I start using the API?

Sign up for TextCortex, create an API key in your account settings, and use https://api.textcortex.com/v1 as the base URL. Retrieve the model catalog, select a model identifier and send a chat-completion request.

TextCortex AI

One integration. Your choice of models.

Sign up for TextCortex, create an API key and start building with the models your application needs.

Sources and documentation

Product documentation and provider references used for this guide. Reviewed on 5 October 2026.