Morph: Morph V3 Fast

morph/morph-v3-fast

Характеристики

Контекстное окно
81,920
Входящие данные
Текст
Исходящие данные
Текст

Цены

Оплата по факту за использованные токены, цены за 1M токенов в рублях.

Входящие токены 79.00 ₽
Исходящие токены 118.50 ₽

Описание модели

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

API и примеры кода

Единый OpenAI-совместимый endpoint. Укажите base_url и ключ из личного кабинета.

curl https://app.cloudcompute.ru/api/v1/chat/completions \
  -H "Authorization: Bearer YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"morph/morph-v3-fast","messages":[{"role":"user","content":"Привет!"}]}'
from openai import OpenAI

client = OpenAI(
    base_url="https://app.cloudcompute.ru/api/v1",
    api_key="YOUR_KEY",
)

resp = client.chat.completions.create(
    model="morph/morph-v3-fast",
    messages=[{"role": "user", "content": "Привет!"}],
)
print(resp.choices[0].message.content)

Полная документация API →