Models

Claude Opus 5 API: Pricing, Requests & Tool Setup

Find the Claude Opus 5 model ID, a Messages request example, billing notes, Desktop tool setup, and troubleshooting for UnifyLLM.

Updated

Start here

For Claude Code or Claude Desktop, send a short Messages request first, then enter the same model name in UnifyLLM Desktop. These tools keep separate configurations and each needs activation and a restart.

  • UnifyLLM model ID: claude-opus-5
  • Example endpoint: /v1/messages

Pricing and billing

Open current Claude Opus 5 pricing to filter the list. Select your key’s group and the credit or cash unit.

  • Input and output are charged separately. For rates per million tokens, cost for each category = tokens ÷ 1,000,000 × its rate.
  • Cached input follows the model and group’s cache rules. Cache reads and writes are different categories; an unlisted rate does not mean zero cost.
  • Check the group before use. The same model can have different ratios and availability across groups.
  • Use usage logs to reconcile the actual model, group, input, output, cache usage, and final charge.

Send a short request

Use Bash or zsh and set UNIFYLLM_API_KEY before running the example. On Windows, use a Bash terminal; see the endpoint reference for SDK fields. The request uses a small amount of credit.

See the Messages reference for full fields, streaming, and response structure.

bash
1curl https://api.unifyllm.top/v1/messages \2  -H "x-api-key: $UNIFYLLM_API_KEY" \3  -H "anthropic-version: 2023-06-01" \4  -H "Content-Type: application/json" \5  -d '{6  "model": "claude-opus-5",7  "max_tokens": 512,8  "messages": [9    {10      "role": "user",11      "content": "Explain how to read a project before changing files."12    }13  ]14}'

Use it in a coding tool

Reopen Claude Code and start a new session. Fully quit and reopen Claude Desktop. Configure each tool separately.

Download UnifyLLM Desktop and follow the Claude Code setup guide. Enter your key and use claude-opus-5 as the model name.

Check results and common errors

Reconcile the request in console usage logs. Keep the request ID, error, and time; omit your real key when asking for help.

  • 401: check the complete key and the authentication header required by the endpoint.
  • Model not found or access denied: check the full model name, key group, and permissions.
  • 429: inspect the limit and reduce concurrency. Avoid blindly retrying successful or uncertain paid requests.
  • API works but the tool fails: check activation, restart, and project-level overrides.