API Keys
Keys that authenticate your apps to the proxy
Security note: API keys are shown here only by name. The actual key value is only displayed once at creation time. If you've lost a key, revoke it and create a new one.
Quick Start
# OpenAI
curl https://openai.agentsecure.io/v1/chat/completions \
-H "X-AgentSecure-Key: as_<your-key>" \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-d '{"model":"gpt-4o","messages":[{"role":"user","content":"Hello!"}]}'
# Groq / Mistral / Together / Perplexity / xAI (OpenAI-compatible)
curl https://groq.agentsecure.io/openai/v1/chat/completions \
-H "X-AgentSecure-Key: as_<your-key>" \
-H "Authorization: Bearer $GROQ_API_KEY" \
-d '{"model":"llama-3.1-70b-versatile","messages":[{"role":"user","content":"Hello!"}]}'
# Google Gemini (OpenAI-compatible endpoint)
curl https://gemini.agentsecure.io/chat/completions \
-H "X-AgentSecure-Key: as_<your-key>" \
-H "Authorization: Bearer $GOOGLE_API_KEY" \
-d '{"model":"gemini-1.5-pro","messages":[{"role":"user","content":"Hello!"}]}'
# Cohere (OpenAI-compatible endpoint)
curl https://cohere.agentsecure.io/chat/completions \
-H "X-AgentSecure-Key: as_<your-key>" \
-H "Authorization: Bearer $COHERE_API_KEY" \
-d '{"model":"command-r-plus","messages":[{"role":"user","content":"Hello!"}]}'
# Hugging Face (OpenAI-compatible Inference API)
curl https://huggingface.agentsecure.io/chat/completions \
-H "X-AgentSecure-Key: as_<your-key>" \
-H "Authorization: Bearer $HF_TOKEN" \
-d '{"model":"meta-llama/Meta-Llama-3.1-70B-Instruct","messages":[{"role":"user","content":"Hello!"}]}'
# Azure OpenAI (pass your resource endpoint via header)
curl https://azure-openai.agentsecure.io/openai/deployments/{deployment}/chat/completions \
-H "X-AgentSecure-Key: as_<your-key>" \
-H "X-Azure-Endpoint: https://{resource}.openai.azure.com" \
-H "api-key: $AZURE_OPENAI_KEY" \
-d '{"messages":[{"role":"user","content":"Hello!"}]}'
# Amazon Bedrock (uses proxy IAM role; specify model ID in body)
curl https://bedrock.agentsecure.io/v1/chat/completions \
-H "X-AgentSecure-Key: as_<your-key>" \
-H "X-AWS-Region: us-east-1" \
-d '{"model":"anthropic.claude-3-5-sonnet-20241022-v2:0","messages":[{"role":"user","content":"Hello!"}]}'