Bắt đầu/Quickstart
Quickstart
- Create an API key in the portal (Developer). Copy the secret once
(
sk_live_…/sk_test_…). - Choose a path:
- Platform API — create a meeting, ingest audio (or stream live), then generate a summary on that meeting.
- AI API, text you already have — skip meetings;
POST /v1/summarize(or translate / refine / tts). See AI toolkit. - AI API, audio being spoken now — open one WebSocket and read transcription and translation back live, one-way or two-way. Nothing to create first: connect with your API key and stream. See Realtime AI (WebSocket).
export KEY=sk_live_…
export BASE=https://note-api-stg.blaze.vn # your API host
# 1) Create a meeting
curl -s -X POST "$BASE/v1/meetings" \
-H "Authorization: Bearer $KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: demo-1" \
-d '{"title":"Demo meeting","languages":["vi"]}'
# → { "id": "sess-…", "status": "waiting", … }
# 2) Upload audio (async job → creates/fills the meeting transcript)
curl -s -X POST "$BASE/v1/transcriptions" \
-H "Authorization: Bearer $KEY" \
-F audio_file=@meeting.wav \
-F title="Demo meeting" \
-F languages=vi
# 3) When the meeting has a transcript, generate overview (billed on tokens)
curl -s -X POST "$BASE/v1/meetings/sess-…/summary" \
-H "Authorization: Bearer $KEY"Smoke-test any key with GET /v1/me (plan + prepaid balance left).