API del modello qwen/qwen3-coder-30b-a3b-instruct su OpenRouter, $0.07 / $0.28 per milione di token, contesto 262.144 token. Esempi in curl, Python e JavaScript, test dal vivo.
Qwen3-Coder-30B-A3B-Instruct is a 30.5B parameter Mixture-of-Experts (MoE) model with 128 experts (8 active per forward pass), designed for advanced code generation, repository-scale understanding, and agentic tool use. Built on the...
- Tipo
- Modello
- Fornitore
- OpenRouter
- ID del modello
qwen/qwen3-coder-30b-a3b-instruct- Prezzo
- A pagamento
- Prezzo input / output
- $0.07 / $0.28 per milione di token
- Accesso senza chiave
- No
- Variabile della chiave
OPENROUTER_API_KEY- URL di base (compatibile OpenAI)
https://openrouter.ai/api/v1- Contesto
- 262.144 token
- Input
- Testo
- Funzioni
- Output JSON, Chiamata di strumenti
- Valutazione degli sviluppatori
- Non ancora valutato
- Documentazione
- https://openrouter.ai/qwen/qwen3-coder-30b-a3b-instruct
Esempi di codice
cURL
curl https://openrouter.ai/api/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $OPENROUTER_API_KEY" \
-d '{"model":"qwen/qwen3-coder-30b-a3b-instruct","messages":[{"role":"user","content":"Ciao, presentati in una frase."}]}'Python
# pip install openai
import os
from openai import OpenAI
client = OpenAI(base_url="https://openrouter.ai/api/v1", api_key=os.environ["OPENROUTER_API_KEY"])
r = client.chat.completions.create(
model="qwen/qwen3-coder-30b-a3b-instruct",
messages=[{"role": "user", "content": "Ciao, presentati in una frase."}],
)
print(r.choices[0].message.content)JavaScript
// npm install openai
import OpenAI from 'openai'
const client = new OpenAI({ baseURL: 'https://openrouter.ai/api/v1', apiKey: process.env.OPENROUTER_API_KEY })
const r = await client.chat.completions.create({
model: 'qwen/qwen3-coder-30b-a3b-instruct',
messages: [{ role: 'user', content: 'Ciao, presentati in una frase.' }],
})
console.log(r.choices[0].message.content)
Genera il codice di integrazione →
Ricerche popolari
Domande frequenti
L’API di Qwen: Qwen3 Coder 30B A3B Instruct è gratuita?
No: Qwen: Qwen3 Coder 30B A3B Instruct è un’API a pagamento ($0.07 / $0.28 per milione di token).
Come chiamo Qwen: Qwen3 Coder 30B A3B Instruct dal mio codice?
Qwen: Qwen3 Coder 30B A3B Instruct offre un’API compatibile con OpenAI all’indirizzo https://openrouter.ai/api/v1: usa qualsiasi SDK OpenAI (Python, JavaScript…) con questo URL di base. Identificatore del modello: qwen/qwen3-coder-30b-a3b-instruct. Codice pronto all’uso (streaming, JSON, nuovi tentativi) è disponibile nella cassetta degli attrezzi per sviluppatori.
Qual è la finestra di contesto di Qwen: Qwen3 Coder 30B A3B Instruct?
Qwen: Qwen3 Coder 30B A3B Instruct accetta fino a 262.144 token di contesto (messaggio e cronologia).
Quali sono le alternative a Qwen: Qwen3 Coder 30B A3B Instruct?
API simili nel catalogo: Qwen: Qwen4 35B A3B, Qwen: Qwen4 Max, Qwen: Qwen3.8 Max Prime, Qwen: Qwen3.8 Omni Flash, Qwen: Qwen3.8 Max (0902).
Alternative
- Qwen: Qwen4 35B A3B — A pagamento
- Qwen: Qwen4 Max — A pagamento
- Qwen: Qwen3.8 Max Prime — A pagamento
- Qwen: Qwen3.8 Omni Flash — A pagamento
- Qwen: Qwen3.8 Max (0902) — A pagamento
- Qwen: Qwen3.8 Max (0902) (batch) — A pagamento
- Qwen: Qwen3.8 Flash — A pagamento
- Qwen: Qwen3.8 27B — A pagamento
- Qwen: Qwen3.8 27B (batch) — A pagamento
- Qwen: Qwen3.8 2.4T A95B — A pagamento
- Qwen: Qwen3.7 Flash — A pagamento
- Qwen: Qwen3.7 Plus — A pagamento