Carrot LabsCarrot Docs
API Reference

API Reference

Inference and trace ingestion endpoints.

Base URL

https://api.carrotlabs.ai

Authentication

Pass your API key as a Bearer token:

Authorization: Bearer sk-...

Endpoints

Inference

MethodEndpointDescription
POST/v1/chat/completionsChat completions
POST/v1/completionsText completions
POST/v1/embeddingsEmbeddings

Tracing

MethodEndpointDescription
POST/v1/traces/ingestBatch 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.

On this page