Sociaro Gateway
Use one API key to call text, image, video and audio models. Choose a model, check its request schema and send a request.
curl https://api.sociaro.com/v1/chat/completions \
-H "Authorization: Bearer $SOCIARO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "minimax/minimax-m3",
"messages": [{"role": "user", "content": "hello"}]}'
# Requires Python 3 and requests (pip install requests).
import os
import requests
payload = {'model': 'minimax/minimax-m3',
'messages': [{'role': 'user', 'content': 'hello'}]}
response = requests.post(
'https://api.sociaro.com/v1/chat/completions',
headers={
'Authorization': 'Bearer ' + os.environ['SOCIARO_API_KEY'],
'Content-Type': 'application/json',
},
json=payload,
timeout=120,
)
response.raise_for_status()
print(response.text)// Run as an .mjs file with Node.js 22 or later.
const payload = {
"model": "minimax/minimax-m3",
"messages": [
{
"role": "user",
"content": "hello"
}
]
};
const response = await fetch("https://api.sociaro.com/v1/chat/completions", {
method: "POST",
headers: {
"Authorization": "Bearer " + process.env.SOCIARO_API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify(payload),
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
console.log(await response.text());Make your first request
Get a key
Sign in at my.sociaro.com and create a key on the Keys tab. It starts with
sk-and is shown once.Connect your client
Use the chat request above, or point an OpenAI-compatible client at
https://api.sociaro.com/v1and give it your Sociaro key.Check usage
Open Spend in the console to see your organisation’s balance and usage. Open a request in Logs for its status and cost.
Explore the guides
- API referenceLook up HTTP methods, paths, authentication and response fields.
- Chat and completionsSend messages with an OpenAI-compatible client.
- Jobs APISubmit an asynchronous job, check its status and collect the output.
- Images and videoGenerate media and poll for the finished result.
- Reference images and videosUse characters, clips and voices as references for a video.
- FilesUpload pictures, clips and audio. List, retrieve or delete your files and job outputs.
- Model catalogueLook up a published model’s ID, endpoint and request parameters.
- API keysCreate keys, set their permissions and revoke access.
- Balance and billingCheck your balance with
GET /v1/balance, top up and understand refusals. - ErrorsFind a status code and see what to do next.
Logs and data retention
In Logs, open a request to see whether it was charged and read any error or provider reason. Failed generations usually carry no charge. Ideogram bills for generated images even when its safety check withholds them all. See how failed jobs are billed. Media jobs link to their outputs while those files are retained.
By default, the Jobs API removes the stored prompt when a job reaches a terminal status. A provider’s error message can quote text from your request. Those excerpts can remain visible in Logs after the prompt is deleted. Sociaro does not train on your requests. Each model provider has its own data policies.