# Relace Code API

**Canonical:** https://apis.io/apis/relace/relace-code-api/  
**Provider:** Relace — https://apis.io/providers/relace/  
**Base URL:** https://api.relace.run  
**Documentation:** https://docs.relace.ai/docs/introduction

Relace Code API is one of 2 APIs that [Relace](https://apis.io/providers/relace/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. Tagged areas include Code. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and an API reference.

The Code API from Relace — 5 operation(s) for code.

## Operations (5)

| Method | Path | Summary |
|---|---|---|
| POST | `/v1/code/compact` | — |
| POST | `/v1/code/apply` | — |
| POST | `/v1/code/rank` | — |
| POST | `/v2/code/rank` | — |
| POST | `/v1/code/embed` | — |

## Machine-readable artifacts (4)

- **OpenAPI** — https://raw.githubusercontent.com/api-evangelist/relace/refs/heads/main/openapi/relace-code-api-openapi.yml
- **Documentation** — https://docs.relace.ai/docs/introduction
- **APIReference** — https://docs.relace.ai/api-reference/introduction
- **APIsJSON** — https://raw.githubusercontent.com/api-evangelist/relace/refs/heads/main/apis.yml

## Other Relace APIs (1)

- [Relace Repo API](https://apis.io/apis/relace/relace-repo-api/)

## Tags

Code

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/relace/relace-code-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/relace/.
