Skip to Content
Platform APIOverview

SynapseX Platform API overview

The SynapseX Platform API is an OpenAI-wire-compatible LLM API. If your application already talks to an OpenAI-compatible endpoint, you change two values — the base URL and the API key — and it runs on SynapseX models. When you finish the pages in this section you will have a working API key, a completed chat completion, and streaming output in your own code.

What is the base URL for the SynapseX API?

https://platform.synapsex.ai/api/v1

This is the only supported base URL for the SynapseX LLM API. Every example in this documentation, and the default in the official Python SDK, uses it.

What can you call on it?

EndpointMethodWhat it does
/chat/completionsPOSTCreate a chat completion. Supports server-sent-event streaming.
/modelsGETList the SynapseX model catalog. It is not filtered to what your key may call.

Both endpoints authenticate a workspace API key (sk-synapsex-…) sent as Authorization: Bearer …, and both require a positive prepaid credit balance.

What you need before your first call

Three things, in this order:

  1. A workspace account on platform.synapsex.ai . A personal workspace is created for you on first sign-in.
  2. Credits. A workspace with a balance at or below zero gets an HTTP 402 before any model runs — a valid key on its own is not enough.
  3. An API key, created in the workspace console. The secret is shown exactly once.

The full walkthrough is in Start with the Platform API.

Which request fields are supported?

This is the single most common source of confusion, so it is stated plainly once here and repeated on Chat completions.

The API forwards exactly these fields:

FieldRequiredNotes
modelYesA SynapseX model id.
messagesYesOpenAI-style {"role": …, "content": …} array.
streamNotrue returns text/event-stream.
temperatureNoSampling temperature.
top_pNoNucleus sampling.
max_tokensNoCap on generated tokens.

Any other field in the request body is not forwarded and has no effect. Do not rely on tools, response_format, seed, stop, n, logprobs, penalties or user here. Sending them is not an error; they are simply dropped. See OpenAI compatibility for the full boundary list.

How billing works

Pay-as-you-go prepaid credits, where 1 credit = US$1. There is no subscription on the API platform. A zero balance returns HTTP 402 before the model runs, so you cannot overspend. Details are in Credits and spending.

Note that the SynapseX Chat product at chat.synapsex.ai is a separate account with a separate wallet and a different credit unit. Chat credits and API platform credits are not interchangeable.

Verify the API is reachable right now

You can check the error contract without an account. This call is real and returns the exact body shown:

curl -sS https://platform.synapsex.ai/api/v1/models
{"error":{"message":"Missing or invalid API key","type":"authentication_error"}}

That is the SynapseX error envelope. Every error you can receive is documented on API errors.

In this section