Use cases

Choosing an AI API for customer support

Support assistants answer the same kinds of questions thousands of times, grounded in your help docs. Cost per ticket and consistent tone matter more than raw intelligence.

What customer support needs

  • Answers grounded in your own documentation
  • A consistent, polite tone
  • A clear hand-off to a human

Models that fit

ModelMakerList price (in / out per 1M)Through SomnusWhy
Claude Haiku 4.5Anthropic$1 / $5$0.5 / $2.5cheap, steady tone
GPT-5.6 LunaOpenAI$1 / $6$0.5 / $3low-cost alternative
Claude Sonnet 5Anthropic$2 / $10$1 / $5complex or sensitive tickets

Somnus column uses the minimum 2× credit; larger top-ups go further.

Cost example

1,000 requests of about 1,500 input and 400 output tokens on Claude Haiku 4.5 cost about $3.50 at list price — roughly $1.75 with Somnus credit.

Tips

  • Put your policies in the system prompt and relevant articles in the user message.
  • Ask the model to say when it doesn't know rather than guess.
  • Log conversations so you can improve the prompt over time.

Common mistakes

  • Letting the model invent refund or policy terms.
  • Stuffing every help article into every request.

Example

python
from openai import OpenAI
import os

client = OpenAI(
    api_key=os.environ["SOMNUS_API_KEY"],
    base_url="https://gateway-production-c837.up.railway.app/v1",
)

resp = client.chat.completions.create(
    model="claude-sonnet-5",
    messages=[
      {"role": "system", "content": "You are an expert assistant. Be precise and concise."},
      {"role": "user", "content": "A customer asks how to reset their password. Answer using our help article."}
    ],
)
print(resp.choices[0].message.content)

Questions

What is the cheapest model for customer support?

Of the models suggested here, Claude Haiku 4.5 has the lowest list price ($1 / $5 per 1M tokens). Test it on your own examples before committing.

Can I switch models later?

Yes. With Somnus you change the model name; the rest of the code stays the same.

Run this code with free credit

Create an account and get $5 of free API credit — enough to try every example on this page.

Get $5 free credit

Related

Browse more: Alternatives · Compare · Use cases · Developers · Solutions · Tools

WindowsStart with $5 free