SWE-2 Flash API

Call SWE-2 Flash through Wokey and review published catalog pricing, upstream-native API forms, context, and model capabilities.

Model ID
swe-2-flash
Vendors
devin
Supply status
Current supply unavailable

Catalog pricing snapshot

Prices are per 1M tokens; request-time pricing controls settlement.

MeterWokeyOfficial referenceSavings
Input$0.015$0.185%
Output$0.075$0.585%
Cache read$0.0015$0.0185%
Cache write$0.01875$0.12585%

Official price source: https://docs.devin.ai/desktop/models

Model capabilities

Context
262,144 tokens
Max output
65,536 tokens
Streaming
Supported
Tools
Supported
Vision
Not supported
Supported API forms
/v1/chat/completions

Send a request

/v1/chat/completions

curl https://api.wokey.ai/v1/chat/completions \
  -H "Authorization: Bearer $WOKEY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"swe-2-flash","messages":[{"role":"user","content":"Hello"}]}'

Use SWE-2 Flash in your tools

The gateway is https://api.wokey.ai (OpenAI-compatible clients usually take https://api.wokey.ai/v1), and the model ID is swe-2-flash. Open the guide for the client you use.

Frequently asked questions

How much does the SWE-2 Flash API cost, and how much does it save versus the official API?

Wokey lists input at $0.015 per 1M tokens and output at $0.075 per 1M tokens; the official references are $0.1 and $0.5. That is 85% lower for input and 85% lower for output. Request-time pricing controls settlement, and the vendor pricing source is linked on this page.

What is the SWE-2 Flash API model ID?

The model ID for SWE-2 Flash on Wokey is swe-2-flash. Use it exactly as written in the request body's model field or in your client's model setting (for example ANTHROPIC_MODEL in Claude Code, or model in the Codex CLI config.toml); GET https://api.wokey.ai/v1/models also lists it.

Which API forms does SWE-2 Flash support, and how do I call it through Wokey?

SWE-2 Flash supports /v1/chat/completions (Chat Completions requests). Set the API base URL to https://api.wokey.ai, authenticate with a Wokey API key, and use the canonical model ID swe-2-flash; you can start with /v1/chat/completions. The Send a request section includes a curl example for every supported API form.

How do I use SWE-2 Flash in opencode, Hermes Agent, and similar clients?

These clients call SWE-2 Flash over OpenAI Chat Completions: point the API address at https://api.wokey.ai (clients that expect an OpenAI SDK-style address take https://api.wokey.ai/v1), add your Wokey API key, and use the model ID swe-2-flash. Each client's guide shows its config format.

What are the context window and maximum output for SWE-2 Flash?

The catalog context window is 262,144 tokens and the maximum output is 65,536 tokens. These are separate limits, and a request must also satisfy the upstream constraints in effect when it is processed.

How are cache reads and cache writes priced for SWE-2 Flash?

Cache read: Wokey lists $0.0015 per 1M tokens and the official reference is $0.01 per 1M tokens. Cache write: Wokey lists $0.01875 per 1M tokens and the official reference is $0.125 per 1M tokens.

How does calling SWE-2 Flash through Wokey differ from OpenRouter?

Wokey lists SWE-2 Flash at $0.015 input / $0.075 output per 1M tokens, against an official reference of $0.1 / $0.5. OpenRouter states it adds no markup on inference and charges its fee when you buy credits (5.5% by card). Wokey carries a curated set of models and has no per-provider routing parameters, so OpenRouter fits better if you need a wider catalog. The OpenRouter alternative page has the full comparison.

How do SWE-2 Flash and SWE-2.1 differ in price and context?

In the published price comparison, SWE-2 Flash lists input/output at $0.015 / $0.075 with a 262,144-token context window; SWE-2.1 lists $0.2 / $1 with a 262,144-token context window. This is a factual price-and-capacity comparison, not a quality ranking; also compare their supported API forms and capabilities.

Related models and documentation

Get API key · swe-2-flash