Chat and text generation

Build assistants, summaries, document answers and structured extraction with the right TokenRex chat model.

By Apirex Team · Updated · Sources checked

On this page
TokenRex

What chat models do

Chat models read a conversation and generate the next answer. Use them for support, translation, drafting, document questions, sentiment analysis and coding assistance inside your app. A model does not know your private business documents unless your app supplies them. For a knowledge base, retrieve relevant passages and include them with the question.

Choose by workload

WorkloadStarting modelsTrade-off
Everyday, high-volume requestsgpt-6-luna or claude-haiku-5-5Low cost and quick replies; test hard cases before using them for critical work.
Balanced writing and codinggpt-6.1-terra or claude-sonnet-5-5More capability without automatically choosing the most expensive model.
Complex professional workgpt-6.2-sol or claude-opus-5-5Useful for harder reasoning; allow time and eligible credits.
Most demanding analysisgpt-6.2-astra or claude-fable-5-1Compare with cheaper options on real examples; more effort is not a correctness guarantee.
Multimodal and long-context tasksA suitable Gemini model from the catalog belowCheck the exact model’s input support and endpoint restrictions.

Conversation and streaming

Send the system instructions and relevant user/assistant history on each stateless request. Keep instructions short and place retrieved evidence before the new question. Streaming shows answer fragments as they arrive; it reduces perceived waiting, not necessarily total cost or completion time. Keep the submit control disabled while a request is active and handle a stream ending unexpectedly.

json
{
  "model": "gpt-6-luna",
  "messages": [
    {"role": "system", "content": "Answer only from the supplied help articles. Say when information is missing."},
    {"role": "user", "content": "Help article: Returns are accepted within 14 days. Question: Can I return after 10 days?"}
  ],
  "reasoning_effort": "low",
  "stream": true
}

Structured output and image understanding

Use strict JSON Schema when your app needs predictable fields; asking for JSON in a prompt alone is not schema validation. Validate the returned data before saving or acting on it. Image understanding uses a chat model that accepts pictures; image generation uses a separate image model. Check both the model and its request format before sending uploaded images or documents.

Fast variants and limitations

A -fast model is a separate serving choice with its own listed rate. It is not a thinking-level suffix. Some fast GPT-6.2 variants support Chat Completions only, without tools or web search. Gemini 4 Carbon, Hydrogen and Neon also have endpoint-specific restrictions. Unsupported settings should produce an error rather than silently changing the model.

Ask Apirex to build it

Text
Add a support assistant using TokenRex AI.
Check the live catalog and choose a low-cost chat model.
Answer only from my help articles and cite the matching passage.
Stream the response, preserve my question on failure, and prevent duplicate submissions.
Test an answer in the articles and a question the articles cannot answer.

Chat and reasoning models

Loading the live catalog…

Prices are estimates converted from TokenRex’s listed rates at ₹96 per US dollar and $0.30 per Rex credit. Actual requests follow reported usage and rounding. Token, character, image and duration prices are different units; compare within the same task. Catalog availability does not mean every feature is connected in your app.

Open TokenRex’s model catalog