llama-3.1-sonar-small-128k-online
Perplexity logo

Llama 3.1 Sonar Small 128K Online

llama-3.1-sonar-small-128k-online
Perplexity
On February 22, 2025, this model will be officially discontinued. The Perplexity AI official fine-tuned LLMA online interface is currently supported only at the api.aihubmix.com address.

Pricing

  • Input Tokens: $0.300 /M tokens
  • Output Tokens: $0.300 /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="llama-3.1-sonar-small-128k-online",
        messages=[
          {
            "role": "user",
            "content": "Hello, how are you?"
          }
        ],
        max_tokens=1024,
        stream=False,
    )
    
    print(response.choices[0].message.content)

    Frequently asked questions

    What is llama-3.1-sonar-small-128k-online?

    On February 22, 2025, this model will be officially discontinued. The Perplexity AI official fine-tuned LLMA online interface is currently supported only at the api.aihubmix.com address.