aihubmix-Cohere-command-r
Cohere logo

Aihubmix Cohere Command R

aihubmix-Cohere-command-r
Cohere

Pricing

  • Input Tokens: $0.640 /M tokens
  • Output Tokens: $1.920 /M tokens

Input Modalities

  • Text

Output Modalities

  • Text

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="aihubmix-Cohere-command-r",
    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 aihubmix-Cohere-command-r cost?

On AIHubMix, aihubmix-Cohere-command-r costs $0.64 per million input tokens and $1.92 per million output tokens.