Baichuan4-Air
Baichuan logo

Baichuan4 Air

Baichuan4-Air
Baichuan

Pricing

  • Input Tokens: $0.160 /M tokens
  • Output Tokens: $0.160 /M tokens

Input Modalities

    Try this model

    Python
    import os
    from openai import OpenAI
    
    client = OpenAI(
        api_key=os.environ["AIHUBMIX_API_KEY"],
        base_url="https://aihubmix.com/v1",
    )
    
    response = client.chat.completions.create(
        model="Baichuan4-Air",
        messages=[
          {
            "role": "user",
            "content": "Hello, how are you?"
          }
        ],
        max_tokens=1024,
        stream=False,
    )
    
    print(response.choices[0].message.content)

    Frequently asked questions

    How much does Baichuan4-Air cost?

    On AIHubMix, Baichuan4-Air costs $0.16 per million input tokens and $0.16 per million output tokens.