LiteLLMModels

Swe 1.7 Lightning API Pricing

As of October 10, 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.

Model ID cognition/swe-1.7-lightningPrices updated Checked
Input
$2.50 / 1M tokens
Output
$12.50 / 1M tokens
Cache read
$1.00 / 1M tokens
Providers
1
Added to LiteLLM
August 21, 2026

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.

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 features

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 sk-1234" \
  -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. Provider pricing pages:

LiteLLM docs: Cognition.

Provider pages: Cognition.