---
title: "Models & Token Pricing Guide | Straitly Docs"
description: "Query /v1/models and compare per-million-token input, output and cache rates across 150+ frontier and open-weight models."
url: https://straitly.ai/docs/models
updated: 2026-11-28
publisher: Straitly (https://straitly.ai)
---

Docs

API guides

# Models & pricing

Copy docs

**On this page**

Choose a callable model, check its capabilities, and understand what each request costs. Model prices are quoted in USD per million tokens; your charge depends on the token buckets actually used.

### Choose a model

Use GET /models with your key for the current callable model list. Copy an entry's id into the model field of your request rather than guessing a name from its display label.

The model directory also shows prices and capabilities. Check availability, context size, and support for tools or images before changing a production workload. Models sharing an endpoint do not necessarily share every feature.

Terminal

Copy Copied Failed

curl https://api.straitly.ai/v1/models \
  -H "Authorization: Bearer $STRAITLY_API_KEY"

[Browse models and rates](https://straitly.ai/models) [Endpoint reference](https://straitly.ai/docs/endpoints)

### The token rates

Input

**Fresh tokens** New input tokens that are not accounted for as cache reads or cache writes.

Cache read

**Reused input** Input served from an existing prompt cache, billed at the model's cache-read rate.

Cache write

**Stored input** Input written into the cache. When a model has separate 5-minute and 1-hour write rates, use the applicable rate.

Output

**Generated tokens** The model's billable output tokens. Use reported usage, not the length of visible text, when reconciling a request.

Cached tokens are part of input accounting, not extra fresh input to count a second time. Activity separates the buckets so you can reconcile the charge.

### Calculate a charge

Multiply each token bucket by its applicable per-million rate, add the results, and divide by 1,000,000\. Include a separate 1-hour cache-write term when that rate exists.

Formula

Copy Copied Failed

charge_usd = (
    fresh_input_tokens * input_rate
  + cache_read_tokens * cache_read_rate
  + cache_write_5m_tokens * cache_write_5m_rate
  + cache_write_1h_tokens * cache_write_1h_rate
  + output_tokens * output_rate
) / 1_000_000

Example input

**$0.002** 1,000 fresh input tokens at an illustrative $2 per million.

Example output

**$0.003** 500 output tokens at an illustrative $6 per million.

Example total

**$0.005** No cached tokens in this example. These are sample rates, not a live model quote.

Use the customer rates shown in the directory. Use those rates as they are: the below-list pricing is already in them.

### Pricing and payment

Most models are priced below the provider's list price, and that rate is already in the token rates shown. Use the model directory for each model's current rate.

Billing is prepaid. When your balance is exhausted, requests are rejected with 402 insufficient\_credits. A per-key spend cap can stop a key even when the account still has a balance.

Failed requests are not billed. For interrupted streams or a disputed charge, inspect the recorded request status and charge in Activity rather than estimating from the text you received.

[Wallet](https://straitly.ai/app/wallet) [Spending caps and errors](https://straitly.ai/docs/errors) [Straitly vs direct provider APIs](https://straitly.ai/compare/direct-api) [DeepSeek API prices](https://straitly.ai/deepseek-api) [Qwen API models and setup](https://straitly.ai/qwen-api)

### Cache-write durations

Prompt caching is model-specific. A 5-minute cache write and a 1-hour cache write can have different prices; they must not be treated as one universal write rate.

The billing code tracks these durations separately. Where no distinct 1-hour price exists, the model's configured fallback rate applies. Check the current rate card and request details for the model you use.

### Reconcile your usage

- Open Activity and select a request to inspect token buckets, status, and the charge.
- Use the recorded request-time charge for historical spend. Multiplying old usage by today's prices may produce a different total.
- Export filtered usage as CSV or JSON when reconciling an invoice or comparing workloads.

[Logs & exports](https://straitly.ai/docs/logs) [Request activity](https://straitly.ai/app/activity)

### Why is a model in the API but not in the console list?

GET /v1/models lists every model your key can call, including ones that are new, in preview, or not yet in the model directory. The console list and the public directory show the priced catalog, so a few API models can be missing there.

If a model id is in GET /v1/models, you can call it. Use the id exactly as the API lists it.

Terminal

Copy Copied Failed

curl https://api.straitly.ai/v1/models \
  -H "Authorization: Bearer $STRAITLY_API_KEY" \
  | jq -r '.data[].id'

### How do I request a model?

- Email support@straitly.ai with the exact model and maker, the endpoint you use, and roughly how much traffic you plan to send.
- Say which features you need, such as tools, images, audio or a long context, so it can be checked for them.
- Until it is added, check GET /v1/models for a close match. The list changes often.

[Email support](mailto:support@straitly.ai) [Browse models](https://straitly.ai/models) [Help & community](https://straitly.ai/docs/support)

[Images & vision](https://straitly.ai/docs/vision) [Errors & limits](https://straitly.ai/docs/errors)

---
Markdown version of https://straitly.ai/docs/models.
