Files

1 line
3.0 KiB
JSON

{"text":["Models","Cohere","command-a-plus","Command A+","Command A+ is Cohere's flagship model for enterprise agentic workflows.","Get API key","Try in Chat","Specifications","Context Window","192K","Modalities","text","Price","$0.334 in · $1.67 out, per million tokens","Model ID","cohere/command-a-plus","Quick start","Get an API key →","TypeScript","Python","cURL","Go","import","OpenAI","from","openai","const","client = new","({","apiKey","process.env.HANZO_API_KEY","baseURL","https://api.hanzo.ai/v1","})","response =","await","client.chat.completions.","create","model","messages","[{","role","user","content","Hello!","}]","console.","log","response.choices",".message.content","client = OpenAI","api_key=os","environ","HANZO_API_KEY","],","base_url=","response = client","chat","completions","model=","messages=","print","response","choices","].","message","curl","https://api.hanzo.ai/v1/chat/completions","-H","Content-Type: application/json","Authorization: Bearer","-d","\"model\": \"cohere/command-a-plus\",","\"messages\": [{\"role\": \"user\", \"content\": \"Hello!\"}]","package","main","context","fmt","os","github.com/sashabaranov/go-openai","func","()","cfg := openai","DefaultConfig","Getenv","))","cfg","BaseURL =","client := openai","NewClientWithConfig","resp","_ := client","CreateChatCompletion","Background","(),","ChatCompletionRequest","Model","Messages","[]","ChatCompletionMessage","Role","ChatMessageRoleUser","Content","},","Println","Choices","Message","More from Cohere","Command A","256K","Command A is an open-weights 111B parameter model with a 256k context window focused on delivering great performance across agentic, multilingual, and coding use cases. Compared to other leading proprietary...","Command R (08-2024)","128K","command-r-08-2024 is an update of the [Command R](/models/cohere/command-r) with improved performance for multilingual retrieval-augmented generation (RAG) and tool use. More broadly, it is better at math, code and reasoning and...","Command R+ (08-2024)","command-r-plus-08-2024 is an update of the [Command R+](/models/cohere/command-r-plus) with roughly 50% higher throughput and 25% lower latencies as compared to the previous Command R+ version, while keeping the hardware footprint...","Command R7B (12-2024)","Command R7B (12-2024) is a small, fast update of the Command R+ model, delivered in December 2024. It excels at RAG, tool use, agents, and similar tasks requiring complex reasoning...","North Mini Code (free)","North Mini Code is Cohere's first agentic coding model and the debut of its North family. A sparse mixture-of-experts model with 30B total parameters and 3B active, it is optimized...","View all Cohere models →","Use Command A+ via Hanzo AI","One API key. Every major model. OpenAI-compatible. Start free.","Get an API key","Browse All Models"],"links":["/models","/models/cohere","https://platform.hanzo.ai/api-keys","/chat","/models/cohere/command-a","/models/cohere/command-r-08-2024","/models/cohere/command-r-plus-08-2024","/models/cohere/command-r7b-12-2024","/models/cohere/north-mini-code:free"]}