Back to docs
API Reference
The SEDI API allows you to run inference, generate embeddings, and manage models programmatically.
Base URL
https://api.yourdomain.com/v1
All requests require authentication via Bearer token in the Authorization header.
Create Completion
POST
/v1/completions
curl -X POST -H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"model": "my-model", "prompt": "Hello, world!", "max_tokens": 100}' \
https://api.yourdomain.com/v1/v1/completions
Generate Embeddings
POST
/v1/embeddings
curl -X POST -H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"model": "my-model", "input": "Hello, world!"}' \
https://api.yourdomain.com/v1/v1/embeddings
Error Codes
401Unauthorized - Invalid or missing API token404Not Found - The requested resource does not exist429Rate Limited - Too many requests (50 req/s limit)