Back to APIs

Unified Agent API

Agent API

Agent API

A single API that autonomously routes to any capability. Describe what you need, and it selects the right API, fills the parameters, and executes it. Or name the capability and its parameters yourself.

POST/v1/agent

Overview

Single endpoint routing to any capability: describe what you need in request, or name the capability with its params

Credits

2 credits per call

Parameters

request

string

What you need, in plain words. It is routed to the capability that serves it, with its parameters filled from your words, and runs; the response's metadata names the capability and the params it ran with. Send this or capability, not both. A request that lacks what its capability needs answers what is missing, at no charge.

capability

select

Which capability to run, instead of request.

params

object

The named capability's parameters, as a JSON object.

Example Response

{
  "success": true,
  "data": {
    "answer": "AI funding reached $4.2B in Q1 2026, led by xAI and Anthropic.",
    "organic_results": [
      {
        "url": "https://techcrunch.com/2026/04/01/ai-funding",
        "title": "AI Funding Hits Record",
        "snippet": "Venture capital investment...",
        "position": 1
      }
    ]
  },
  "metadata": {
    "provider_used": "perplexity",
    "providers_tried": [
      "perplexity"
    ],
    "mode_used": "ai",
    "response_time_ms": 2400,
    "request_id": "req_ijk123",
    "capability": "search",
    "params": {
      "query": "latest AI funding news",
      "mode": "ai"
    }
  },
  "credits_used": 2
}

Get Started

Create a Suprsonic API key in your dashboard, then call the endpoint with your key in the Authorization header.

Confirm your email and 25 free credits are added, no card needed. After them, your API calls continue with a free 7-day trial of Pro: a card is needed, and nothing is charged until the trial ends. When you need more, subscribe to a plan: Pro is $29 a month for 2,000 credits, Max $99 for 8,000 and Team $249 for 24,000.

Try Agent API

Test Agent API in the interactive playground. No setup required.

Open Playground