TensaHub › OpenRouter

Morph: Morph V3 Fast

واجهة برمجة النموذج morph/morph-v3-fast لدى OpenRouter, $0.8 / $1.2 لكل مليون رمز, سياق 262,144 رمز. أمثلة بـ curl وPython وJavaScript، واختبار مباشر.

اختبر وقيّم في الفهرس

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>...

النوع
نموذج
المزوّد
OpenRouter
معرّف النموذج
morph/morph-v3-fast
التسعير
مدفوع
سعر الإدخال / الإخراج
$0.8 / $1.2 لكل مليون رمز
الوصول دون مفتاح
لا
متغيّر المفتاح
OPENROUTER_API_KEY
عنوان URL الأساسي (متوافق مع OpenAI)
https://openrouter.ai/api/v1
السياق
262,144 رمز
المدخلات
نص
الميزات
مخرجات JSON
تقييم المطوّرين
لم يُقيَّم بعد
التوثيق
https://openrouter.ai/morph/morph-v3-fast

أمثلة برمجية

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","messages":[{"role":"user","content":"مرحبًا، عرّف بنفسك في جملة واحدة."}]}'

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",
    messages=[{"role": "user", "content": "مرحبًا، عرّف بنفسك في جملة واحدة."}],
)
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',
  messages: [{ role: 'user', content: 'مرحبًا، عرّف بنفسك في جملة واحدة.' }],
})
console.log(r.choices[0].message.content)

توليد شيفرة الدمج →

عمليات بحث شائعة

الأسئلة الشائعة

هل واجهة Morph: Morph V3 Fast مجانية؟

لا: Morph: Morph V3 Fast واجهة مدفوعة ($0.8 / $1.2 لكل مليون رمز).

كيف أستدعي Morph: Morph V3 Fast من شيفرتي؟

يوفّر Morph: Morph V3 Fast واجهة متوافقة مع OpenAI على العنوان https://openrouter.ai/api/v1: استخدم أي مكتبة OpenAI ‏(Python أو JavaScript…) مع عنوان URL الأساسي هذا. معرّف النموذج: morph/morph-v3-fast. تتوفّر شيفرة جاهزة (بث، JSON، إعادة محاولة) في صندوق أدوات المطوّر.

ما حجم نافذة السياق في Morph: Morph V3 Fast؟

يقبل Morph: Morph V3 Fast حتى 262,144 رمز من السياق (الرسالة والسجل).

ما بدائل Morph: Morph V3 Fast؟

واجهات مشابهة في الفهرس: Morph: Morph V3 Large, Morph: Morph V3 Large (batch), Morph: Morph V3 Fast (batch).

بدائل