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>...
Reroute speaks the OpenAI Chat Completions format. Point any OpenAI SDK at https://reroute.wtf/api/v1 and use morph/morph-v3-large as the model.
curl https://reroute.wtf/api/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $REROUTE_API_KEY" \
-d '{
"model": "morph/morph-v3-large",
"messages": [
{ "role": "user", "content": "What is the meaning of life?" }
]
}'Set stream: true to receive server-sent events. The final chunk carries usage and cost.
curl -N https://reroute.wtf/api/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $REROUTE_API_KEY" \
-d '{ "model": "morph/morph-v3-large", "stream": true,
"messages": [{ "role": "user", "content": "Count to five" }] }'