Cohere
Cohere의 Command 모델은 RAG를 위해 만들어졌습니다: 키 하나로 임베딩·리랭크·장문 채팅을 처리합니다. 체험 키는 만료되지 않고 카드도 필요 없지만, 라이선스는 프로토타입용이지 프로덕션이 아닙니다.
Cohere의 Command 모델은 RAG를 위해 만들어졌습니다: 키 하나로 임베딩·리랭크·장문 채팅을 처리합니다. 체험 키는 만료되지 않고 카드도 필요 없지만, 라이선스는 프로토타입용이지 프로덕션이 아닙니다.
월 1,000요청, 분당 20회이며 Command A(command-a-03-2025)는 256K 컨텍스트에 닿습니다. Command A+는 command-a-plus-05-2026입니다. OpenAI 형태의 경로는 /compatibility/v1이고 Cohere 자체 API는 /v2에 있습니다.
- 무료 모델
- 12
- 최대 컨텍스트
- 256K
- 무료 요금제
- 월 1,000요청
- 요구사항
- 이메일만, 카드 불필요
엔드포인트
기본 URL
https://api.cohere.com/compatibility/v1환경 변수
COHERE_API_KEY속도 제한
20 requests/minute, 1,000 requests/month- OpenAI 호환
- 공식 SDK: Cohere SDK
- 텍스트
- 이미지
코드 예시
npm install openaiimport OpenAI from 'openai'
const client = new OpenAI({
baseURL: 'https://api.cohere.com/compatibility/v1',
apiKey: process.env.COHERE_API_KEY
})
const response = await client.chat.completions.create({
model: 'command-a-03-2025',
messages: [{ role: 'user', content: 'Explain closures in one paragraph.' }]
})
console.log(response.choices[0].message.content)pip install openaiimport os
from openai import OpenAI
client = OpenAI(
base_url="https://api.cohere.com/compatibility/v1",
api_key=os.environ["COHERE_API_KEY"],
)
response = client.chat.completions.create(
model="command-a-03-2025",
messages=[{"role": "user", "content": "Explain closures in one paragraph."}],
)
print(response.choices[0].message.content)curl https://api.cohere.com/compatibility/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $COHERE_API_KEY" \
-d '{
"model": "command-a-03-2025",
"messages": [{"role": "user", "content": "Explain closures in one paragraph."}]
}'npm install cohere-aiimport { CohereClientV2 } from 'cohere-ai'
const cohere = new CohereClientV2({ token: process.env.COHERE_API_KEY })
const response = await cohere.chat({
model: 'command-a-03-2025',
messages: [{ role: 'user', content: 'Explain closures in one paragraph.' }]
})
console.log(response.message.content?.[0].text)pip install cohereimport os
import cohere
client = cohere.ClientV2(api_key=os.environ["COHERE_API_KEY"])
response = client.chat(
model="command-a-03-2025",
messages=[{"role": "user", "content": "Explain closures in one paragraph."}],
)
print(response.message.content[0].text)알아두면 좋은 점
- 무료 키는 체험 키: 프로토타입은 괜찮지만 프로덕션 라이선스는 없습니다.
- Cohere 자체 v2 엔드포인트는 /v2. OpenAI 형태는 /compatibility/v1입니다.
- Command A의 id는 command-a-03-2025(256K). command-a-218b는 API id가 아닙니다.
무료로 받는 모델12
- Command A
command-a-03-2025 - Command A+
command-a-plus-05-2026 - Command R+
command-r-plus-08-2024 - Command R
command-r-08-2024 - Command R7B
command-r7b-12-2024 - Command A Reasoning
command-a-reasoning-08-2025 - Command A Translate
command-a-translate-08-2025 - Embed V4
embed-v4.0 - Embed English V3
embed-english-v3.0 - Embed Multilingual V3
embed-multilingual-v3.0 - Rerank V3.5
rerank-v3.5 - Rerank English V3
rerank-english-v3.0