Qwen3 4B Instruct 2507

Hugging Face

Qwen's compact 4B instruct model with a 256K context window.

Modalities
IntextOuttext
Input / output
$0.01 / $0.03USD per 1M tokens
Context
262K
Providers
Live

Playground

Preparing playground

Providers

primary

API

POST/api/v1/chat/completionsOpenAI-compatible
qwen3-4b-instruct-2507
curl https://www.ninjachat.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $NINJACHAT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "qwen3-4b-instruct-2507",
    "messages": [{ "role": "user", "content": "Hello!" }],
    "stream": true
  }'
messagestemperaturemax_completion_tokenstop_pstopfrequency_penaltypresence_penaltyseedstreamuserroutingresponse_format

Pricing

Input
$0.01/M tokens
Cached input
$0.001/M tokens
Output
$0.03/M tokens

Published USD rates. Actual cost depends on input, output, cache usage and request options.