This quickstart guide will help you make your first request to the Spro API. You'll be generating AI responses in minutes.
Get Started
Get your API key
- Go to spro.hridaai.com and sign up or log in
- Navigate to API Keys
- Copy your key (it starts with
spro-)
Warning
Keep your API key secure. Never commit it to version control or share it publicly.
See Get Your API Keys for full details on creating and managing keys.
Optional: configure guardrails
Before making requests, you can set up guardrails to inspect every prompt and response in real time.
- In your Workspace, open Guardrails
- Enable what you need — PII/PHI detection, prompt injection, jailbreak protection, toxicity, and more
- Choose an action for each:
log,warn,block, orredact
Guardrails run automatically on every request once enabled. See the Guardrails Reference for the full list.
Make your first request
Call Spro from any OpenAI-compatible SDK or plain HTTP:
curl https://spro.hridaai.com/v1/responses \ -H "Content-Type: application/json" \ -H "Authorization: Bearer YOUR_API_KEY" \ -d '{ "model": "gpt-oss-20b", "input": "What is the capital of France?" }'Migrate an existing project with an AI agent
Already calling OpenAI or another provider directly? Copy the prompt below into your coding agent and it will point your project at Spro.
Migrate this project to Spro, an OpenAI-compatible API gateway.
1. Replace the provider base URL with https://spro.hridaai.com/v1.2. Read the Spro API key from an environment variable named SPRO_API_KEY. Never hardcode it or commit it.3. Keep the existing OpenAI-compatible request format. Only change the model names to Spro's provider-prefixed form, such as openai/gpt-oss-120b or anthropic/claude-sonnet-4.4. Remove any direct provider keys that are no longer used.5. Add one small test request that calls Spro and prints the response, then run it to confirm the migration works.6. Summarize every file you changed.Where to paste it:
| Agent | Paste it into |
|---|---|
| Claude Code | A new session in your project, or save it as CLAUDE.md |
| Codex | A new session in your project, or save it as AGENTS.md |
| Cline | The chat panel, or save it as a rule in .clinerules/ |
Before you run it, set SPRO_API_KEY in your shell or .env file with a key from Get Your API Keys.
Now that you've made your first request, explore more features:
