---
title: "Embedding spend grouped by call site"
method: GET
path: "/v1/analytics/model-router/embeddings/cost/by-source"
tags: ["analytics"]
---

# Embedding spend grouped by call site

`GET /v1/analytics/model-router/embeddings/cost/by-source`

## Query parameters

- `embedding_type` string, nullable
- `start_date` string, date, required
- `end_date` string, date, required

## Response `200`

Successful Response

- EmbeddingCostBySourceRow[]
  - `source` string, required
  - `total_cost_usd` number, required
  - `input_tokens` integer, required
  - `invocations` integer, required
  - `failed` integer, required

## Other responses

- `400` — Bad request
- `401` — Authentication required
- `422` — Validation Error

---

[API](https://skmtc.net/oneloop-hq/apis/feather-api.md) · [All operations](https://skmtc.net/oneloop-hq/apis/feather-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/oneloop-hq/feather-api/revisions/9cd7291d4228/schema)
