Skip to main content

Model Overview

OpenAI is one of the world’s leading AI research institutions, offering multiple high-performance large language models. From GPT-5.5 to GPT-5, GPT-4.1, and the reasoning-focused o3/o4 series, OpenAI provides solutions for various scenarios.
Full Compatibility: Laozhang API is 100% compatible with OpenAI’s official API format. Simply replace https://api.openai.com/v1 with https://api2.laozhang.ai/v1 to use it.

Model Classification

GPT-5.5 Series

Latest flagship model for complex professional work
  • Core Features:
    • Supports text and image input
    • 1M context window
    • Strong coding and agentic reasoning
    • Excellent multilingual capabilities
  • Pricing:
    • Check the console for real-time pricing
  • Suitable Scenarios:
    • Complex task handling
    • Image understanding and analysis
    • Long document processing
    • Professional content generation
Fast economical model for everyday workloads
  • Core Features:
    • Fast response speed
    • Good general-purpose quality
    • Fast response speed
    • Suitable for cost-sensitive use
  • Pricing:
    • Check the console for real-time pricing
  • Suitable Scenarios:
    • Daily conversations
    • Batch processing
    • Development and testing
    • Cost-sensitive applications

GPT-5 / GPT-4.1 Series

Current high-performance model with powerful reasoning capabilities
  • Core Features:
    • 1M context window
    • Strong logical reasoning
    • Excellent code understanding
    • Multi-domain knowledge
  • Pricing:
    • Check the console for real-time pricing
  • Suitable Scenarios:
    • Complex reasoning tasks
    • Code generation and review
    • Academic research
    • Professional consulting
Classic stable model for production workloads
  • Core Features:
    • 128K context window
    • Outstanding text understanding
    • Creative writing capabilities
    • Accurate information extraction
  • Pricing:
    • Check the console for real-time pricing
  • Suitable Scenarios:
    • High-quality content creation
    • Important decision support
    • Detailed analysis reports

o3 / o4 Reasoning Models

Reasoning-specialized model with PhD-level thinking ability
  • Core Features:
    • Strongest reasoning capabilities
    • Multi-step thinking process
    • Excellent math problem solving
    • Complex logic analysis
  • Pricing:
    • Check the console for real-time pricing
  • Special Limitations:
    • Does not support streaming output
    • Does not support system role
    • Does not support temperature parameter
  • Suitable Scenarios:
    • Mathematical olympiad problems
    • Scientific research
    • Code algorithm optimization
    • Complex decision analysis
Lightweight reasoning model, extreme cost-performance
  • Core Features:
    • Fast reasoning speed
    • current price shown in console than o3-pro
    • Good code and math capabilities
    • Suitable for daily reasoning tasks
  • Pricing:
    • Check the console for real-time pricing
  • Suitable Scenarios:
    • Daily math problems
    • Code logic optimization
    • Reasoning practice
    • Education and tutoring

GPT-4o Series (Classic Multimodal)

Classic lightweight multimodal model for legacy compatibility
  • Core Features:
    • Fast response speed
    • Fast response speed
    • Stable performance
    • Suitable for high-frequency calls
  • Pricing:
    • Check the console for real-time pricing
  • Suitable Scenarios:
    • Simple conversations
    • Content summarization
    • Text translation
    • Customer service bots

Code Examples

Basic Text Dialogue

Image Understanding

Long Document Analysis

Creative Writing

Complex Code Review

Mathematical Problem Solving

O1 Series Special Notes:
  • Do not support system role messages
  • Do not support streaming output
  • Do not support temperature, top_p and other creativity parameters
  • max_tokens defaults to model’s maximum value

Usage Tips

1. Choose the Right Model

2. Optimize Prompts

Good Example:
Bad Example:
For complex tasks, break down into multiple steps:
Provide examples to help the model understand your needs better:

3. Parameter Tuning

number
default:"1"
Control randomness of output:
  • 0: Most deterministic (translation, summarization)
  • 0.7: Balanced (general dialogue)
  • 1.0-1.5: More creative (creative writing)
integer
Maximum number of tokens to generate:
  • Short responses: 500-1000
  • Medium responses: 2000-4000
  • Long responses: 8000+
number
default:"1"
Nucleus sampling, alternative to temperature:
  • 0.1: Conservative
  • 0.9: More diverse
  • Generally use either temperature or top_p, not both
number
default:"0"
Reduce repetition:
  • 0: No penalty
  • 0.5-1.0: Moderate penalty
  • 2.0: Maximum penalty

Cost Optimization

1. Choose Cost-Effective Models

Daily Tasks

Use GPT-4.1 Mini or GPT-4o Mini for simple daily tasks
  • Lower cost than flagship models
  • Good quality
  • Faster speed

Reasoning Tasks

Use o4-mini instead of o3-pro
  • 80% price reduction
  • Good reasoning capability
  • Suitable for most scenarios

2. Control Context Length

3. Set Reasonable max_tokens

Error Handling

Common Errors

Cause: Invalid or missing API KeySolution:
Cause: Request rate limit exceededSolution:
Cause: Parameter format errorSolution:
  • Check if model name is correct
  • Verify message format is correct
  • Ensure parameters meet requirements

Retry Mechanism

Streaming Response

For long responses, use streaming output for better user experience:

Best Practices

  1. Choose the Right Model
    • Simple tasks → GPT-4o Mini
    • Complex tasks → GPT-4o
    • Reasoning tasks → O1 series
  2. Optimize Prompts
    • Clear and specific instructions
    • Provide examples
    • Break down complex tasks
  3. Control Costs
    • Only pass necessary context
    • Set reasonable max_tokens
    • Use cost-effective models
  4. Error Handling
    • Implement retry mechanism
    • Catch and handle different error types
    • Set reasonable timeout
  5. User Experience
    • Use streaming output
    • Show loading status
    • Provide feedback