TensaHub › OpenRouter

Thinking Machines: Inkling 2 Small

API del modello thinkingmachines/inkling-2-small su OpenRouter, $0.15 / $0.5 per milione di token, contesto 1.048.576 token. Esempi in curl, Python e JavaScript, test dal vivo.

Prova e valuta nel catalogo

Inkling 2 Small is an open-weight multimodal mixture-of-experts reasoning model from Thinking Machines Lab, with 17B active parameters out of 594B total. It is the first model in the second...

Tipo
Modello
Fornitore
OpenRouter
ID del modello
thinkingmachines/inkling-2-small
Prezzo
A pagamento
Prezzo input / output
$0.15 / $0.5 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
1.048.576 token
Input
Testo, Immagine
Funzioni
Ragionamento, Output JSON, Chiamata di strumenti
Valutazione degli sviluppatori
Non ancora valutato
Documentazione
https://openrouter.ai/thinkingmachines/inkling-2-small

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":"thinkingmachines/inkling-2-small","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="thinkingmachines/inkling-2-small",
    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: 'thinkingmachines/inkling-2-small',
  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 Thinking Machines: Inkling 2 Small è gratuita?

No: Thinking Machines: Inkling 2 Small è un’API a pagamento ($0.15 / $0.5 per milione di token).

Come chiamo Thinking Machines: Inkling 2 Small dal mio codice?

Thinking Machines: Inkling 2 Small 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: thinkingmachines/inkling-2-small. Codice pronto all’uso (streaming, JSON, nuovi tentativi) è disponibile nella cassetta degli attrezzi per sviluppatori.

Qual è la finestra di contesto di Thinking Machines: Inkling 2 Small?

Thinking Machines: Inkling 2 Small accetta fino a 1.048.576 token di contesto (messaggio e cronologia).

Quali sono le alternative a Thinking Machines: Inkling 2 Small?

API simili nel catalogo: Inkling-2-Mini · DeepInfra, Inkling-2-Mini · Io Net, Inkling-2-Mini · PrimeIntellect, Inkling-2-Small · Cloudflare, Inkling-2-Small · DeepInfra.

Alternative