Files
Claude fb15e43c4c models: model pages re-captured from live hanzo.ai (465 of 470); More from prints each model's id; 'No published rate' as hanzo.ai
hanzo.ai's update also reached the model pages: their More from cards print
each model's id, and a model the gateway does not price reads 'No published
rate' under Price. All 470 model pages re-captured with capture.py's port()
(465 ok; 5 now 404 on hanzo.ai and are left as they were:
nvidia/nemotron-3.5-content-safety:free, openrouter/auto, auto-beta,
auto-code, free). More from is hanzo.ai's captured list in its order (its
list is no longer the gateway's); its cards and the Also rows show the id
hanzo.ai prints; Also's names are their own text. Once the gateway answers
without a model, Price reads 'No published rate'; a failed read keeps the
captured rate.

copycheck, 0 missing: aion-2.0, north-mini-code:free, deepseek-flash-latest,
claude-opus-5.5, hanzo kai/kai-1.8/enso/zen, gpt-5, gemma-4-31b-it:free,
lfm-2.5-2.6b:free, nemotron nano omni :free, s2.1-pro-free:free,
deepseek-v3.2, llama-4-maverick, gemini-flash-latest, command-a.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01P5YBdv7StJZXmK5oNtoxtW
2026-11-08 08:23:34 +00:00

55 lines
38 KiB
HTML

