# Relace: Relace Apply 3 — Use via Hanzo AI API

> Relace Apply 3 is a specialized code-patching LLM that merges AI-suggested edits straight into your source files. It can apply updates from ... Access via Hanzo&#x27;s OpenAI-compatible API. Context: 256K. Get started free.

[Models](https://hanzo.ai/models)/[Relace](https://hanzo.ai/models/relace)/relace-apply-3

# Relace: Relace Apply 3

[Relace](https://hanzo.ai/models/relace)

Relace Apply 3 is a specialized code-patching LLM that merges AI-suggested edits straight into your source files. It can apply updates from GPT-4o, Claude, and others into your files at...

text

[Get API Key](https://hanzo.ai/signup)[View Docs](https://docs.hanzo.ai)[Try in Chat](https://hanzo.ai/chat)

## Specifications

Context Window

256K

Modalities

text

Input

$1.02 / M tokens

Output

$1.50 / M tokens

Status

available

Category

third-party

Model ID

relace/relace-apply-3

## Quick Start

TypeScript

```
import OpenAI from &#x27;openai&#x27; const client = new OpenAI({ apiKey: process.env.HANZO_API_KEY, baseURL: &#x27;https://api.hanzo.ai/v1&#x27; }) const response = await client.chat.completions.create({ model: &#x27;relace/relace-apply-3&#x27;, messages: [{ role: &#x27;user&#x27;, content: &#x27;Hello!&#x27; }] }) console.log(response.choices[0].message.content)
```

Python

```
from openai import OpenAI client = OpenAI( api_key=os.environ["HANZO_API_KEY"], base_url="https://api.hanzo.ai/v1" ) response = client.chat.completions.create( model="relace/relace-apply-3", messages=[{"role": "user", "content": "Hello!"}] ) print(response.choices[0].message.content)
```

cURL

```
curl https://api.hanzo.ai/v1/chat/completions \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $HANZO_API_KEY" \ -d &#x27;{ "model": "relace/relace-apply-3", "messages": [{"role": "user", "content": "Hello!"}] }&#x27;
```

Go

```
package main import ( "context" "fmt" "os" "github.com/sashabaranov/go-openai" ) func main() { cfg := openai.DefaultConfig(os.Getenv("HANZO_API_KEY")) cfg.BaseURL = "https://api.hanzo.ai/v1" client := openai.NewClientWithConfig(cfg) resp, _ := client.CreateChatCompletion(context.Background(), openai.ChatCompletionRequest{ Model: "relace/relace-apply-3", Messages: []openai.ChatCompletionMessage{ {Role: openai.ChatMessageRoleUser, Content: "Hello!"}, }, }, ) fmt.Println(resp.Choices[0].Message.Content) }
```

## More from Relace

[Relace: Relace Search256KThe relace-search model uses 4-12 `view_file` and `grep` tools in parallel to explore a codebase and return relevant files to the user request. In contrast to RAG, relace-search performs agentic...](https://hanzo.ai/models/relace/relace-search)

[View all Relace models →](https://hanzo.ai/models/relace)

## Use Relace: Relace Apply 3 via Hanzo AI

One API key. Every major model. OpenAI-compatible. Start free.

[Get Free API Key](https://hanzo.ai/signup)[Browse All Models](https://hanzo.ai/models)
