API
- Base URL:
https://sporelabs.dev/v1 - Auth:
Authorization: Bearer $SPORELABS_API_KEY
Chat
curl https://sporelabs.dev/v1/chat/completions \
-H "Authorization: Bearer $SPORELABS_API_KEY" \
-H 'Content-Type: application/json' \
-d '{"model":"auto","messages":[{"role":"user","content":"Say hello."}]}'
Omit model (or send "auto") to start on Kimi K3, or name any model from
GET /v1/models. A named model is always used for that call.
Price: what the model costs us, with no markup.
Transcribe audio
curl https://sporelabs.dev/v1/audio/transcribe \
-H "Authorization: Bearer $SPORELABS_API_KEY" \
-H 'Content-Type: application/json' \
-d '{"audio_url":"https://example.com/call.wav"}'
Send a direct HTTPS link to the audio; redirects are not followed. Poll the
returned polling_url until status is completed. The result has text and
word-timed segments.
| Model | Use for |
|---|---|
large-v3 (default) |
Noisy rooms, accents, crosstalk |
large-v3-turbo |
Clear speech, faster |
Price: $0.006 per minute of audio, rounded up. A link we can't fetch or audio we can't read costs one minute.
Find commitments, questions and hand-offs
curl https://sporelabs.dev/v1/cues \
-H "Authorization: Bearer $SPORELABS_API_KEY" \
-H 'Content-Type: application/json' \
-d '{"text":"Sure, I will ping Dana today.","speaker":"Tom","previous_turns":["Priya: Can someone chase them before Thursday?"]}'
Returns cues, the cues the sentence carries: commitment, open_question
or delegate (a hand-off), each with a 0 to 1 score. Pass earlier turns in
previous_turns, oldest first: "Sure, I will" only reads as a commitment next
to the request it answers. Send up to 64 sentences as items. To set your own
cutoff, send thresholds, for example {"delegate": 0.7}.
Price: $0.04 per 1,000 sentences. Open weights: huggingface.co/SporeLabs/cue-text.
Scrub personal data
curl https://sporelabs.dev/v1/scrub \
-H "Authorization: Bearer $SPORELABS_API_KEY" \
-H 'Content-Type: application/json' \
-d '{"text":"Ask Dana Reyes to call +1 415 555 0134","mode":"tag"}'
Returns each personal detail or secret (PERSON, ADDRESS, PHONE, EMAIL,
CREDIT_CARD, PASSWORD, API keys and more) with its offsets. mode is
find (default), tag ([PERSON]), pseudonym (a consistent stand-in; add a
pseudonym_key to keep it the same across calls) or mask (*****). Send up
to 64 texts as texts, 50,000 characters per request.
Price: $0.50 per 1M characters. Open weights: huggingface.co/SporeLabs/scrub.
Reframe video
curl https://sporelabs.dev/v1/video/reframe \
-H "Authorization: Bearer $SPORELABS_API_KEY" \
-H 'Content-Type: application/json' \
-d '{"video_url":"https://example.com/proxy.mp4","asset_key":"my-video-v1","fps":30,"source_aspect":1.7778,"target_aspect":"9:16","segments":[{"id":"s1","start":0,"end":60}]}'
Turns a 16:9 video into a 9:16 (or 1:1) crop track that only moves on camera
cuts. Send a direct HTTPS link to a 360p proxy that keeps every source frame.
Poll the returned polling_url; the result has keyframes per segment.
Price: $0.005 per crop track, plus $0.02 per minute of video, rounded up.
Errors
| Status | Meaning |
|---|---|
| 400 | Bad request. Read the message. |
| 401 | Bad or missing key. |
| 413 | Request too large. Split it. |
429 insufficient_quota |
Add funds. |
| 429 / 503 | Busy. Retry after Retry-After. |
| 502 / 504 | Upstream failed. Check before retrying side effects. |