Skip to content

DeepSeek ยท chat

deepseek-coder

deepseek/deepseek-coder

Input price
$0.140 / 1M tokens
Output price
$0.280 / 1M tokens
Context window
128K tokens
Lifecycle
stable

deepseek-coder for OpenAI-compatible gateway routing

deepseek-coder is a DeepSeek chat model in the Ferro Labs live catalog with a 128K tokens context window, 4K tokens maximum output, and capabilities including Function Calling, JSON Mode, and Prompt Caching, and more.

Token pricing is listed as $0.140 / 1M tokens for input tokens and $0.280 / 1M tokens for output tokens. Route calls through the Ferro Labs AI Gateway by sending model as deepseek/deepseek-coder to the OpenAI-compatible chat completions endpoint. The catalog lists this model as stable for normal gateway routing.

OpenAI-compatible usage example

curl https://api.ferrolabs.ai/v1/chat/completions \
  -H "Authorization: Bearer $GATEWAY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "deepseek/deepseek-coder", "messages": [{"role": "user", "content": "Hello!"}]}'

Capabilities

  • Function Calling
  • JSON Mode
  • Prompt Caching
  • Streaming

Modalities

Input

  • Text

Output

  • Text

More from DeepSeek

Catalog prices may change. Verify current provider terms before purchasing.