guides_page.title
guides_page.subtitle
guides_page.toc
🚀
시작하기
BestChar API 소개
BestChar는 AI 기반 캐릭터 생성 및 채팅 플랫폼입니다. RESTful API를 통해 다양한 AI 캐릭터를 생성하고, 실시간 채팅을 구현할 수 있습니다.
주요 기능
계정 생성 및 API 키 발급
1단계: 계정 생성
2단계: API 키 발급
⚠️ 중요: API 키는 한 번만 표시됩니다. 분실하면 새로 발급받아야 합니다.
첫 번째 API 호출
cURL로 테스트하기
curl -X GET "https://api.bestchar.com/api/v1/characters" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"
JavaScript로 캐릭터 생성하기
const response = await fetch('https://api.bestchar.com/api/v1/characters', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: '나루터',
seed_prompt: '친근하고 활발한 성격의 캐릭터입니다.'
})
});const character = await response.json();
console.log('캐릭터가 생성되었습니다:', character);