Skip to content

TextCortex API · Models and routing

Build model choice into your product.

Give your software access to GPT, Claude, Gemini and open-weight models through TextCortex’s OpenAI-compatible API, with EU-hosted options.

One API. Every model family.
GPTOpenAI
ClaudeAnthropic
GeminiGoogle
GLM5.3
DeepSeek
KimiK3
MiMo
TextCortex
GPT, Claude, Gemini and open-weight models. Routed through TextCortex.

Why TextCortex

Your product experience. One model integration.

Keep your application and customer experience while TextCortex provides model API access. Add model choices to your product without maintaining separate provider clients.

01

Proprietary and open-weight models

Access GPT, Claude, Gemini, Kimi, GLM, DeepSeek, MiMo and more through TextCortex. Choose models from the catalog available to your account.

02

One OpenAI-compatible API

Use a familiar client, one TextCortex API key and a common base URL. Change the model identifier to switch between supported models.

03

EU-hosted model options

Use EU-hosted routes for European inference requirements. Hosting depends on the selected model and route; the wider catalog also includes other deployments.

Separate product logic from model access

Put the TextCortex client behind a server-side service in your application. Keep authentication, request construction and usage logging in that service so product features can share it.

The service can select a different model for each feature. A document parser, support assistant and code-review tool do not need to use the same model or generation settings.

Give customers choices you can support

Offer a curated model list rather than passing arbitrary identifiers through from the browser. Explain which models are available for each feature, and keep EU-hosted choices aligned with the customer’s requirements.

Store customer preferences in your application. Use your own authentication and authorization to decide which choices are allowed, and keep API credentials off public clients.

Measure usage at the product boundary

Associate requests with the feature and tenant that initiated them. Record the selected model, token usage and outcome without unnecessarily retaining sensitive prompts.

Use these measurements for application budgets and capacity planning. Confirm the API terms that apply to your use case before defining customer-facing pricing or service commitments.

Make your first API request

Create a TextCortex account and generate an API key in account settings. Install the OpenAI Python package on your server. Store the key in TEXTCORTEX_API_KEY and set TEXTCORTEX_MODEL to an identifier returned by GET /models.

This example keeps credentials in environment variables. The same client configuration works when you choose another supported model. Read the API reference for endpoint-specific parameters.

import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["TEXTCORTEX_API_KEY"],
    base_url="https://api.textcortex.com/v1",
)

for model in client.models.list():
    print(model.id)

response = client.chat.completions.create(
    model=os.environ["TEXTCORTEX_MODEL"],
    messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)

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.

Are all models in the catalog EU-hosted?

TextCortex offers EU-hosted model routes and a broader multi-provider catalog. Select the EU-hosted deployment required by your application; catalog membership alone does not establish where a particular request is processed.

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.