Hey @pycloux welcome to langchain community.
There isn’t actually a model called GPT-6.1 Luna. OpenAI’s names are:
- GPT-6 Luna →
gpt-6-luna
- GPT-6.1 Sol →
gpt-6.1-sol
- GPT-6.1 Terra →
gpt-6.1-terra
LangSmith already has a built-in price for gpt-6-luna ($0.10 input / $0.50 output per 1M tokens). The match pattern is:
^gpt\-6\-luna(-\d{4}-\d{2}-\d{2})?$
That matches gpt-6-luna and dated snapshots like gpt-6-luna-2026-09-22. It does not match gpt-6.1-luna, GPT 6.1 Luna, openai:gpt-6-luna, or an Azure deployment name.
I tried it locally: ChatOpenAI(model="gpt-6-luna") showed up in LangSmith with ls_model_name=gpt-6-luna and a cost. ChatOpenAI(model="gpt-6.1-luna") just 404s from OpenAI (model_not_found).
On the missing price
Open the child LLM span (not the parent agent/chain) and check:
ls_model_name is exactly gpt-6-luna (or gpt-6-luna-YYYY-MM-DD)
- Token counts are actually there. No tokens → no cost.
- Adding a Model pricing row does not backfill old traces. Only new runs after the rule is active get priced (sometimes a few minutes later).
If the model string in code isn’t exactly gpt-6-luna, the built-in row never applies. This is enough:
from langchain_openai import ChatOpenAI
llm = ChatOpenAI(model="gpt-6-luna")
If you’re on Azure / a proxy, set ls_model_name to gpt-6-luna rather than the deployment name, then send a new trace.
Docs: cost tracking and metadata params.
On not being able to delete the custom row
Two different things get mixed up:
- The predefined
gpt-6-luna entry is global. You can’t edit or delete that one, that’s expected. To override it you’d add a custom row with the same match pattern.
- A custom row you created can be deleted, but the UI treats “Default” as a pricing tier. Model-level Delete stays greyed out until that tier is gone, and Edit often only shows “Default” with no obvious way to delete the tier.
In the UI, open the custom model, delete the Default tier first (the ⋯ on that row, not Delete on the model), then delete the model.
If that control isn’t there, the API works for custom rows:
curl -X DELETE "https://api.smith.langchain.com/api/v1/model-price-map/<custom-id>" \
-H "x-api-key: $LANGSMITH_API_KEY"
That won’t remove the built-in gpt-6-luna entry, which you can just leave.
One extra gotcha: if your custom regex is broader than the built-in one, it can steal matching and override the default price on new runs. After you delete it, only traces from that point on pick up the built-in price.
If you paste ls_model_name, ls_provider, and the token counts from one unpriced LLM span, it’s usually obvious which of these it is.