SMAvatar is a REST API that generates AI-powered avatars and educational maps programmatically. Submit a request, and receive a high-quality image in seconds.
Both APIs follow the same simple pattern:
sequenceDiagram
participant You
participant API
participant Worker
participant Storage
You->>API: POST /jobs/avatars (or /jobs/maps)
API->>You: Job created (pending)
Worker->>API: Process job
Worker->>Storage: Upload image
You->>API: GET /jobs/{jobId}
API->>You: Job complete + image URL
curl -X POST 'https://api.smavatar.com/api/v1/projects/{project_id}/jobs/avatars' \
-H 'Authorization: Bearer {api_key}' \
-H 'Content-Type: application/json' \
-d '{
"style_id": "pixar-3d",
"quality": "standard",
"size": "square",
"parameters": {
"subject": "fox",
"theme": "warrior",
"gender": "female",
"color": "orange"
}
}'
curl -X POST 'https://api.smavatar.com/api/v1/projects/{project_id}/jobs/maps' \
-H 'Authorization: Bearer {api_key}' \
-H 'Content-Type: application/json' \
-d '{
"location_id": "bdd56f14-e776-418a-ab18-89c8138df978",
"width": 1400,
"height": 900,
"theme": "modern",
"output_format": "png"
}'
SMAvatar uses a simple token-based pricing model:
| Action | Token Cost |
|---|---|
| Avatar (Economy) | 25 tokens |
| Avatar (Standard) | 50 tokens |
| Avatar (High) | 100 tokens |
| Map Generation | 50 tokens |
New users get 100 free tokens on signup - enough to try both APIs.