Skip to Content

Reasoning - MyTokenGate

1. Overview

Reasoning models are AI systems based on deep learning that solve complex tasks through logical deduction, knowledge association, and context analysis. Typical applications include mathematical problem solving, code generation, logical judgment, and multi-step reasoning scenarios.

2. Current Support

MyTokenGate currently offers models with strong reasoning capabilities:

Claude Series

  • claude-opus-4-6 - Strongest reasoning capability
  • claude-sonnet-4-6 - Balanced performance and cost
  • claude-haiku-4-5-20251001 - Fast response

GPT Series

  • gpt-4o - Multimodal reasoning
  • gpt-4.1 - Enhanced reasoning
  • gpt-5 series - Latest models

Gemini Series

  • gemini-2.5-pro - Complex reasoning tasks
  • gemini-3.1-pro-preview - Latest preview

3. Usage Example

from openai import OpenAI client = OpenAI( base_url='https://gateway.mytokengate.com/v1', api_key='your-api-key' ) response = client.chat.completions.create( model="claude-sonnet-4-6", messages=[ {"role": "user", "content": "Analyze step by step: If all A are B, and all B are C, then are all A C?"} ], max_tokens=4096, stream=True ) for chunk in response: if chunk.choices[0].delta.content: print(chunk.choices[0].delta.content, end="", flush=True)

4. Best Practices

  • Break down complex tasks: Split complex problems into multiple steps
  • Clear instructions: Provide clear context and requirements
  • Temperature setting: For reasoning tasks, set temperature: 0.5-0.7
  • Stream output: Use streaming for long reasoning tasks

5. Notes

  • Ensure you use the correct API key for authentication
  • Different models have different context window limits
  • Check Models for the latest supported models
Last updated on