Skip to content

TextCortex API guides

Build document workflows with the TextCortex API

Build document extraction and review workflows using TextCortex API access. Route each step to a suitable model through one integration.

Build document workflows with the TextCortex API

The practical takeaway

Build on a multi-model API.

A document workflow can use several model calls without several provider integrations. Keep orchestration in your application and use TextCortex for the model selected at each step.

Split the workflow into bounded steps

Separate document preparation, classification, extraction and final synthesis. Give each model step a clear input, expected output and failure path.

For example, classify a document before running a specialized extractor. Validate the extracted data before asking another model to produce a summary. This keeps one failed step from silently corrupting later output.

Match each step to a model

Use one approved model for simple classification and another for difficult analysis when the evaluation justifies it. Both requests can use the same TextCortex client.

Keep the mapping in configuration. Apply regional requirements to every step and avoid assuming that a replacement model inherits the previous model’s processing arrangement.

Validate outputs between calls

Use schemas and application rules to check model output before it becomes an input to another step. Route invalid output to a bounded retry or human review.

Record the document identifier, model and step outcome so you can diagnose failures without retaining unnecessary sensitive content in logs.

Connect the API to your orchestrator

Call the API from your own service, a queue worker or an automation tool such as n8n. Keep credentials in the execution environment and make external write actions idempotent.

Follow the n8n API guide for an HTTP example. The cost-per-task guide helps estimate a workflow with multiple model calls.

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.