Getting Started
Get up and running with Ssiat in just a few minutes.
Prerequisites
- A Ssiat account (Sign up here)
- An API key from your dashboard
Step 1: Get Your API Key
- Log in to your Ssiat Dashboard
- Navigate to API Keys
- Click Create New Key
- Copy your API key and store it securely
caution
Your API key will only be shown once. Make sure to save it in a secure location.
Step 2: Make Your First Request
Using cURL:
curl -X POST https://ssiat.dev/api/v1/og/generate \
-H "Authorization: Bearer sk_live_xxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"template": "blog",
"data": {
"title": "Hello, Ssiat!",
"description": "My first OG image"
}
}'
Step 3: Use the Generated Image
The API returns a JSON response with your image URL:
{
"success": true,
"data": {
"url": "https://ssiat.dev/og/abc123.png",
"width": 1200,
"height": 630
}
}
Add this URL to your HTML:
<meta property="og:image" content="https://ssiat.dev/og/abc123.png" />
Next Steps
- Learn about Authentication methods
- Explore Templates options
- Check the API Reference for all endpoints