We use cookies. Cookies and browser storage keep you signed in and remember your preferences. With your permission we also measure how the site is used. You can any time. See our cookie policy.
Relace: Relace Search
relace/relace-searchTry Relace: Relace Search now
Runs on your balance at the prices above. New accounts start with free usage.
One API. Every model.
Session cost $0.00
Settings
Advanced parameters
Relace: Relace Search at a glance
- Input price is 122% higher than the median of 434 Text models.
- Context window of 256,000 tokens, enough for long documents and multi-turn conversations.
- Supports tool (function) calling for agents and integrations.
- A typical request (1,000 input / 500 output tokens) costs about $0.00875.
About Relace: Relace Search
Relace Search is a text model from Relace, listed on api14 under the model id relace/relace-search. It sits in the text category and is built around codebase exploration rather than general chat. According to the provider, the model uses 4 to 12 view_file and grep tools in parallel to explore a codebase and return the files relevant to a user request. That places it in the retrieval space, but with an agentic approach rather than the embedding and vector search pattern used by RAG.
The model takes text as input and returns text as output. It has a context window of 256,000 tokens and a maximum output of 128,000 tokens, which is generous enough to hold a large amount of source material alongside the request and still leave room for a substantial answer. Supported request parameters are max_tokens, response_format, seed, stop, temperature, tool_choice, tools, and top_p. The presence of tools and tool_choice is consistent with its tool-driven design: the model is expected to call view_file and grep as part of producing its answer.
Practical uses follow from that design. If you are building a coding assistant, an agent that answers questions about a repository, or a pipeline that needs to locate the files relevant to a change request, Relace Search is aimed at that job. Instead of embedding a codebase and hoping similarity search surfaces the right chunks, you let the model decide which files to open and which patterns to grep for, then return the relevant files. It also fits workflows where a downstream step needs a shortlist of files rather than a finished patch, such as triage, onboarding into an unfamiliar repository, or scoping before an edit.
You call it through api14's OpenAI-compatible API using the model id relace/relace-search. Because the interface follows the OpenAI chat completions shape, you send a request with the model field set to that id and your messages, and you can pass any of the supported parameters: max_tokens, response_format, seed, stop, temperature, tool_choice, tools, and top_p. If your existing code already targets an OpenAI-compatible endpoint, switching to this model is largely a matter of changing the model string and, where relevant, supplying tool definitions.
One thing to weigh is scope. The provider description frames the model around codebase exploration with view_file and grep, so tasks that have nothing to do with locating files in a repository may be better served by a general purpose text model. If you need image or audio input, this model does not accept it, since both input and output are text only.
How to call the Relace: Relace Search API
- Create an API key in your dashboard.
- Install the official openai SDK for your language.
- Set baseURL to https://api14.com/api/v1 and model to "relace/relace-search".
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api14.com/api/v1",
apiKey: process.env.API14_API_KEY,
});
const result = await client.chat.completions.create({
"model": "relace/relace-search",
"messages": [
{
"role": "user",
"content": "Explain vector databases in two sentences."
}
]
});
console.log(result.choices[0].message.content);
Supported parameters
max_tokensresponse_formatseedstoptemperaturetool_choicetoolstop_pSpecifications
- Context length
- 256,000
- Max output
- 128,000
- Input
- text
- Output
- text
Requests on api14 · last 7 days
Relace: Relace Search: frequently asked questions
- How much does the Relace: Relace Search API cost?
- Relace: Relace Search costs Input $3.50 / 1M tokens. It is charged from your USD balance only for successful requests; failed requests are free.
- What is the context window of Relace: Relace Search?
- Relace: Relace Search reads up to 256,000 tokens per request: prompt, history and documents together. It writes up to 128,000 output tokens per response.
- What can Relace: Relace Search do?
- Relace: Relace Search accepts text and returns text. It supports tool calling.
- How do I call Relace: Relace Search from my code?
- Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "relace/relace-search". No other code changes. Copy a ready example from the code panel on this page.
- What are alternatives to Relace: Relace Search?
- Comparable Text models at a similar price: Pareto 26.10, Pareto Latest, Nous: Hermes 4 405B. Each runs through the same API key, so switching is one string.
Relace: Relace Search community
New topicThis community has no topics yet. Open the first one about Relace: Relace Search.