LiteLLMLiteLLM/ MODELS

Swe 1.7 Lightning API Pricing

1 providercognition/swe-1.7-lightning
Input / output
$2.50 / $12.50 per 1M tokens
Cache read
$1.00 / 1M

As of November 24, 2026, Swe 1.7 Lightning costs $2.50 per 1M input tokens and $12.50 per 1M output tokens on Cognition, with cache reads at $1.00 per 1M tokens.

Prices updated Checked

Swe 1.7 Lightning pricing by provider

1 listing across 1 provider. Token prices are in US dollars per 1M tokens. The highlighted row is the price quoted above.

Swe 1.7 Lightning prices by provider in US dollars, token prices per 1M tokens, as of November 24, 2026. Source: LiteLLM model price file.
ProviderModel name in LiteLLMInputOutputCache readContext
Cognitioncognition/swe-1.7-lightning$2.50$12.50$1.00–

What Swe 1.7 Lightning costs in practice

1,000 requests with 2,000 input and 500 output tokens each

Cognition$11.25

Swe 1.7 Lightning cost calculator

At Cognition's price ($2.50 input, $12.50 output per 1M tokens), 10,000 requests a day with 1,000 input and 500 output tokens each cost $87.50 a day, about $2,625 a month. Change the numbers for your workload, or compare it with other models.

Per request
$0.00875
Per day
$87.50
Per month (30 days)
$2,625

Swe 1.7 Lightning features

Input: text. Output: text.

Use Swe 1.7 Lightning with LiteLLM

Call Swe 1.7 Lightning through the LiteLLM Python SDK, or put it behind the LiteLLM proxy and send OpenAI-format requests to /v1/chat/completions. LiteLLM tracks the cost of every request at these prices.

Python SDK
from litellm import completion

response = completion(
    model="cognition/swe-1.7-lightning",
    messages=[{"role": "user", "content": "Hello!"}],
)
Proxy config.yaml
model_list:
  - model_name: swe-1.7-lightning
    litellm_params:
      model: cognition/swe-1.7-lightning
      # credentials: see the provider's LiteLLM docs page
Call the proxy
curl http://0.0.0.0:4000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LITELLM_API_KEY" \
  -d '{
    "model": "swe-1.7-lightning",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Swe 1.7 Lightning FAQ

How much does Swe 1.7 Lightning cost?

Swe 1.7 Lightning costs $2.50 per 1M input tokens and $12.50 per 1M output tokens on Cognition, with cache reads at $1.00 per 1M tokens.

Which providers offer Swe 1.7 Lightning?

Swe 1.7 Lightning is available from Cognition through LiteLLM, using the model name cognition/swe-1.7-lightning.

How do I call Swe 1.7 Lightning with an OpenAI-compatible API?

Use the LiteLLM Python SDK with model="cognition/swe-1.7-lightning", or add the model to the LiteLLM proxy's config.yaml and send requests to /v1/chat/completions from any OpenAI client. LiteLLM tracks the cost of every request at the prices on this page.

What features does Swe 1.7 Lightning support?

Swe 1.7 Lightning supports function calling and prompt caching.

When did LiteLLM add Swe 1.7 Lightning?

Swe 1.7 Lightning was added to LiteLLM's model price file on August 21, 2026.

Sources

Prices come from LiteLLM's open-source model_prices_and_context_window.json, which LiteLLM uses to calculate the cost of every request. Maintainers update it from each provider's published pricing, and this page is usually rebuilt within 20 minutes of every change. Provider pricing pages:

LiteLLM docs: Cognition.

Provider pages: Cognition.