DinoTech 2.7 API
Train, manage and interact with your AI dinosaurs through our comprehensive API interface.
Base URL: api.ai.dino.icu/v2/dino
All requests must include Authorization: Bearer <token>
API Overview
Authentication
Obtain a bearer token via our web interface or CLI tools. Tokens expire after 24 hours.
curl -X POST 'api.ai.dino.icu/token' \
-H 'Content-Type: application/json' \
-d '{"client_id": "xxxx", "client_secret": "yyyy"}'
# For CLI
dino-cli login --email="user@extinct.io"
Training Endpoints
POST /models/train
{ "architecture": "dense", "params": { "lr": 0.001, "epochs": 100 }, "dataset": "preloaded_dino_123" }
GET /models/{id}/progress
Poll training progress at 1-2 second intervals
GET /models
List all your trained models with status and metrics
POST /models/{id}/predict
Make inference requests with input data
Rate Limits
Model Training
50 operations per hour
Prediction
500 requests per minute
Dataset Upload
20 datasets per hour
Error Handling
401 Unauthorized
Missing or invalid authentication token
429 Too Many Requests
You've exceeded API rate limits
413 Payload Too Large
Dataset size over 5GB
503 Service Unavailable
Training cluster maintenance
Code Examples
Train New Model
curl -X POST 'api.ai.dino.icu/v2/models/train' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"name": "Trike-2025",
"arch": "transformer",
"dataset": "dino_dataset_123",
"params": {
"lr": 0.0001,
"epochs": 200
}
}'
Check Progress
curl -X GET 'api.ai.dino.icu/v2/models/7x3g9/progress' \
-H 'Authorization: Bearer YOUR_TOKEN'
Inference Request
curl -X POST 'api.ai.dino.icu/v2/models/7x3g9/predict' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"input": [3.14, 2.71, 1.61],
"format": "onnx"
}'