TensaHub › Hugging Face Inference

Qwen2.5-Coder-32B-Instruct · Cloudflare

API del modello Qwen/Qwen2.5-Coder-32B-Instruct:cloudflare su Hugging Face Inference, $0.66 / $1 per milione di token, contesto 32.768 token. Esempi in curl, Python e JavaScript, test dal vivo.

Prova e valuta nel catalogo

Qwen/Qwen2.5-Coder-32B-Instruct served by Cloudflare through the Hugging Face router.

Tipo
Modello
Fornitore
Hugging Face Inference
Hosting
Cloudflare
ID del modello
Qwen/Qwen2.5-Coder-32B-Instruct:cloudflare
Prezzo
A pagamento
Prezzo input / output
$0.66 / $1 per milione di token
Accesso senza chiave
No
Variabile della chiave
HF_TOKEN
URL di base (compatibile OpenAI)
https://router.huggingface.co/v1
Contesto
32.768 token
Input
Testo
Tempo di risposta
Primo token 369 ms · 44 token/s · disponibilità 100 %
Valutazione degli sviluppatori
Non ancora valutato
Documentazione
https://huggingface.co/Qwen/Qwen2.5-Coder-32B-Instruct

Esempi di codice

cURL

curl https://router.huggingface.co/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $HF_TOKEN" \
  -d '{"model":"Qwen/Qwen2.5-Coder-32B-Instruct:cloudflare","messages":[{"role":"user","content":"Ciao, presentati in una frase."}]}'

Python

# pip install openai
import os
from openai import OpenAI

client = OpenAI(base_url="https://router.huggingface.co/v1", api_key=os.environ["HF_TOKEN"])
r = client.chat.completions.create(
    model="Qwen/Qwen2.5-Coder-32B-Instruct:cloudflare",
    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://router.huggingface.co/v1', apiKey: process.env.HF_TOKEN })
const r = await client.chat.completions.create({
  model: 'Qwen/Qwen2.5-Coder-32B-Instruct:cloudflare',
  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 Qwen2.5-Coder-32B-Instruct · Cloudflare è gratuita?

No: Qwen2.5-Coder-32B-Instruct · Cloudflare è un’API a pagamento ($0.66 / $1 per milione di token).

Come chiamo Qwen2.5-Coder-32B-Instruct · Cloudflare dal mio codice?

Qwen2.5-Coder-32B-Instruct · Cloudflare offre un’API compatibile con OpenAI all’indirizzo https://router.huggingface.co/v1: usa qualsiasi SDK OpenAI (Python, JavaScript…) con questo URL di base. Identificatore del modello: Qwen/Qwen2.5-Coder-32B-Instruct:cloudflare. Codice pronto all’uso (streaming, JSON, nuovi tentativi) è disponibile nella cassetta degli attrezzi per sviluppatori.

Qual è la finestra di contesto di Qwen2.5-Coder-32B-Instruct · Cloudflare?

Qwen2.5-Coder-32B-Instruct · Cloudflare accetta fino a 32.768 token di contesto (messaggio e cronologia).

Quali sono le alternative a Qwen2.5-Coder-32B-Instruct · Cloudflare?

API simili nel catalogo: Qwen4-35B-A3B · AkashML, Qwen4-35B-A3B · Morph, Qwen3.8-27B · AkashML, Qwen3.8-27B · Cerebras, Qwen3.8-27B · Cloudflare.

Alternative