API Reference
API Reference
Inference and trace ingestion endpoints.
Base URL
https://api.carrotlabs.aiAuthentication
Pass your API key as a Bearer token:
Authorization: Bearer sk-...Endpoints
Inference
| Method | Endpoint | Description |
|---|---|---|
POST | /v1/chat/completions | Chat completions |
POST | /v1/completions | Text completions |
POST | /v1/embeddings | Embeddings |
Tracing
| Method | Endpoint | Description |
|---|---|---|
POST | /v1/traces/ingest | Batch trace ingestion |
All inference endpoints accept the standard OpenAI request format.
Error format
{
"error": {
"message": "model 'nonexistent' not found",
"type": "model_not_found",
"code": 404
}
}See Errors for the full reference.