<div class="is_View _col-_platformweb_foreground _fd-column _dsp-block _shrink-1 _minH-100vh _minW-auto"><section aria-labelledby="_R_binpfiv5t75tf6bdb_" class="is_View _ox-_platformweb_clip _pos-relative _width-10037 _ox-hidden _oy-hidden _dsp-flex _fd-column _justify-center _minH-calc100svh-172784627 _mt-calc-1calc62003180138 _pt-calc0pxcalc447866377" data-slot="fold"><div aria-hidden="true" class="is_View _pos-absolute _t-0px _l-0px _r-0px _height-640px _pe-none _backgroundImage-radial-grad1214971095"></div><div class="is_View _fd-column _pos-relative _width-10037 _maxW-1320px _mr-auto _ml-auto _pr-page-gutter _pl-page-gutter _pt-max40pxmin8857263194 _pb-max48pxmin8857263194"><div class="is_View _fd-column _mb-c-space-6"><nav class="is_View _fd-row _fwr-wrap _items-center _justify-flex-start _gap-c-space-2 _mb-c-space-5"><a class="is_Text _col-0hover-pure-white _col-_light_muted-foreg108704142 _col-_light_0hover-foreground _col-neutral-300 _dsp-inline-flex _items-center _ws-inherit _td-none _fs-f-size-2 _lh-calc1--250--87537940352 _gap-c-space-2 _fw-500" data-slot="more" href="/models">Models</a><span class="is_Text _col-muted-foreg108704142 _fs-f-size-2 _lh-calc1--250--87537940352" data-slot="text">/</span><a class="is_Text _col-0hover-pure-white _col-_light_muted-foreg108704142 _col-_light_0hover-foreground _col-neutral-300 _dsp-inline-flex _items-center _ws-inherit _td-none _fs-f-size-2 _lh-calc1--250--87537940352 _gap-c-space-2 _fw-500" data-slot="more" href="/models/morph">Morph</a><span class="is_Text _col-muted-foreg108704142 _fs-f-size-2 _lh-calc1--250--87537940352" data-slot="text">/</span><span class="is_Text _col-foreground _fs-f-size-2 _lh-calc1--250--87537940352" data-slot="text">morph-v3-fast</span></nav></div><div class="is_View _dsp-grid _gridTemplateColumns-minmax01fr1234957 _items-center _gap-max36pxmin5518920252 _width-10037"><div class="is_View _text-_platformweb_center _fd-column _minW-0px _gap-c-space-4 _items-center"><div class="is_View _self-center"><div class="is_View _btlr-_platformweb_9999px _btrr-_platformweb_9999px _bbrr-_platformweb_9999px _bblr-_platformweb_9999px _dsp-_platformweb_inline-flex _width-_platformweb_fit-content _textDecoration-_platformweb_none _self-flex-start _dsp-inline-flex _fd-row _items-center _justify-center _gap-6px _pr-12px _pl-12px _pt-4px _pb-4px _btlr-9999px _btrr-9999px _bbrr-9999px _bblr-9999px _bg-transparent _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _btc-border-stro3513 _brc-border-stro3513 _borderBottomColor-border-stro3513 _borderLeftColor-border-stro3513 _pos-relative _ox-hidden _oy-hidden _bbs-solid _bts-solid _bls-solid _brs-solid" data-label=""><span class="is_Text font_mono _col-muted-foreg108704142 _ff-f-family _fs-f-size-1 _lh-f-lineHeigh112920 _fw-600" data-slot="text">Morph</span></div></div><h1 class="is_Text font_heading _fs-_sm_f-size-11 _fs-_lg_text-6xl _col-foreground _dsp-revert-laye114 _ws-inherit _ff-f-family _fs-f-size-10 _fw-497 _lh-1--19 _ls--0--012em _textWrap-balance _width-10037 _maxW-900px" data-slot="display" id="_R_binpfiv5t75tf6bdb_">Morph V3 Fast</h1><p class="is_Text _textWrap-_platformweb_balance _col-muted-foreg108704142 _dsp-revert-laye114 _ws-inherit _fs-f-size-4 _lh-1--65 _ls-0px _textWrap-pretty _maxW-600px" data-slot="lede">Morph's fastest apply model for code edits.</p><div class="is_View _fd-row _mt-c-space-2 _fwr-wrap _gap-c-space-3 _justify-center"><a class="is_Text _o-0hover-0--92 _bg-0hover-neutral-100 _col-0hover-pure-black _bg-_light_foreground _col-_light_background _bxsh-_light_04px16px-6p44459065 _bg-_light_0hover-foreground _col-_light_0hover-background _col-pure-black _dsp-inline-flex _items-center _ws-inherit _td-none _fs-f-size-2 _lh-calc1--250--87537940352 _justify-center _gap-c-space-2 _minH-44px _pr-c-space-5 _pl-c-space-5 _btlr-9999px _btrr-9999px _bbrr-9999px _bblr-9999px _fw-500 _backdropFilter-chrome-blur _WebkitBackdropFilter-chrome-blur _btw-0px _brw-0px _borderBottomWidth-0px _borderLeftWidth-0px _bg-pure-white _bxsh-04px20px-2p736498123 _bbs-solid _bts-solid _bls-solid _brs-solid" data-fill="" data-slot="action" href="https://platform.hanzo.ai/api-keys">Get API key<!-- --> <svg aria-hidden="true" class="lucide lucide-arrow-right" data-i18n-mirror="true" fill="none" height="16" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M5 12h14"></path><path d="m12 5 7 7-7 7"></path></svg></a><a class="is_Text _bg-0hover-color-mixin40471350 _btc-0hover-white-22 _brc-0hover-white-22 _borderBottomColor-0hover-white-22 _borderLeftColor-0hover-white-22 _col-0hover-pure-white _btc-_light_color-mixin1775990597 _brc-_light_color-mixin1775990597 _borderBottomColor-_light_color-mixin1775990597 _borderLeftColor-_light_color-mixin1775990597 _bg-_light_color-mixin1432854749 _col-_light_foreground _bxsh-_light_02px10px-4p401273020 _btc-_light_0hover-color-mixin2108231940 _brc-_light_0hover-color-mixin2108231940 _borderBottomColor-_light_0hover-color-mixin2108231940 _borderLeftColor-_light_0hover-color-mixin2108231940 _bg-_light_0hover-pure-white _col-_light_0hover-foreground _col-foreground _dsp-inline-flex _items-center _ws-inherit _td-none _fs-f-size-2 _lh-calc1--250--87537940352 _justify-center _gap-c-space-2 _minH-44px _pr-c-space-5 _pl-c-space-5 _btlr-9999px _btrr-9999px _bbrr-9999px _bblr-9999px _fw-500 _backdropFilter-chrome-blur _WebkitBackdropFilter-chrome-blur _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _bts-solid _brs-solid _bbs-solid _bls-solid _btc-white-14 _brc-white-14 _borderBottomColor-white-14 _borderLeftColor-white-14 _bg-color-mixin1333059374 _bxsh-inset01px00639578201" data-slot="action" href="/chat">Try in Chat</a></div></div></div></div></section><section class="is_View _ox-_platformweb_clip _oy-_platformweb_clip _scrollMarginTop-_platformweb_96 _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto _pos-relative _pt-c-space-12 _pb-c-space-12 _pr-maxvar--pag1616741076 _pl-maxvar--pag1616741076 _btw-1px _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _bts-solid" id="specs"><div class="is_View _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto _width-10037 _maxW-1152px _mr-auto _ml-auto"><div class="is_View _fd-column _gap-c-space-5"><div class="is_View _fd-column _gap-c-space-3 _minW-0px" data-facts="Specifications"><div class="is_View _fd-row _items-center _gap-c-space-2 _fwr-wrap"><h2 class="is_Text _col-text-primar121 _fs-f-size-4 _lh-calc1--751--12537940352 _fw-600 _dsp-block" data-slot="text">Specifications</h2></div><div class="is_View _dsp-grid _gridTemplateColumns-repeatauto-1572928587 _gap-1px _shrink-1 _minW-auto _minH-auto _bg-border _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _btlr-radius-xl _btrr-radius-xl _bbrr-radius-xl _bblr-radius-xl _ox-hidden _oy-hidden _bbs-solid _bts-solid _bls-solid _brs-solid" data-slot="grid" style="font-family:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit"><div class="is_View _fd-column _gap-4px _pr-c-space-4 _pl-c-space-4 _pt-c-space-3--53 _pb-c-space-3--53 _bg-background" style="min-width:0px"><span class="is_Text _tt-_platformweb_uppercase _ls-_platformweb_0--04em _col-muted-foreg108704142 _fs-f-size-1 _lh-f-lineHeigh112920 _fw-500" data-slot="text">Context Window</span><span class="is_Text _overflowWrap-_platformweb_anywhere _col-ink _fs-f-size-2 _lh-calc1--250--87537940352 _fw-600" data-slot="text">262K</span></div><div class="is_View _fd-column _gap-4px _pr-c-space-4 _pl-c-space-4 _pt-c-space-3--53 _pb-c-space-3--53 _bg-background" style="min-width:0px"><span class="is_Text _tt-_platformweb_uppercase _ls-_platformweb_0--04em _col-muted-foreg108704142 _fs-f-size-1 _lh-f-lineHeigh112920 _fw-500" data-slot="text">Modalities</span><span class="is_Text _overflowWrap-_platformweb_anywhere _col-ink _fs-f-size-2 _lh-calc1--250--87537940352 _fw-600" data-slot="text">text</span></div><div class="is_View _fd-column _gap-4px _pr-c-space-4 _pl-c-space-4 _pt-c-space-3--53 _pb-c-space-3--53 _bg-background" style="min-width:0px"><span class="is_Text _tt-_platformweb_uppercase _ls-_platformweb_0--04em _col-muted-foreg108704142 _fs-f-size-1 _lh-f-lineHeigh112920 _fw-500" data-slot="text">Price</span><span class="is_Text _overflowWrap-_platformweb_anywhere _col-ink _fs-f-size-2 _lh-calc1--250--87537940352 _fw-600" data-slot="text"><span data-api="loading" title="Reading api.hanzo.ai">…</span></span></div><div class="is_View _fd-column _gap-4px _pr-c-space-4 _pl-c-space-4 _pt-c-space-3--53 _pb-c-space-3--53 _bg-background" style="min-width:0px"><span class="is_Text _tt-_platformweb_uppercase _ls-_platformweb_0--04em _col-muted-foreg108704142 _fs-f-size-1 _lh-f-lineHeigh112920 _fw-500" data-slot="text">Model ID</span><span class="is_Text font_mono _overflowWrap-_platformweb_anywhere _col-ink _fs-f-size-2 _lh-calc1--250--87537940352 _fw-600 _ff-f-family" data-slot="text">morph/morph-v3-fast</span></div></div></div></div></div></section><section class="is_View _ox-_platformweb_clip _oy-_platformweb_clip _scrollMarginTop-_platformweb_96 _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto _pos-relative _pt-c-space-12 _pb-c-space-12 _pr-maxvar--pag1616741076 _pl-maxvar--pag1616741076 _btw-1px _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _bts-solid" id="quickstart"><div class="is_View _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto _width-10037 _maxW-1024px _mr-auto _ml-auto"><div class="is_View _fd-column _gap-c-space-4"><div class="is_View _fd-row _items-baseline _justify-space-betwe3241 _gap-c-space-3 _fwr-wrap"><h2 class="is_Text _col-text-primar121 _fs-f-size-4 _lh-calc1--751--12537940352 _fw-600 _dsp-block" data-slot="text">Quick start</h2><a class="is_Text _col-0hover-pure-white _col-_light_muted-foreg108704142 _col-_light_0hover-foreground _col-neutral-300 _dsp-inline-flex _items-center _ws-inherit _td-none _fs-f-size-2 _lh-calc1--250--87537940352 _gap-c-space-2 _fw-500" data-slot="more" href="https://platform.hanzo.ai/api-keys">Get an API key →</a></div><div class="is_View _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto"><div aria-label="Language" class="is_View _width-_platformweb_fit-content _maxW-_platformweb_10037 _ox-_platformweb_auto _fd-row _gap-4px _pt-4px _pr-4px _pb-4px _pl-4px _mb-c-space-3 _btlr-radius-full _btrr-radius-full _bbrr-radius-full _bblr-radius-full _bg-secondary _self-flex-start" role="tablist"><button aria-controls="sample-0" aria-selected="true" class="is_Text _col-ink _pr-14px _pl-14px _pt-6px _pb-6px _btlr-radius-full _btrr-radius-full _bbrr-radius-full _bblr-radius-full _btw-0px _brw-0px _borderBottomWidth-0px _borderLeftWidth-0px _bg-background _fs-f-size-2 _fw-600 _cur-pointer _ws-nowrap _bbs-solid _bts-solid _bls-solid _brs-solid" data-slot="text" id="tab-0" role="tab" type="button">TypeScript</button><button aria-controls="sample-1" aria-selected="false" class="is_Text _col-muted-foreg108704142 _pr-14px _pl-14px _pt-6px _pb-6px _btlr-radius-full _btrr-radius-full _bbrr-radius-full _bblr-radius-full _btw-0px _brw-0px _borderBottomWidth-0px _borderLeftWidth-0px _bg-transparent _fs-f-size-2 _fw-500 _cur-pointer _ws-nowrap _bbs-solid _bts-solid _bls-solid _brs-solid" data-slot="text" id="tab-1" role="tab" type="button">Python</button><button aria-controls="sample-2" aria-selected="false" class="is_Text _col-muted-foreg108704142 _pr-14px _pl-14px _pt-6px _pb-6px _btlr-radius-full _btrr-radius-full _bbrr-radius-full _bblr-radius-full _btw-0px _brw-0px _borderBottomWidth-0px _borderLeftWidth-0px _bg-transparent _fs-f-size-2 _fw-500 _cur-pointer _ws-nowrap _bbs-solid _bts-solid _bls-solid _brs-solid" data-slot="text" id="tab-2" role="tab" type="button">cURL</button><button aria-controls="sample-3" aria-selected="false" class="is_Text _col-muted-foreg108704142 _pr-14px _pl-14px _pt-6px _pb-6px _btlr-radius-full _btrr-radius-full _bbrr-radius-full _bblr-radius-full _btw-0px _brw-0px _borderBottomWidth-0px _borderLeftWidth-0px _bg-transparent _fs-f-size-2 _fw-500 _cur-pointer _ws-nowrap _bbs-solid _bts-solid _bls-solid _brs-solid" data-slot="text" id="tab-3" role="tab" type="button">Go</button></div><div aria-labelledby="tab-0" class="is_View _dsp-flex _shrink-1 _minH-auto _minW-auto _fd-column _ox-hidden _oy-hidden _btlr-radius-xl _btrr-radius-xl _bbrr-radius-xl _bblr-radius-xl _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _bg-background _bbs-solid _bts-solid _bls-solid _brs-solid" id="sample-0" role="tabpanel"><div class="is_View _fd-row _items-center _justify-space-betwe3241 _pr-c-space-4 _pl-c-space-4 _pt-c-space-2 _pb-c-space-2 _borderBottomWidth-1px _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _bg-panel _bbs-solid"><span class="is_Text font_mono _col-muted-foreg108704142 _ff-f-family _fs-f-size-1" data-slot="text">TypeScript</span><div aria-label="Copy" class="is_View _bg-0hover-edge _o-0hover-1 _bg-0active-raised _fd-row _width-24px _height-24px _items-center _justify-center _btlr-c-radius-2 _btrr-c-radius-2 _bbrr-c-radius-2 _bblr-c-radius-2 _cur-pointer _o-0--7" role="button" tabindex="0" title="Copy"><svg fill="none" height="14" stroke="var(--color)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="14"><rect height="14" rx="2" ry="2" stroke="var(--color)" width="14" x="8" y="8"></rect><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" stroke="var(--color)"></path></svg></div></div><pre class="is_Text font_mono _bg-_platformweb_light-darkv602359144 _col-codeInk _fs-f-size-2 _lh-leading-rel3008278 _dsp-block _mt-0px _mr-0px _mb-0px _ml-0px _pt-16px _pr-16px _pb-16px _pl-16px _ox-auto _ws-pre _ff-f-family" data-slot="text"><code><span><span data-code="keyword" data-face="bold">import</span><span data-code="ink"> OpenAI </span><span data-code="keyword" data-face="bold">from</span><span data-code="ink"> </span><span data-code="punctuation">'</span><span data-code="string">openai</span><span data-code="punctuation">'</span>
</span><span>
</span><span><span data-code="keyword" data-face="bold">const</span><span data-code="ink"> client = new </span><span data-code="bright">OpenAI</span><span data-code="punctuation">({</span>
</span><span><span data-code="ink"> </span><span data-code="key">apiKey</span><span data-code="punctuation">:</span><span data-code="ink"> process.env.HANZO_API_KEY</span><span data-code="punctuation">,</span>
</span><span><span data-code="ink"> </span><span data-code="key">baseURL</span><span data-code="punctuation">:</span><span data-code="ink"> </span><span data-code="punctuation">'</span><span data-code="string">https://api.hanzo.ai/v1</span><span data-code="punctuation">'</span>
</span><span><span data-code="punctuation">})</span>
</span><span>
</span><span><span data-code="keyword" data-face="bold">const</span><span data-code="ink"> response = </span><span data-code="keyword" data-face="bold">await</span><span data-code="ink"> client.chat.completions.</span><span data-code="bright">create</span><span data-code="punctuation">({</span>
</span><span><span data-code="ink"> </span><span data-code="key">model</span><span data-code="punctuation">:</span><span data-code="ink"> </span><span data-code="punctuation">'</span><span data-code="string">morph/morph-v3-fast</span><span data-code="punctuation">'</span><span data-code="punctuation">,</span>
</span><span><span data-code="ink"> </span><span data-code="key">messages</span><span data-code="punctuation">:</span><span data-code="ink"> </span><span data-code="punctuation">[{</span><span data-code="ink"> </span><span data-code="key">role</span><span data-code="punctuation">:</span><span data-code="ink"> </span><span data-code="punctuation">'</span><span data-code="string">user</span><span data-code="punctuation">'</span><span data-code="punctuation">,</span><span data-code="ink"> </span><span data-code="key">content</span><span data-code="punctuation">:</span><span data-code="ink"> </span><span data-code="punctuation">'</span><span data-code="string">Hello!</span><span data-code="punctuation">'</span><span data-code="ink"> </span><span data-code="punctuation">}]</span>
</span><span><span data-code="punctuation">})</span>
</span><span>
</span><span><span data-code="ink">console.</span><span data-code="bright">log</span><span data-code="punctuation">(</span><span data-code="ink">response.choices</span><span data-code="punctuation">[</span><span data-code="number">0</span><span data-code="punctuation">]</span><span data-code="ink">.message.content</span><span data-code="punctuation">)</span></span></code></pre></div><div aria-labelledby="tab-1" class="is_View _dsp-none _shrink-1 _minH-auto _minW-auto _fd-column _ox-hidden _oy-hidden _btlr-radius-xl _btrr-radius-xl _bbrr-radius-xl _bblr-radius-xl _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _bg-background _bbs-solid _bts-solid _bls-solid _brs-solid" hidden="" id="sample-1" role="tabpanel"><div class="is_View _fd-row _items-center _justify-space-betwe3241 _pr-c-space-4 _pl-c-space-4 _pt-c-space-2 _pb-c-space-2 _borderBottomWidth-1px _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _bg-panel _bbs-solid"><span class="is_Text font_mono _col-muted-foreg108704142 _ff-f-family _fs-f-size-1" data-slot="text">Python</span><div aria-label="Copy" class="is_View _bg-0hover-edge _o-0hover-1 _bg-0active-raised _fd-row _width-24px _height-24px _items-center _justify-center _btlr-c-radius-2 _btrr-c-radius-2 _bbrr-c-radius-2 _bblr-c-radius-2 _cur-pointer _o-0--7" role="button" tabindex="0" title="Copy"><svg fill="none" height="14" stroke="var(--color)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="14"><rect height="14" rx="2" ry="2" stroke="var(--color)" width="14" x="8" y="8"></rect><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" stroke="var(--color)"></path></svg></div></div><pre class="is_Text font_mono _bg-_platformweb_light-darkv602359144 _col-codeInk _fs-f-size-2 _lh-leading-rel3008278 _dsp-block _mt-0px _mr-0px _mb-0px _ml-0px _pt-16px _pr-16px _pb-16px _pl-16px _ox-auto _ws-pre _ff-f-family" data-slot="text"><code><span><span data-code="keyword" data-face="bold">from</span><span data-code="ink"> openai </span><span data-code="keyword" data-face="bold">import</span><span data-code="ink"> OpenAI</span>
</span><span>
</span><span><span data-code="ink">client = OpenAI</span><span data-code="punctuation">(</span>
</span><span><span data-code="ink"> api_key=os</span><span data-code="punctuation">.</span><span data-code="ink">environ</span><span data-code="punctuation">[</span><span data-code="punctuation">"</span><span data-code="string">HANZO_API_KEY</span><span data-code="punctuation">"</span><span data-code="punctuation">],</span>
</span><span><span data-code="ink"> base_url=</span><span data-code="punctuation">"</span><span data-code="string">https://api.hanzo.ai/v1</span><span data-code="punctuation">"</span>
</span><span><span data-code="punctuation">)</span>
</span><span>
</span><span><span data-code="ink">response = client</span><span data-code="punctuation">.</span><span data-code="ink">chat</span><span data-code="punctuation">.</span><span data-code="ink">completions</span><span data-code="punctuation">.</span><span data-code="ink">create</span><span data-code="punctuation">(</span>
</span><span><span data-code="ink"> model=</span><span data-code="punctuation">"</span><span data-code="string">morph/morph-v3-fast</span><span data-code="punctuation">"</span><span data-code="punctuation">,</span>
</span><span><span data-code="ink"> messages=</span><span data-code="punctuation">[{</span><span data-code="punctuation">"</span><span data-code="string">role</span><span data-code="punctuation">"</span><span data-code="punctuation">:</span><span data-code="ink"> </span><span data-code="punctuation">"</span><span data-code="string">user</span><span data-code="punctuation">"</span><span data-code="punctuation">,</span><span data-code="ink"> </span><span data-code="punctuation">"</span><span data-code="string">content</span><span data-code="punctuation">"</span><span data-code="punctuation">:</span><span data-code="ink"> </span><span data-code="punctuation">"</span><span data-code="string">Hello!</span><span data-code="punctuation">"</span><span data-code="punctuation">}]</span>
</span><span><span data-code="punctuation">)</span>
</span><span>
</span><span><span data-code="bright">print</span><span data-code="punctuation">(</span><span data-code="ink">response</span><span data-code="punctuation">.</span><span data-code="ink">choices</span><span data-code="punctuation">[</span><span data-code="number">0</span><span data-code="punctuation">].</span><span data-code="ink">message</span><span data-code="punctuation">.</span><span data-code="ink">content</span><span data-code="punctuation">)</span></span></code></pre></div><div aria-labelledby="tab-2" class="is_View _dsp-none _shrink-1 _minH-auto _minW-auto _fd-column _ox-hidden _oy-hidden _btlr-radius-xl _btrr-radius-xl _bbrr-radius-xl _bblr-radius-xl _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _bg-background _bbs-solid _bts-solid _bls-solid _brs-solid" hidden="" id="sample-2" role="tabpanel"><div class="is_View _fd-row _items-center _justify-space-betwe3241 _pr-c-space-4 _pl-c-space-4 _pt-c-space-2 _pb-c-space-2 _borderBottomWidth-1px _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _bg-panel _bbs-solid"><span class="is_Text font_mono _col-muted-foreg108704142 _ff-f-family _fs-f-size-1" data-slot="text">cURL</span><div aria-label="Copy" class="is_View _bg-0hover-edge _o-0hover-1 _bg-0active-raised _fd-row _width-24px _height-24px _items-center _justify-center _btlr-c-radius-2 _btrr-c-radius-2 _bbrr-c-radius-2 _bblr-c-radius-2 _cur-pointer _o-0--7" role="button" tabindex="0" title="Copy"><svg fill="none" height="14" stroke="var(--color)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="14"><rect height="14" rx="2" ry="2" stroke="var(--color)" width="14" x="8" y="8"></rect><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" stroke="var(--color)"></path></svg></div></div><pre class="is_Text font_mono _bg-_platformweb_light-darkv602359144 _col-codeInk _fs-f-size-2 _lh-leading-rel3008278 _dsp-block _mt-0px _mr-0px _mb-0px _ml-0px _pt-16px _pr-16px _pb-16px _pl-16px _ox-auto _ws-pre _ff-f-family" data-slot="text"><code><span><span data-code="bright">curl</span><span data-code="ink"> </span><span data-code="key">https://api.hanzo.ai/v1/chat/completions</span><span data-code="ink"> </span><span data-code="punctuation">\</span>
</span><span><span data-code="ink"> </span><span data-code="bright">-H</span><span data-code="ink"> </span><span data-code="punctuation">"</span><span data-code="string">Content-Type: application/json</span><span data-code="punctuation">"</span><span data-code="ink"> </span><span data-code="punctuation">\</span>
</span><span><span data-code="ink"> </span><span data-code="bright">-H</span><span data-code="ink"> </span><span data-code="punctuation">"</span><span data-code="string">Authorization: Bearer </span><span data-code="punctuation">$</span><span data-code="string">HANZO_API_KEY</span><span data-code="punctuation">"</span><span data-code="ink"> </span><span data-code="punctuation">\</span>
</span><span><span data-code="ink"> </span><span data-code="bright">-d</span><span data-code="ink"> </span><span data-code="punctuation">'</span><span data-code="string">{</span>
</span><span><span data-code="string"> "model": "morph/morph-v3-fast",</span>
</span><span><span data-code="string"> "messages": [{"role": "user", "content": "Hello!"}]</span>
</span><span><span data-code="string"> }</span><span data-code="punctuation">'</span></span></code></pre></div><div aria-labelledby="tab-3" class="is_View _dsp-none _shrink-1 _minH-auto _minW-auto _fd-column _ox-hidden _oy-hidden _btlr-radius-xl _btrr-radius-xl _bbrr-radius-xl _bblr-radius-xl _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _bg-background _bbs-solid _bts-solid _bls-solid _brs-solid" hidden="" id="sample-3" role="tabpanel"><div class="is_View _fd-row _items-center _justify-space-betwe3241 _pr-c-space-4 _pl-c-space-4 _pt-c-space-2 _pb-c-space-2 _borderBottomWidth-1px _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _bg-panel _bbs-solid"><span class="is_Text font_mono _col-muted-foreg108704142 _ff-f-family _fs-f-size-1" data-slot="text">Go</span><div aria-label="Copy" class="is_View _bg-0hover-edge _o-0hover-1 _bg-0active-raised _fd-row _width-24px _height-24px _items-center _justify-center _btlr-c-radius-2 _btrr-c-radius-2 _bbrr-c-radius-2 _bblr-c-radius-2 _cur-pointer _o-0--7" role="button" tabindex="0" title="Copy"><svg fill="none" height="14" stroke="var(--color)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="14"><rect height="14" rx="2" ry="2" stroke="var(--color)" width="14" x="8" y="8"></rect><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" stroke="var(--color)"></path></svg></div></div><pre class="is_Text font_mono _bg-_platformweb_light-darkv602359144 _col-codeInk _fs-f-size-2 _lh-leading-rel3008278 _dsp-block _mt-0px _mr-0px _mb-0px _ml-0px _pt-16px _pr-16px _pb-16px _pl-16px _ox-auto _ws-pre _ff-f-family" data-slot="text"><code><span><span data-code="keyword" data-face="bold">package</span><span data-code="ink"> main</span>
</span><span>
</span><span><span data-code="keyword" data-face="bold">import</span><span data-code="ink"> </span><span data-code="punctuation">(</span>
</span><span><span data-code="ink"> </span><span data-code="punctuation">"</span><span data-code="string">context</span><span data-code="punctuation">"</span>
</span><span><span data-code="ink"> </span><span data-code="punctuation">"</span><span data-code="string">fmt</span><span data-code="punctuation">"</span>
</span><span><span data-code="ink"> </span><span data-code="punctuation">"</span><span data-code="string">os</span><span data-code="punctuation">"</span>
</span><span>
</span><span><span data-code="ink"> </span><span data-code="punctuation">"</span><span data-code="string">github.com/sashabaranov/go-openai</span><span data-code="punctuation">"</span>
</span><span><span data-code="punctuation">)</span>
</span><span>
</span><span><span data-code="keyword" data-face="bold">func</span><span data-code="ink"> </span><span data-code="bright">main</span><span data-code="punctuation">()</span><span data-code="ink"> </span><span data-code="punctuation">{</span>
</span><span><span data-code="ink"> cfg := openai</span><span data-code="punctuation">.</span><span data-code="bright">DefaultConfig</span><span data-code="punctuation">(</span><span data-code="ink">os</span><span data-code="punctuation">.</span><span data-code="bright">Getenv</span><span data-code="punctuation">(</span><span data-code="punctuation">"</span><span data-code="string">HANZO_API_KEY</span><span data-code="punctuation">"</span><span data-code="punctuation">))</span>
</span><span><span data-code="ink"> cfg</span><span data-code="punctuation">.</span><span data-code="ink">BaseURL = </span><span data-code="punctuation">"</span><span data-code="string">https://api.hanzo.ai/v1</span><span data-code="punctuation">"</span>
</span><span><span data-code="ink"> client := openai</span><span data-code="punctuation">.</span><span data-code="bright">NewClientWithConfig</span><span data-code="punctuation">(</span><span data-code="ink">cfg</span><span data-code="punctuation">)</span>
</span><span>
</span><span><span data-code="ink"> resp</span><span data-code="punctuation">,</span><span data-code="ink"> _ := client</span><span data-code="punctuation">.</span><span data-code="bright">CreateChatCompletion</span><span data-code="punctuation">(</span><span data-code="ink">context</span><span data-code="punctuation">.</span><span data-code="bright">Background</span><span data-code="punctuation">(),</span>
</span><span><span data-code="ink"> openai</span><span data-code="punctuation">.</span><span data-code="ink">ChatCompletionRequest</span><span data-code="punctuation">{</span>
</span><span><span data-code="ink"> Model</span><span data-code="punctuation">:</span><span data-code="ink"> </span><span data-code="punctuation">"</span><span data-code="string">morph/morph-v3-fast</span><span data-code="punctuation">"</span><span data-code="punctuation">,</span>
</span><span><span data-code="ink"> Messages</span><span data-code="punctuation">:</span><span data-code="ink"> </span><span data-code="punctuation">[]</span><span data-code="ink">openai</span><span data-code="punctuation">.</span><span data-code="ink">ChatCompletionMessage</span><span data-code="punctuation">{</span>
</span><span><span data-code="ink"> </span><span data-code="punctuation">{</span><span data-code="ink">Role</span><span data-code="punctuation">:</span><span data-code="ink"> openai</span><span data-code="punctuation">.</span><span data-code="ink">ChatMessageRoleUser</span><span data-code="punctuation">,</span><span data-code="ink"> Content</span><span data-code="punctuation">:</span><span data-code="ink"> </span><span data-code="punctuation">"</span><span data-code="string">Hello!</span><span data-code="punctuation">"</span><span data-code="punctuation">},</span>
</span><span><span data-code="ink"> </span><span data-code="punctuation">},</span>
</span><span><span data-code="ink"> </span><span data-code="punctuation">},</span>
</span><span><span data-code="ink"> </span><span data-code="punctuation">)</span>
</span><span><span data-code="ink"> fmt</span><span data-code="punctuation">.</span><span data-code="bright">Println</span><span data-code="punctuation">(</span><span data-code="ink">resp</span><span data-code="punctuation">.</span><span data-code="ink">Choices</span><span data-code="punctuation">[</span><span data-code="number">0</span><span data-code="punctuation">].</span><span data-code="ink">Message</span><span data-code="punctuation">.</span><span data-code="ink">Content</span><span data-code="punctuation">)</span>
</span><span><span data-code="punctuation">}</span></span></code></pre></div></div><span class="is_Text _col-muted-foreg108704142 _fs-f-size-2 _lh-calc1--250--87537940352" data-price="" data-slot="text"><span data-api="loading" title="Reading api.hanzo.ai">…</span></span></div></div></section><section class="is_View _ox-_platformweb_clip _oy-_platformweb_clip _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto _pos-relative _pt-c-space-12 _pb-c-space-12 _pr-maxvar--pag1616741076 _pl-maxvar--pag1616741076 _btw-1px _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _background-color-mixin526551628 _bts-solid"><div class="is_View _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto _width-10037 _maxW-1152px _mr-auto _ml-auto"><h2 class="is_Text _col-text-primar121 _fs-f-size-4 _lh-calc1--751--12537940352 _fw-600 _dsp-block _mb-24px" data-slot="text">More from Morph</h2><div class="is_View _dsp-grid _gridTemplateColumns-repeatauto-461578505 _gap-16px _shrink-1 _minW-auto _minH-auto" data-slot="grid" style="font-family:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit"><a class="is_Text _btc-0hover-border-stro3513 _brc-0hover-border-stro3513 _borderBottomColor-0hover-border-stro3513 _borderLeftColor-0hover-border-stro3513 _col-revert-laye114 _containerType-normal _dsp-flex _height-10037 _ws-inherit _td-none _pt-24px _pr-24px _pb-24px _pl-24px _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _bts-solid _brs-solid _bbs-solid _bls-solid _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _btlr-radius-2xl _btrr-radius-2xl _bbrr-radius-2xl _bblr-radius-2xl _fd-column _gap-16px _bg-color-mixin2114899530 t_group_true" data-slot="leaf" href="/models/morph/morph-v3-large" style="min-width:0px"><div class="is_View _fd-row _items-flex-start _justify-space-betwe3241 _gap-c-space-3"><div class="is_View _fd-row _items-center _gap-c-space-3 _shrink-1"><span class="is_View"><svg aria-hidden="true" fill="currentColor" fill-rule="evenodd" focusable="false" height="22" viewbox="0 0 24 24" width="22"><path d="M7.941 2c.23 0 .452.073.638.21.186.136.325.328.397.55l.593 1.814c.073.221.212.413.397.55.186.136.409.21.638.21h2.791c.23 0 .452-.074.638-.21a1.11 1.11 0 00.397-.55l.594-1.815a1.11 1.11 0 01.397-.55c.185-.136.408-.209.637-.209h1.7c.23 0 .453.073.639.21.185.136.324.328.397.55l.652 1.994c.118.361.41.635.77.728l2.957.752c.236.06.446.199.596.394.15.195.23.436.231.684v9.376c0 .248-.081.488-.231.684a1.09 1.09 0 01-.595.394l-2.957.752a1.086 1.086 0 00-.477.263 1.114 1.114 0 00-.293.465l-.653 1.994a1.11 1.11 0 01-.396.55c-.186.136-.41.21-.638.21h-1.702c-.229 0-.452-.073-.637-.21a1.11 1.11 0 01-.397-.55l-.364-1.11a1.131 1.131 0 01.15-1.002 1.074 1.074 0 01.885-.462h2.85c.29 0 .567-.116.772-.325.204-.208.32-.49.32-.785V6.444c0-.294-.116-.577-.32-.785a1.08 1.08 0 00-.771-.326h-3.273c-.29 0-.567.117-.772.326-.204.208-.32.49-.32.785v7.778c0 .295-.114.578-.319.786a1.08 1.08 0 01-.771.325h-2.182a1.08 1.08 0 01-.771-.325 1.122 1.122 0 01-.32-.786V6.444c0-.294-.115-.577-.32-.785a1.081 1.081 0 00-.77-.326H5.454c-.29 0-.567.117-.772.326-.204.208-.32.49-.32.785v11.112c0 .294.116.577.32.785.205.209.482.326.772.326h2.85a1.075 1.075 0 01.885.461 1.122 1.122 0 01.15 1.001l-.364 1.112a1.11 1.11 0 01-.397.55c-.185.136-.408.209-.637.209H6.24c-.229 0-.452-.073-.638-.21a1.11 1.11 0 01-.397-.55l-.652-1.994a1.114 1.114 0 00-.294-.465 1.086 1.086 0 00-.477-.263l-2.956-.752a1.09 1.09 0 01-.595-.394A1.124 1.124 0 010 16.688V7.312c0-.248.081-.489.231-.684.15-.195.36-.334.595-.394l2.957-.753c.178-.045.342-.136.477-.263.134-.127.235-.287.293-.464l.653-1.995a1.11 1.11 0 01.397-.55C5.788 2.075 6.01 2 6.24 2h1.701z"></path></svg></span><div class="is_View _fd-column _shrink-1"><span class="is_Text _col-inherit _fs-f-size-3 _lh-1--5 _fw-500 _maxW-10037 _ox-hidden _oy-hidden _textOverflow-ellipsis _ws-nowrap _ls-tracking-ti102323" data-slot="text">Morph V3 Large</span><span class="is_Text font_mono _col-muted-foreg108704142 _fs-f-size-1 _lh-calc10--7537940352 _maxW-10037 _ox-hidden _oy-hidden _textOverflow-ellipsis _ws-nowrap _ff-f-family" data-slot="text">morph/morph-v3-large</span></div></div><span class="is_Text _col-muted-foreg108704142 _fs-f-size-1 _lh-calc10--7537940352 _shrink-0 _btlr-radius-full _btrr-radius-full _bbrr-radius-full _bblr-radius-full _bg-secondary _pr-8px _pl-8px _pt-2px _pb-2px" data-slot="text">262K</span></div><p class="is_Text _col-muted-foreg108704142 _fs-f-size-2 _lh-leading-rel3008278 _maxW-10037 _WebkitLineClamp-2 _WebkitBoxOrient-vertical _dsp--webkit-box _ox-hidden _oy-hidden" data-slot="text">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: &lt;instruction&gt;{instruction}&lt;/instruction&gt; &lt;code&gt;{initial_code}&lt;/code&gt;...</p></a></div><div class="is_View _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto _mt-c-space-5"><a class="is_Text _col-0hover-pure-white _col-_light_muted-foreg108704142 _col-_light_0hover-foreground _col-neutral-300 _dsp-inline-flex _items-center _ws-inherit _td-none _fs-f-size-2 _lh-calc1--250--87537940352 _gap-c-space-2 _fw-500" data-slot="more" href="/models/morph">View all Morph models →</a></div></div></section><section class="is_View _ox-_platformweb_clip _oy-_platformweb_clip _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto _pos-relative _pt-c-space-12 _pb-c-space-12 _pr-maxvar--pag1616741076 _pl-maxvar--pag1616741076 _btw-1px _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _bts-solid"><div class="is_View _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto _width-10037 _maxW-768px _mr-auto _ml-auto"><div class="is_View _text-_platformweb_center _fd-column"><h2 class="is_Text font_heading _col-foreground _dsp-revert-laye114 _ws-inherit _ff-f-family _fs-f-size-7 _fw-497 _lh-1--2 _ls--0--01em _textWrap-balance _mb-12px" data-slot="title">Use Morph V3 Fast via Hanzo AI</h2><p class="is_Text _col-muted-foreg108704142 _dsp-revert-laye114 _ws-inherit _fs-f-size-3 _lh-1--65 _ls-0px _textWrap-pretty _mb-24px _mt-c-space-3--53" data-slot="lede">One API key. Every major model. OpenAI-compatible. Start free.</p><div class="is_View _fd-row _fwr-wrap _justify-center _gap-c-space-3"><a class="is_Text _o-0hover-0--92 _bg-0hover-neutral-100 _col-0hover-pure-black _bg-_light_foreground _col-_light_background _bxsh-_light_04px16px-6p44459065 _bg-_light_0hover-foreground _col-_light_0hover-background _col-pure-black _dsp-inline-flex _items-center _ws-inherit _td-none _fs-f-size-2 _lh-calc1--250--87537940352 _justify-center _gap-c-space-2 _minH-44px _pr-c-space-5 _pl-c-space-5 _btlr-9999px _btrr-9999px _bbrr-9999px _bblr-9999px _fw-500 _backdropFilter-chrome-blur _WebkitBackdropFilter-chrome-blur _btw-0px _brw-0px _borderBottomWidth-0px _borderLeftWidth-0px _bg-pure-white _bxsh-04px20px-2p736498123 _bbs-solid _bts-solid _bls-solid _brs-solid" data-fill="" data-slot="action" href="https://platform.hanzo.ai/api-keys">Get an API key</a><a class="is_Text _bg-0hover-color-mixin40471350 _btc-0hover-white-22 _brc-0hover-white-22 _borderBottomColor-0hover-white-22 _borderLeftColor-0hover-white-22 _col-0hover-pure-white _btc-_light_color-mixin1775990597 _brc-_light_color-mixin1775990597 _borderBottomColor-_light_color-mixin1775990597 _borderLeftColor-_light_color-mixin1775990597 _bg-_light_color-mixin1432854749 _col-_light_foreground _bxsh-_light_02px10px-4p401273020 _btc-_light_0hover-color-mixin2108231940 _brc-_light_0hover-color-mixin2108231940 _borderBottomColor-_light_0hover-color-mixin2108231940 _borderLeftColor-_light_0hover-color-mixin2108231940 _bg-_light_0hover-pure-white _col-_light_0hover-foreground _col-foreground _dsp-inline-flex _items-center _ws-inherit _td-none _fs-f-size-2 _lh-calc1--250--87537940352 _justify-center _gap-c-space-2 _minH-44px _pr-c-space-5 _pl-c-space-5 _btlr-9999px _btrr-9999px _bbrr-9999px _bblr-9999px _fw-500 _backdropFilter-chrome-blur _WebkitBackdropFilter-chrome-blur _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _bts-solid _brs-solid _bbs-solid _bls-solid _btc-white-14 _brc-white-14 _borderBottomColor-white-14 _borderLeftColor-white-14 _bg-color-mixin1333059374 _bxsh-inset01px00639578201" data-slot="action" href="/models">Browse All Models</a></div></div></div></section></div>$/$