API del modello morph/morph-v3-fast:batch su OpenRouter, $0.4 / $0.6 per milione di token, contesto 81.920 token. Esempi in curl, Python e JavaScript, test dal vivo.
Morph's fastest apply model for code edits. ~10,500 tokens/sec with 96% accuracy for rapid code transformations. The model requires the prompt to be in the following format: <instruction>{instruction}</instruction> <code>{initial_code}</code> <update>{edit_snippet}</update>...
- Tipo
- Modello
- Fornitore
- OpenRouter
- ID del modello
morph/morph-v3-fast:batch- Prezzo
- A pagamento
- Prezzo input / output
- $0.4 / $0.6 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
- 81.920 token
- Input
- Testo
- Valutazione degli sviluppatori
- Non ancora valutato
- Documentazione
- https://openrouter.ai/morph/morph-v3-fast:batch
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":"morph/morph-v3-fast:batch","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="morph/morph-v3-fast:batch",
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: 'morph/morph-v3-fast:batch',
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 Morph: Morph V3 Fast (batch) è gratuita?
No: Morph: Morph V3 Fast (batch) è un’API a pagamento ($0.4 / $0.6 per milione di token).
Come chiamo Morph: Morph V3 Fast (batch) dal mio codice?
Morph: Morph V3 Fast (batch) 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: morph/morph-v3-fast:batch. Codice pronto all’uso (streaming, JSON, nuovi tentativi) è disponibile nella cassetta degli attrezzi per sviluppatori.
Qual è la finestra di contesto di Morph: Morph V3 Fast (batch)?
Morph: Morph V3 Fast (batch) accetta fino a 81.920 token di contesto (messaggio e cronologia).
Quali sono le alternative a Morph: Morph V3 Fast (batch)?
API simili nel catalogo: Morph: Morph V3 Large, Morph: Morph V3 Large (batch), Morph: Morph V3 Fast.
Alternative
- Morph: Morph V3 Large — A pagamento
- Morph: Morph V3 Large (batch) — A pagamento
- Morph: Morph V3 Fast — A pagamento