Skip to main content

Config API

The config endpoints expose runtime model metadata that is useful for SDKs, tooling, and admin dashboards.

Authentication

Requires standard authenticated API access.

List available chat models

GET /v1/config/models
Returns the active chat model catalog:
{
  "models": [
    {
      "model": "gpt-4.1-mini",
      "provider": "openai"
    }
  ]
}

Get embedding model

GET /v1/config/embedding-model
Returns the currently active embedding model and dimension for the workspace:
{
  "embedding_model": "text-embedding-3-large",
  "embedding_dimension": 3072
}

Get cost estimates

GET /v1/config/cost-estimates
Returns the current estimated unit costs used by the platform:
{
  "embed_per_1k_tokens_usd": 0.00013,
  "embed_model": "text-embedding-3-large",
  "rerank_per_query_usd": 0.002,
  "vector_search_per_query_usd": 0.0001
}

Example

const models = await auvy.config.getModels()
const embedding = await auvy.config.getEmbeddingModel()
const costs = await auvy.config.getCostEstimates()