You don't need an SDK to use Spro. Every endpoint is a plain HTTP POST taking JSON and returning JSON — any HTTP client in any language works.
POST https://spro.hridaai.com/v1/chat/completionsPOST https://spro.hridaai.com/v1/responsesPOST https://spro.hridaai.com/v1/messages # Anthropic-compatiblePOST https://spro.hridaai.com/v1/embeddingsPOST https://spro.hridaai.com/v1/images/generationsPOST https://spro.hridaai.com/v1/images/editsPOST https://spro.hridaai.com/v1/traces/ingest # agent tracesEvery request needs two headers:
Content-Type: application/jsonAuthorization: Bearer YOUR_SPRO_API_KEYcURL
curl https://spro.hridaai.com/v1/chat/completions \ -H "Content-Type: application/json" \ -H "Authorization: Bearer YOUR_SPRO_API_KEY" \ -d '{ "model": "gpt-oss-20b", "messages": [ {"role": "user", "content": "What is the capital of France?"} ] }'Python — httpx
pip install httpximport httpx
response = httpx.post( "https://spro.hridaai.com/v1/chat/completions", headers={ "Authorization": "Bearer YOUR_SPRO_API_KEY", "Content-Type": "application/json", }, json={ "model": "gpt-oss-20b", "messages": [ {"role": "user", "content": "What is the capital of France?"} ], },)
data = response.json()print(data["choices"][0]["message"]["content"])Python — requests
pip install requestsimport requests
response = requests.post( "https://spro.hridaai.com/v1/chat/completions", headers={ "Authorization": "Bearer YOUR_SPRO_API_KEY", "Content-Type": "application/json", }, json={ "model": "gpt-oss-20b", "messages": [ {"role": "user", "content": "What is the capital of France?"} ], },)
data = response.json()print(data["choices"][0]["message"]["content"])JavaScript — fetch
const response = await fetch("https://spro.hridaai.com/v1/chat/completions", { method: "POST", headers: { "Content-Type": "application/json", Authorization: "Bearer YOUR_SPRO_API_KEY", }, body: JSON.stringify({ model: "gpt-oss-20b", messages: [{ role: "user", content: "What is the capital of France?" }], }),});
const data = await response.json();console.log(data.choices[0].message.content);Using the Responses API
Swap the path for /v1/responses and use input instead of messages:
curl https://spro.hridaai.com/v1/responses \ -H "Content-Type: application/json" \ -H "Authorization: Bearer YOUR_SPRO_API_KEY" \ -d '{ "model": "gpt-oss-20b", "input": "What is the capital of France?" }'import httpx
response = httpx.post( "https://spro.hridaai.com/v1/responses", headers={ "Authorization": "Bearer YOUR_SPRO_API_KEY", "Content-Type": "application/json", }, json={ "model": "gpt-oss-20b", "input": "What is the capital of France?", },)
print(response.json())Other endpoints
The same two headers work everywhere. Quick examples — full request/response shapes are in the API reference.
Embeddings (/v1/embeddings) — input instead of messages, returns vectors:
curl https://spro.hridaai.com/v1/embeddings \ -H "Content-Type: application/json" \ -H "Authorization: Bearer YOUR_SPRO_API_KEY" \ -d '{ "model": "text-embedding-3-small", "input": "The quick brown fox" }'Images (/v1/images/generations) — a prompt in, image URLs out:
curl https://spro.hridaai.com/v1/images/generations \ -H "Content-Type: application/json" \ -H "Authorization: Bearer YOUR_SPRO_API_KEY" \ -d '{ "model": "openai/gpt-image-1", "prompt": "A white Siamese cat wearing a tiny wizard hat" }'Anthropic Messages (/v1/messages) — for Anthropic SDK clients, accepts either Authorization: Bearer or the native x-api-key header:
curl https://spro.hridaai.com/v1/messages \ -H "Content-Type: application/json" \ -H "x-api-key: YOUR_SPRO_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -d '{ "model": "anthropic/claude-sonnet-4", "max_tokens": 1024, "messages": [{"role": "user", "content": "Hello!"}] }'