Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.laozhang.ai/llms.txt

Use this file to discover all available pages before exploring further.

API Overview

The Models API is used to obtain the AI model list and detailed information supported by the Laozhang API platform. Through this interface, you can view all available models, understand model features, and pricing information.

API Information

API Endpoint: GET https://api.laozhang.ai/v1/models Compatibility: Fully compatible with OpenAI official API format

Get Model List

Request Examples

curl https://api.laozhang.ai/v1/models \
  -H "Authorization: Bearer YOUR_API_KEY"

Response Format

{
  "object": "list",
  "data": [
    {
      "id": "gpt-4o",
      "object": "model",
      "created": 1687882411,
      "owned_by": "openai",
      "permission": [
        {
          "id": "modelperm-xxx",
          "object": "model_permission",
          "created": 1687882411,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": false,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "gpt-4o",
      "parent": null
    },
    {
      "id": "gpt-4o-mini",
      "object": "model",
      "created": 1687882411,
      "owned_by": "openai",
      "permission": [...],
      "root": "gpt-4o-mini",
      "parent": null
    }
  ]
}

Get Specific Model Information

Request Examples

curl https://api.laozhang.ai/v1/models/gpt-4o \
  -H "Authorization: Bearer YOUR_API_KEY"

Response Format

{
  "id": "gpt-4o",
  "object": "model",
  "created": 1687882411,
  "owned_by": "openai",
  "permission": [
    {
      "id": "modelperm-xxx",
      "object": "model_permission",
      "created": 1687882411,
      "allow_create_engine": false,
      "allow_sampling": true,
      "allow_logprobs": true,
      "allow_search_indices": false,
      "allow_view": true,
      "allow_fine_tuning": false,
      "organization": "*",
      "group": null,
      "is_blocking": false
    }
  ],
  "root": "gpt-4o",
  "parent": null
}

Response Field Descriptions

FieldTypeDescription
idstringUnique identifier for the model
objectstringObject type, fixed as “model”
createdintegerModel creation timestamp
owned_bystringModel owner
permissionarrayModel permission list
rootstringRoot model name
parentstringParent model name (if applicable)

Major Model Categories

OpenAI Series

OpenAI’s current flagship model family for complex reasoning, professional work, and code generation.Available Models:
  • gpt-5.5 - Latest flagship model
  • gpt-5.5-pro - Higher-compute version for hard problems and long workflows
Features:
  • Supports 1M context
  • Strong complex reasoning and coding-agent performance
  • Excellent multilingual capabilities
Stable general-purpose model families for production and cost-sensitive workloads.Available Models:
  • gpt-5 - Advanced general tasks
  • gpt-5-mini - Lightweight and efficient version
  • gpt-5-nano - High-volume low-cost tasks
  • gpt-4.1 - Classic stable model
  • gpt-4.1-mini - Fast, economical general-purpose choice
Features:
  • Compatible with common OpenAI SDKs
  • Covers high-quality and low-cost needs
  • Good code understanding capability
Models designed specifically for complex reasoning tasksAvailable Models:
  • o3-pro - Top-tier reasoning tasks
  • o3 - Complex reasoning, math, and programming
  • o4-mini - Lightweight reasoning and coding value
Features:
  • Powerful mathematical reasoning ability
  • Suitable for complex logical problems
  • Choose model tier based on task complexity

Claude Series

Anthropic’s current main model family for coding agents, complex reasoning, and long-text work.Available Models:
  • claude-opus-4-7 - Current most capable general model
  • claude-opus-4-7-thinking - Deep reasoning mode
  • claude-sonnet-4-6 - Balanced speed, cost, and intelligence
  • claude-sonnet-4-6-thinking - Sonnet reasoning mode
  • claude-haiku-4-5 - Fast lightweight version
Features:
  • Excellent code generation capability
  • Strong text understanding ability
  • Good fit for multi-step tool use and long workflows
Classic high-performance versions for existing projects. New integrations should prefer Opus 4.7 or Sonnet 4.6.Available Models:
  • claude-opus-4-5 - Classic high-performance version
  • claude-sonnet-4-5 - Stable coding version
  • claude-3-7-sonnet-latest - Legacy compatibility
  • claude-3-5-sonnet-latest - Legacy compatibility
Features:
  • Useful for smooth migration of existing configs
  • Not recommended as the first example for new docs

Google Gemini Series

Google’s latest Gemini series for multimodal, long-context, and tool-use workloads.Available Models:
  • gemini-3.1-pro-preview - Latest Pro preview model
  • gemini-3.1-pro-preview-customtools - Custom tools and bash workflows
  • gemini-3-flash-preview - Fast multimodal model
  • gemini-3.1-flash-lite-preview - Lightweight fast version
  • gemini-3-pro-image-preview - Image generation model
Features:
  • Long-context and multimodal input
  • Strong multimodal capabilities
  • gemini-3-pro-preview has been shut down; migrate to gemini-3.1-pro-preview
Stable production-ready Gemini 2.5 models.Available Models:
  • gemini-2.5-pro - Stable long-context and multimodal model
  • gemini-2.5-flash - Fast response version
  • gemini-2.5-flash-lite - Lightweight version
  • gemini-2.5-flash-image - Image generation version
Features:
  • Good fit for production and cost optimization
  • Complements Gemini 3 for stable vs. preview choices

Chinese Language Models

Large language models developed by AlibabaAvailable Models:
  • qwen-turbo - Fast version
  • qwen-plus - High-performance version
  • qwen-max - Most powerful version
Features:
  • Outstanding Chinese capabilities
  • Rich multi-domain knowledge
  • High cost-performance ratio
Models focused on code and reasoningAvailable Models:
  • deepseek-chat - Dialogue model
  • deepseek-coder - Code-specific
  • deepseek-v2.5 - Latest version
Features:
  • Outstanding code capabilities
  • Strong reasoning ability
  • Open-source friendly
Large models developed by Tsinghua UniversityAvailable Models:
  • glm-4 - Fourth generation model
  • glm-4v - Multimodal version
  • glm-3-turbo - Fast version
Features:
  • Strong academic capabilities
  • Excellent Chinese-English bilingual
  • Suitable for research applications

Image Generation Models

Text-to-Image

Model IDProviderFeaturesPrice
dall-e-3OpenAIHigh-quality image generation$0.04/image
dall-e-2OpenAIClassic image generation$0.02/image
gpt-4o-imageLaozhang API optimizedUltra-high cost-performance$0.01/image
flux-proFluxProfessional-grade quality$0.05/image
flux-devFluxDevelopment version$0.03/image
midjourney-v6MidjourneyStrong artistic quality$0.08/image
stable-diffusion-xlStability AIOpen-source high-quality$0.02/image

Image Understanding

Model IDProviderFeaturesPrice
gpt-4oOpenAIStrong image understanding$5/1M tokens
gpt-4o-miniOpenAILightweight image understanding$0.15/1M tokens
gemini-3.1-pro-previewGoogleMultimodal understanding, long contextCheck console
claude-opus-4-7AnthropicDocument image understanding, complex analysisCheck console

Audio Models

Text-to-Speech (TTS)

Model IDProviderFeaturesPrice
tts-1OpenAIStandard speech synthesis$15/1M characters
tts-1-hdOpenAIHigh-definition speech synthesis$30/1M characters

Speech-to-Text (STT)

Model IDProviderFeaturesPrice
whisper-1OpenAIMultilingual speech recognition$0.006/minute

Usage Recommendations

Select Models by Scenario

Daily Conversations

Recommended: GPT-5.5, Claude Sonnet 4.6, Gemini 3 Flash Preview Features: Fast response, low cost, good quality

Code Generation

Recommended: GPT-5.5, Claude Opus 4.7, Claude Sonnet 4.6 Features: Strong code understanding, high generation quality

Complex Reasoning

Recommended: GPT-5.5, o3-pro, Claude Opus 4.7 Thinking Features: Strong logical reasoning, suitable for math problems

Chinese Processing

Recommended: Tongyi Qianwen, GLM-4, Wenxin Yiyan Features: Excellent Chinese understanding and generation

Cost-Performance Selection

Recommended Models:
  • gpt-4.1-mini
  • claude-haiku-4-5
  • gemini-3.1-flash-lite-preview
  • deepseek-chat
Suitable Scenarios:
  • Large-scale text processing
  • Batch data analysis
  • Development and testing phases
Recommended Models:
  • gpt-5.5
  • claude-opus-4-7
  • claude-opus-4-7-thinking
  • gemini-3.1-pro-preview
Suitable Scenarios:
  • Critical business applications
  • Complex reasoning tasks
  • High-quality content generation
Recommended Models:
  • claude-sonnet-4-6
  • gpt-5
  • gemini-2.5-pro
  • o4-mini
Suitable Scenarios:
  • Daily business applications
  • Medium-complexity tasks
  • Long-term stable usage

Real-time Model Information Retrieval

You can obtain the latest model list and pricing information in real-time through the API:
import requests

# Get model list
response = requests.get(
    "https://api.laozhang.ai/v1/models",
    headers={"Authorization": "Bearer YOUR_API_KEY"}
)

models = response.json()
for model in models['data']:
    print(f"Model: {model['id']}, Owner: {model['owned_by']}")

Error Handling

Error CodeDescriptionSolution
401Invalid API KeyCheck if API Key is correct
403Insufficient permissionsConfirm API Key has access permissions
404Model does not existCheck if model ID is correct
429Too many requestsReduce request frequency
500Server errorRetry later or contact support

View Complete Model List

View detailed information and pricing for all 200+ AI models

Start Using Chat API

Learn how to call models using Chat Completions API