TextCortex

App · 4 actions

Write, rewrite, summarize and translate text with TextCortex's AI models, choose from the models your account can use, and check your API credit.

Actions

ActionWhat it does
Generate textAsk a TextCortex model to write something: an answer, a rewrite, a summary, a translation or a draft.
Get credit balanceCheck how much API credit is left on the account.
Get modelGet one model, including the country it is served from.
List modelsList every model this API key can generate text with.

Generate text

Ask a TextCortex model to write something: an answer, a rewrite, a summary, a translation or a draft. Returns the text and how many tokens it used.

Inputs

ModelmodeltextRequired
The model that writes the answer. Pick one, or give its id from an earlier step.
PromptprompttextRequired
What you want the model to do or answer.
System promptinstructionstext
Standing instructions for how to answer, such as the role, tone or format. Optional.
Temperaturetemperaturenumber
How varied the wording is, from 0 (most predictable) to 1 (most varied). Leave empty for the model's own default.From 0 to 1.
Top Ptop_pnumber
Only consider the most likely words that add up to this share, from 0 to 1. Change this or Temperature, not both. Optional.From 0 to 1.
Max output tokensmax_output_tokensnumber
The most the model may write (a token is about three quarters of a word). At least 16. Reasoning models also spend these on thinking, so leave it empty unless you need a hard cap.At least 16.

Outputs

input_tokensnumber
Tokens in the prompt
modeltext
The model that answered
output_tokensnumber
Tokens in the answer
response_idtext
TextCortex's id for this answer
statustext
completed, or incomplete if cut off
texttext
The model's answer
total_tokensnumber
Tokens used in all
truncatedtrue/false
True if the model hit 'Max output tokens' mid-answer
Example output
{
  "input_tokens": 23,
  "model": "claude-sonnet-5-5",
  "output_tokens": 28,
  "response_id": "resp_3925af9407844ff086b65ce34d6ea8f7",
  "status": "completed",
  "text": "A steel bottle that keeps drinks cold all day.",
  "total_tokens": 51,
  "truncated": false
}

Get credit balance

Check how much API credit is left on the account.

Inputs

None.

Outputs

billing_sourcetext
What the key is billed to, such as api_credits
can_buy_creditstrue/false
Whether the account can top up API credit
currencytext
The currency, such as EUR
remaining_creditsnumber
API credit left, in the currency below
Example output
{
  "billing_source": "api_credits",
  "can_buy_credits": true,
  "currency": "EUR",
  "remaining_credits": 1.0
}

Get model

Get one model, including the country it is served from.

Inputs

Modelmodel_idtextRequired
The model to read. Pick one, or give its id from an earlier step.

Outputs

modelobject
The model
Example output
{
  "model": {
    "deployment_jurisdiction": "US",
    "id": "claude-sonnet-5-5",
    "owned_by": "textcortex",
    "released_at": "2026-09-27T00:00:00Z",
    "served_from_country_code": "US"
  }
}

List models

List every model this API key can generate text with.

Inputs

None.

Outputs

countnumber
How many models
modelslist
The models
Example output
{
  "count": 1,
  "models": [
    {
      "deployment_jurisdiction": "US",
      "id": "claude-sonnet-5-5",
      "owned_by": "textcortex",
      "released_at": "2026-09-27T00:00:00Z",
      "served_from_country_code": "US"
    }
  ]
}

On this page