Skip to content

TextCortex API · Models and routing

Your OpenAI client. A wider model catalog.

Connect to TextCortex’s OpenAI-compatible API for GPT, Claude, Gemini and open-weight models. Discover models and send requests from one integration.

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

Change the endpoint. Expand your model choice.

Set the TextCortex base URL and API key in your OpenAI-compatible client. Choose an identifier from the model catalog and use the same connection for supported models across providers.

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.

Three parts of the connection

Keep these settings on your server. The base URL already includes /v1; SDK clients append the endpoint themselves.

  • Base URL: https://api.textcortex.com/v1
  • Authentication: Authorization: Bearer <api_key>
  • Model: an identifier returned by GET /models

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)

Use the endpoint your application needs

GET /models lists the catalog. POST /chat/completions accepts chat requests, and POST /responses provides the documented Responses interface. Review each endpoint separately when moving an existing application.

Start with a minimal request, then add streaming, tool use or structured output where the chosen model supports it. A shared request format simplifies integration while each model retains its own capabilities.

Switch models without another provider integration

Keep the client and authentication configuration in one place. Change TEXTCORTEX_MODEL to another available identifier when evaluating GPT, Claude, Gemini, Kimi, GLM, DeepSeek or MiMo.

Use the model catalog guide for model families and the inference router guide for application-level selection. EU-hosted routes are available for workloads with European inference requirements.

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.