Overview
This guide will help you make your first API call to Strongwall in just a few minutes. The Strongwall API is compatible with both OpenAI and Anthropic Claude clients, so you can use your existing tools and libraries.
Prerequisites
- A Strongwall account (sign up at strongwall.ai/signup)
- An API key (generate one in your account settings under Settings → API)
Step 1: Get Your API Key
- Log in to your Strongwall account
- Navigate to Settings → API
- Click "Generate API Key"
- Copy and securely store your API key
Step 2: Make Your First Request
Choose your preferred language below and follow the example to make your first API call.
The simplest way to test the API
Code:
curl https://api.strongwall.ai/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "kimi-k2.5",
"messages": [
{"role": "user", "content": "Say hello!"}
]
}'Step 3: Understand the Response
A successful API call will return a JSON response with the model's completion:
{
"id": "chatcmpl-123",
"object": "chat.completion",
"created": 1677652288,
"model": "kimi-k2.5",
"choices": [{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello! How can I assist you today?"
},
"finish_reason": "stop"
}],
"usage": {
"prompt_tokens": 9,
"completion_tokens": 12,
"total_tokens": 21
}
}Common Parameters
model(required): Currentlykimi-k2.5messages(required): Array of message objects withroleandcontenttemperature(optional): Controls randomness (0-2, default 1)max_tokens(optional): Maximum tokens in the responsetop_p(optional): Nucleus sampling parameter (0-1)
Best Practices
- Never expose your API key: Keep it secure and never commit it to version control
- Use environment variables: Store your API key in environment variables, not in code
- Handle errors gracefully: Always check for HTTP errors and handle them appropriately
- Monitor usage: Keep track of your token usage in your account dashboard
Next Steps
- Explore the full API documentation
- Learn about function calling and tools
- Check out the Platform Overview
- Join the community or contact support@strongwall.ai for help
Need Help?
If you encounter any issues or have questions:
- Check the full documentation
- Email us at support@strongwall.ai
- Visit our partnerships page for collaboration opportunities