Skip to content

TextCortex API guides

Call TextCortex’s multi-model API from n8n

Connect n8n to TextCortex with an HTTP Request node. Use OpenAI-compatible chat completions for GPT, Claude, Gemini and open-weight models.

Call TextCortex’s multi-model API from n8n

The practical takeaway

Build on a multi-model API.

Use n8n to orchestrate the workflow and TextCortex to provide model access. Keep credentials in n8n’s credential store and select the model your workflow needs.

Configure the HTTP Request node

Create a TextCortex key in account settings. Use an n8n header-auth credential so the key is not stored as ordinary workflow data.

  • Method: POST.
  • URL: https://api.textcortex.com/v1/chat/completions
  • Authorization header: Bearer followed by your API key.
  • Body content type: JSON.

Send a minimal chat request

Replace MODEL_ID_FROM_YOUR_ACCOUNT with an identifier returned by GET /models. Keep stream set to false for a simple request-response workflow.

{
  "model": "MODEL_ID_FROM_YOUR_ACCOUNT",
  "messages": [
    {
      "role": "user",
      "content": "Hello"
    }
  ],
  "stream": false
}

Validate the response before continuing

Read the response content from the returned choices. If a later workflow step expects structured data, parse and validate that data before sending it to another system.

Define an error branch for authentication failures, invalid requests, timeouts and rate limits. Avoid retrying a write action just because the model step was repeated.

Use model choices across workflows

A classification workflow and a long-form analysis workflow can use different model identifiers through the same endpoint. Store approved choices in workflow configuration.

Keep EU-hosted routes selected for workflows that require European inference. Review the location of n8n itself and any connected services separately from the model endpoint.

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.