mirror of
https://github.com/hanzoai/site.git
synced 2026-11-21 01:07:08 +00:00
1 line
2.0 KiB
JSON
1 line
2.0 KiB
JSON
{"text":["Models","Morph","morph-v3-fast","Morph V3 Fast","Morph's fastest apply model for code edits.","Get API key","Try in Chat","Specifications","Context Window","262K","Modalities","text","Price","$0.890 in · $1.34 out, per million tokens","Model ID","morph/morph-v3-fast","Quick start","Get an API key →","TypeScript","Python","cURL","Go","import","OpenAI","from","openai","const","client = new","({","apiKey","process.env.HANZO_API_KEY","baseURL","https://api.hanzo.ai/v1","})","response =","await","client.chat.completions.","create","model","messages","[{","role","user","content","Hello!","}]","console.","log","response.choices",".message.content","client = OpenAI","api_key=os","environ","HANZO_API_KEY","],","base_url=","response = client","chat","completions","model=","messages=","print","response","choices","].","message","curl","https://api.hanzo.ai/v1/chat/completions","-H","Content-Type: application/json","Authorization: Bearer","-d","\"model\": \"morph/morph-v3-fast\",","\"messages\": [{\"role\": \"user\", \"content\": \"Hello!\"}]","package","main","context","fmt","os","github.com/sashabaranov/go-openai","func","()","cfg := openai","DefaultConfig","Getenv","))","cfg","BaseURL =","client := openai","NewClientWithConfig","resp","_ := client","CreateChatCompletion","Background","(),","ChatCompletionRequest","Model","Messages","[]","ChatCompletionMessage","Role","ChatMessageRoleUser","Content","},","Println","Choices","Message","More from Morph","Morph V3 Large","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>...","View all Morph models →","Use Morph V3 Fast via Hanzo AI","One API key. Every major model. OpenAI-compatible. Start free.","Get an API key","Browse All Models"],"links":["/models","/models/morph","https://platform.hanzo.ai/api-keys","/chat","/models/morph/morph-v3-large"]} |