API del modello morph/morph-v3-large:batch su OpenRouter, $0.45 / $0.95 per milione di token, contesto 262.144 token. Esempi in curl, Python e JavaScript, test dal vivo.
Morph's high-accuracy apply model for complex code edits. ~4,500 tokens/sec with 98% accuracy for precise code transformations. The model requires the prompt to be in the following format: <instruction>{instruction}</instruction> <code>{initial_code}</code>...
- Tipo
- Modello
- Fornitore
- OpenRouter
- ID del modello
morph/morph-v3-large:batch- Prezzo
- A pagamento
- Prezzo input / output
- $0.45 / $0.95 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
- Valutazione degli sviluppatori
- Non ancora valutato
- Documentazione
- https://openrouter.ai/morph/morph-v3-large: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-large: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-large: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-large: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 Large (batch) è gratuita?
No: Morph: Morph V3 Large (batch) è un’API a pagamento ($0.45 / $0.95 per milione di token).
Come chiamo Morph: Morph V3 Large (batch) dal mio codice?
Morph: Morph V3 Large (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-large: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 Large (batch)?
Morph: Morph V3 Large (batch) accetta fino a 262.144 token di contesto (messaggio e cronologia).
Quali sono le alternative a Morph: Morph V3 Large (batch)?
API simili nel catalogo: Morph: Morph V3 Large, Morph: Morph V3 Fast, Morph: Morph V3 Fast (batch).
Alternative
- Morph: Morph V3 Large — A pagamento
- Morph: Morph V3 Fast — A pagamento
- Morph: Morph V3 Fast (batch) — A pagamento