Apply 3 overview
Apply 3 specs
- Model ID
relace/relace-apply-3- Developer
- Relace
- Context window
- 256,000 tokens
- Max output
- 128,000 tokens
- Input
- Image, Text
- Output
- Text
- API
- OpenAI-compatible, base URL
https://api.aimlapi.com/v1
Coding and code review
Generate, debug, and review code across languages, reading whole files or repos in a single prompt.
Agentic and multi-step workflows
Reliable tool-calling and instruction-following suit agent loops that plan, call tools, and iterate.
Complex reasoning
Extended reasoning improves reliability on multi-step math, logic, and technical analysis.
Long-document analysis
Summarize and extract from contracts, papers, and reports without aggressive chunking.
Use cases
Relace Apply 3 is documented as suited for merging AI-generated code edits into existing source files.
It is used for code patching and integrating diffs from models like Claude and GPT-4 into an existing codebase.
It is also suited to rapid application of updates in large files, with native support for very large contexts and a workflow designed to keep performance high while handling those files.
A third documented use case is working with code integration workflows in developer tools and APIs, where proposed changes are merged back into source code rather than rewritten from scratch.
Capabilities
- Function calling
- Reasoning
- Streaming
- Structured outputs
- Web search
Apply 3 API pricing
| Usage | Price | Unit |
|---|---|---|
| Input | $0.8993 | 1M tokens |
| Output | $1.32 | 1M tokens |
Prices from the AI/ML API price list, checked on Nov 4, 2026.
Apply 3 vs other models: token prices
AI/ML API input and output rates for 5 models, per million tokens.
| Model | Input | Output |
|---|---|---|
| Apply 3 | $0.8993 | $1.32 |
| $0.429 | $1.29 | |
| $0.44 | $1.32 | |
| $0.2116 | $1.32 | |
| Search | $1.06 | $3.17 |
How to use the Apply 3 API
View docsBuild with your agent
Give your agent the model details, code and documentation.
1Get your API key
Create API keyexport AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"2Make your first request
curl 'https://api.aimlapi.com/v1/chat/completions' \
-H "Authorization: Bearer $AIMLAPI_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "relace/relace-apply-3",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}'import os
import requests
headers = {
"Authorization": f"Bearer {os.environ['AIMLAPI_KEY']}",
"Content-Type": "application/json",
}
payload = {
"model": "relace/relace-apply-3",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}
response = requests.post("https://api.aimlapi.com/v1/chat/completions", headers=headers, json=payload, timeout=120)
response.raise_for_status()
print(response.json())const response = await fetch("https://api.aimlapi.com/v1/chat/completions", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"model": "relace/relace-apply-3",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());Related articles
Apply 3 FAQ
What is the context window of Apply 3?
Apply 3 has a 256,000 tokens context window and can return up to 128,000 tokens.
What inputs and outputs does Apply 3 support?
Apply 3 takes image, text as input and returns text.
What is the model ID for Apply 3?
Use relace/relace-apply-3 as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.
How much does Apply 3 cost?
Apply 3 costs $0.8993 input and $1.32 output per 1M tokens on AI/ML API, billed as you go with no subscription.
Does Apply 3 support streaming?
Yes, Apply 3 can stream responses as they are generated.
Can Apply 3 read images?
Yes, Apply 3 accepts image input alongside text.
Can Apply 3 handle text-only tasks without images?
Yes, Apply 3 supports text-to-text processing in addition to image input.
Does Apply 3 support function calling and tool use?
Yes, Apply 3 supports function calling, parallel tool calls, and structured outputs.

