SambaNova Systems Main Agent API
The Main Agent API from SambaNova Systems — 1 operation(s) for main agent.
The Main Agent API from SambaNova Systems — 1 operation(s) for main agent.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/sambanova-systems:sambanova-systems-main-agent-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Sambanova Agents Service Main Agent API
description: Service for Sambanova agents
version: 0.0.1
termsOfService: https://sambanova.ai/cloud-end-user-license-agreement
contact:
email: info@sambanova.ai
name: SambaNova information
license:
name: Apache 2.0
url: https://www.apache.org/licenses/LICENSE-2.0.html
servers:
- url: https://chat.sambanova.ai/api
security:
- api_key: []
tags:
- name: Main Agent
paths:
/agent/mainagent:
post:
tags:
- Main Agent
summary: Main Agent
description: The main agent is a general-purpose AI assistant that coordinates with specialized subagents (coding, financial analysis, deep research, and data science) to complete complex tasks. This fire-and-forget endpoint submits a prompt and returns the final response in a single call.
operationId: main_agent_agent_mainagent_post
security:
- api_key: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/MainAgentRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/BaseAgentResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
BaseAgentResponse:
type: object
title: Base agent response object
description: Base agent response object
additionalProperties: false
properties:
status:
title: status
description: status of agent gereneration
type: string
result:
title: result
description: results description
type: string
artifacts:
title: artifacts
description: generated artifacts
type: array
items:
type: string
description: id of generated artifact
thread_id:
title: thread_id
description: thread id for persistent context
type: string
required:
- status
- result
- artifacts
- thread_id
example:
status: success
result: I've created the bar chart...
artifacts:
- file-id-123
thread_id: thread-abc
HTTPValidationError:
title: HTTPValidationError
type: object
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
title: Detail
type: array
MainAgentRequest:
type: object
title: MainAgentRequest
description: Request for main agent json object
additionalProperties: false
properties:
prompt:
title: prompt
description: The main prompt for the main agent
type: string
required:
- prompt
examples:
- prompt: Create a bar chart for Q1 sales
resume: false
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
title: Location
type: array
msg:
title: Message
type: string
type:
title: Error Type
type: string
required:
- loc
- msg
- type
title: ValidationError
type: object
securitySchemes:
api_key:
type: http
description: SambaNova API Key
scheme: bearer
bearerFormat: apiKey
externalDocs:
description: Find out more in the official SambaNova docs
url: https://docs.sambanova.ai/cloud/api-reference/overview
x-provenance:
method: harvested
publisher: SambaNova Systems
source: https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml
note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
stamped by stamp-openapi-provenance.py (roadmap#793)