Docs

Integrate Suprsonic in five minutes.

Pick a language, install the SDK, paste your key, call any capability. The shape is the same across all 25+ capabilities.

1. Quick start

Install the SDK in your language of choice.

Node.jsbash
npm install suprsonic
# or
pnpm add suprsonic
Pythonbash
pip install suprsonic

Then make your first call.

TypeScripttypescript
import { Suprsonic } from "suprsonic";

const sonic = new Suprsonic({ apiKey: process.env.SUPRSONIC_API_KEY! });

const result = await sonic.web.search({ query: "agent infrastructure" });
console.log(result.results);
Pythonpython
from suprsonic import Suprsonic

sonic = Suprsonic(api_key="sk_live_...")

result = sonic.web.search(query="agent infrastructure")
print(result.results)

2. Authentication

Every request uses the same Bearer token. Issue keys per environment in the Suprsonic dashboard at /app/keys. Keys are 36 characters, prefixed with sk_live_ or sk_test_.

Authorization headerbash
Authorization: Bearer sk_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

3. Request shape

Every Suprsonic capability speaks JSON in and JSON out, on the same envelope.

Response envelopejson
{
  "request_id": "req_01HXAB...",
  "credits_used": 2,
  "data": { "...capability specific..." }
}

4. Errors

Errors return a 4xx or 5xx with a typed body. The SDK throws a SuprsonicError you can catch.

Error responsejson
{
  "error": {
    "type": "rate_limited",
    "message": "Too many requests for this key. Retry in 1.4s.",
    "request_id": "req_01HXAB12...",
    "retry_after_ms": 1400
  }
}
  • invalid_request validation issue
  • unauthenticated missing or invalid API key
  • rate_limited too many requests for this key
  • capability_unavailable upstream temporarily unavailable
  • insufficient_credits not enough credits in the billing period

5. Webhooks

For long-running capabilities (video generation, browser automation, slide decks), Suprsonic delivers an event when the work is finished.

Webhook deliveryhttp
POST https://your-app.com/webhooks/suprsonic
Content-Type: application/json
Suprsonic-Signature: t=1715000000,v1=4f...

{
  "id": "evt_01HXAB...",
  "type": "video.generate.completed",
  "data": {
    "request_id": "req_01HXAA...",
    "url": "https://cdn.suprsonic.ai/video/...mp4",
    "credits_used": 80
  }
}

6. Capability reference

The full catalog lives in /capabilities. Below is a compact index, grouped by category.

Web

4
CapabilityEndpointCredits
Web Search

Live results from the open web.

POST /v1/web/search2
Web Scrape

Any URL to clean Markdown.

POST /v1/web/scrape3
Browser Automation

Full-page agent inside a browser.

POST /v1/browser/run25
URL to Markdown

Reader mode for agents.

POST /v1/web/reader1

Vision

4
CapabilityEndpointCredits
Image Generate

Text to image, agent-ready.

POST /v1/image/generate8
Image Edit

Inpaint, outpaint, restyle.

POST /v1/image/edit8
Image Understand

Caption, classify, and answer questions about an image.

POST /v1/image/understand4
OCR

Pixels to text.

POST /v1/vision/ocr3

Media

3
CapabilityEndpointCredits
Video Generate

Text or image to short video.

POST /v1/video/generate80
Chart Render

Data to a clean PNG chart.

POST /v1/chart/render2
Slides Generate

From outline to deck.

POST /v1/slides/generate30

Voice

3
CapabilityEndpointCredits
Speech to Text

Transcribe any audio.

POST /v1/voice/transcribe3
Text to Speech

Studio voice in one call.

POST /v1/voice/synthesize2
Speech Translate

Audio in one language to text in another.

POST /v1/voice/translate4

Documents

2
CapabilityEndpointCredits
PDF Extract

PDF to clean structured text.

POST /v1/documents/pdf4
Doc Parse

Any office doc to structured Markdown.

POST /v1/documents/parse3

Code

3
CapabilityEndpointCredits
Code Execute

Run code in a sandbox.

POST /v1/code/execute6
Code Generate

Spec to working code.

POST /v1/code/generate5
Code Review

PR review on autopilot.

POST /v1/code/review5

Language

4
CapabilityEndpointCredits
Translate

Text across 100+ languages.

POST /v1/language/translate1
Summarize

Long text to short text.

POST /v1/language/summarize2
Classify

Free-form labels for any text.

POST /v1/language/classify1
Entity Extract

Names, places, money, dates.

POST /v1/language/entities1

Data

3
CapabilityEndpointCredits
Embed

Text to vector.

POST /v1/data/embed1
Rerank

Better order for retrieval.

POST /v1/data/rerank2
Vector Search

Hosted similarity search.

POST /v1/data/search1

Communication

3
CapabilityEndpointCredits
Email Send

Transactional email from an agent.

POST /v1/comm/email1
SMS Send

Short messages to a phone.

POST /v1/comm/sms2
Calendar Schedule

Book a meeting from an agent.

POST /v1/comm/calendar2

Memory

1
CapabilityEndpointCredits
Agent Memory

Persistent memory per agent.

POST /v1/memory/recall1

7. Limits and credits

One credit pool covers every capability. Credits reset on the first of each billing period. Rate limits scale with plan: Free is 60 requests / minute, Developer is 600, Scale is 6,000, and Enterprise is custom.