Getting StartedFeatured
Quickstart
Send your first text or image generation request in minutes.
Get from zero to a successful API response in a few minutes.
1. Create an API key
- Sign in at abzar-ai.com
- Open Dashboard → Settings → API Keys
- Create a key and copy it immediately — the full secret is shown only once
Store the key in an environment variable:
export ABZAR_AI_API_KEY="your-api-key-here"
2. Inspect your account and models
curl -X GET "https://abzar-ai.com/api/external/ai" \
-H "X-API-Key: $ABZAR_AI_API_KEY"
A successful response includes your user profile, subscription, token stats, allowed providers/models, and rate-limit details.
3. Generate text
curl -X POST "https://abzar-ai.com/api/external/ai" \
-H "X-API-Key: $ABZAR_AI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "Explain machine learning in simple terms",
"model": "deepseek-chat",
"provider": "deepseek",
"type": "text",
"max_tokens": 1000,
"temperature": 0.7
}'
Example success payload:
{
"success": true,
"data": {
"content": "Machine learning is a subset of artificial intelligence...",
"model": "deepseek-chat",
"provider": "deepseek",
"tokens_used": 150,
"remaining_tokens": 9850,
"usage_percentage": "1.5"
}
}
4. Generate an image
curl -X POST "https://abzar-ai.com/api/external/ai" \
-H "X-API-Key: $ABZAR_AI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "A futuristic cityscape with flying cars at sunset",
"model": "dall-e-3",
"provider": "openai",
"type": "image",
"size": "1024x1024",
"quality": "standard",
"style": "vivid"
}'
Checklist
- Active subscription on your account
- Valid API key with provider/model permissions
- Enough remaining tokens for the request
- Correct
type:"text"or"image"
Continue with Authentication or jump to Code Examples.