Currency AI API answers, not raw JSON
Send a question, get a structured answer backed by central-bank reference rates and history from 1949 (GBP/USD and USD/INR; most majors from 1971, EUR from 1999). The model orchestrates the data endpoints for you, so an agent can ask "how did EUR perform against USD over the last decade?" and receive numbers, not a guess.
- per native answer
- 1 credit
- parity from
- 1949
- fiat currencies
- 160
- on Growth+
- BYOK
curl -G https://api.currency-core.com/v1/ai \
-H 'Authorization: Bearer YOUR_KEY' \
--data-urlencode 'q=What is the highest EUR/USD rate on record?'const url = new URL("https://api.currency-core.com/v1/ai");
url.search = new URLSearchParams({
q: "What is the highest EUR/USD rate on record?",
});
const res = await fetch(url, {
headers: { Authorization: `Bearer ${process.env.CURRENCYCORE_KEY}` },
});
const { answer, data } = await res.json();import os, requests
res = requests.get(
"https://api.currency-core.com/v1/ai",
headers={"Authorization": f"Bearer {os.environ['CURRENCYCORE_KEY']}"},
params={"q": "What is the highest EUR/USD rate on record?"},
timeout=30,
)
print(res.json()["answer"])One key, one quota, one base URL. Compare plans →
What is a currency AI API?
A currency AI API answers natural-language questions about exchange rates by calling deterministic data tools before it writes a response. CurrencyCore's /v1/ai endpoint converts amounts, fetches rates and history, and runs PPP or trend analysis, then returns a written answer plus the structured data behind it. A native answer costs one AI credit. With bring-your-own-key on Growth or above, each tool call is billed as one API request instead.
Last updated
- Endpoint
- GET /v1/ai?q=...
- Input
- Natural-language question
- Data
- Rates, history 1949+, PPP
- Native metering
- 1 AI credit
- BYOK metering
- 1 request per tool call
- Plans
- All plans; analytics tools Growth+
- Response
- Answer plus supporting data
- Agents
- Use the MCP server
What a grounded answer looks like
Sample responses. Every figure is computed from the same dataset the API serves, not generated from memory.
How did EUR perform against USD over the last decade?
EUR/USD averaged 1.1072 in 2016 and 1.1306 in 2025, a gain of 2.1%. The pair reached an intraday high of 1.6038 in July 2008 and fell below parity in 2022.
At what rate did the euro launch against the dollar?
The euro's first ECB reference rate was 1.1789 USD on 4 January 1999. The pair later reached an intraday high of 1.6038 in July 2008.
What salary in India matches $100,000 in the United States?
At IMF PPP factors (2024), $100,000 in the US is roughly ₹2.0 million in India in purchasing-power terms, compared with about ₹9.5 million at the market rate.
Sample answers. The endpoint calls the rate, history and PPP tools first, then writes the sentence from their output.
Built for production, not a demo
Every capability below is part of the same API, billed against the same quota.
Grounded, not generated from memory
The model calls the rate, history and PPP tools before it answers. Numbers come from the dataset, and the response returns the data behind the sentence.
Structured answers
You get an answer plus the supporting data, so a UI can render both the sentence and the table behind it.
Metered two ways
A native answer costs one AI credit. With BYOK active, your provider answers and each tool call is billed as one API request instead. Credits and requests never mix.
Bring your own model
Growth and above support BYOK: connect OpenAI, Anthropic, Gemini, Azure or any OpenAI-compatible endpoint and keep inference on your own account.
Composable with MCP
The same currency tools are exposed over MCP, so a desktop agent can call them directly. The /v1/ai endpoint itself is HTTP-only.
Useful for agents and dashboards
Natural-language input lowers the cost of building a currency assistant, an internal research tool or a scheduled market summary.
Every endpoint, documented
Base URL https://api.currency-core.com. Authenticate with a bearer token
or x-api-key. Download the
OpenAPI 3.1 contract for generated clients.
GET /v1/ai Answer a natural-language currency question. All plans
qrequired- Natural-language question, maximum about 200 tokens.
Example GET /v1/ai?q=Convert%2050%20EUR%20to%20INR
Status codes 400 missing question · 401 missing or invalid key · 403 AI disabled · 413 question too long · 422 off-topic question · 429 AI credits exhausted · 503 service unavailable
Full endpoint reference GET /v1/convert Deterministic conversion behind the answer. All plans
fromrequired- Source currency. Use CUR:COUNTRY (USD:USA) for PPP.
torequired- Up to 25 targets, comma-separated (EUR,INR).
amount- Amount to convert. Defaults to 1.
ppp- true applies IMF PPP factors instead of the market rate.
date- Rate date, YYYY-MM-DD UTC. Defaults to the latest.
Status codes 400 invalid input · 401 missing or invalid key · 403 Free history window · 404 unknown currency or no rate · 429 quota or rate limit
Full endpoint reference GET /v1/history/analysis Period analysis the model can call. Growth+
base- Currency the comparison is measured against. Defaults to USD.
currencies- Comma list to compare; omit to rank every currency.
from / to- Window dates, YYYY-MM-DD UTC. Defaults to the last 20 years.
period- Shorthand: 10y, 6m, 30d, ytd or max.
sort- Movers: strengthened (default) or weakened.
assetClass- Movers pool: fiat (default), metals or all.
limit- Movers: top N, default 10, maximum 200.
interval- Compare mode trend series: weekly, monthly or yearly.
stats- Include min, max and average. Defaults to true.
Status codes 400 invalid input · 401 missing or invalid key · 403 Growth plan required · 404 no data at window edge · 429 quota or rate limit
Full endpoint reference GET /v1/ppp/analysis PPP trend analysis for purchasing-power questions. Growth+
countries- Alpha-3 list to compare; omit to rank all countries.
from / to- Window years. Defaults to the last 10 years.
period- Shorthand: 10y, 20y or max.
sort- Movers: increased (default) or decreased.
limit- Movers: top N, default 10, maximum 200.
stats- Include min, max and average. Defaults to true.
Status codes 400 invalid input · 401 missing or invalid key · 403 Growth plan required · 429 quota or rate limit
Full endpoint referencePrompt patterns, credit costs and grounded answers
The endpoint works best when a question names the currencies, amount and time window. Specific prompts cost fewer tool calls and are easier to verify.
A native answer costs one AI credit, however many tools ran. With BYOK, your provider answers and each tool call is billed as one API request against your quota, without an AI credit. A fallback costs one credit. The response exposes toolCalls and a byok flag when BYOK is active.
When a tool returns nothing, the model does not retry. It answers in plain text and names the gap: unsupported currency, no rate for that date, PPP unavailable, a country choice for a shared currency, or a missing amount. Empty data means no lookup was needed.
Direct conversion
"Convert 1,250 EUR to INR today." Names the amount, pair and date. One conversion tool call.
Rate lookup
"What is the USD to JPY rate today?" One pair, one date, no trend implied.
Trend question (Growth+)
"How did GBP perform against USD over the last five years?" An explicit window routes to history analysis.
PPP salary question (Growth+)
"What salary in India matches $100,000 in the United States?" Naming both countries avoids the shared-currency question.
| Plan | AI credits/month | BYOK |
|---|---|---|
| Free | 100 | No |
| Starter | 1,000 | No |
| Growth | 5,000 | Yes |
| Growth Plus | 20,000 | Yes |
| Business | 50,000 | Yes |
BYOK setup and a request that reports the route
request + JSON# Dashboard: AI Providers -> add your provider -> enable
# "Use my providers for /ai". Then call the endpoint as usual.
curl -G https://api.currency-core.com/v1/ai \
-H 'Authorization: Bearer YOUR_KEY' \
--data-urlencode 'q=Convert 50 EUR to INR'
{
"query": "Convert 50 EUR to INR",
"answer": "50 EUR is 5,520.68 INR at today's rate.",
"data": [ { "from": "EUR", "to": "INR", "amount": 50, "result": 5520.68 } ],
"toolCalls": 1,
"byok": true
} Grounding test: ask for a dated rate, then request /v1/history for the same date and currency. The answer should match, and the AI response should carry the supporting data.
From key to first response in three steps
Create an API key
Sign up and create a key in the dashboard. Free plans use a test key with the same dataset; live keys are available on paid plans. No credit card is required.
Make the request
Send a GET request with the key in the Authorization header. Plain JSON comes back.
Ship it
Parse the response, cache where it makes sense, and read the rate date before you store the figure.
Sample answer
application/json{
"query": "What is the highest EUR/USD rate on record?",
"answer": "EUR/USD rose from 1.1789 at the euro's launch in January 1999 to 1.6038 in July 2008, the highest level in the series.",
"data": [
{
"base": "EUR",
"from": "1999-01-04",
"to": "2008-07-15",
"mode": "compare",
"results": [
{
"currency": "USD",
"startRate": 1.1789,
"endRate": 1.6038,
"changePct": 36.04,
"strengthenedPct": -26.49
}
]
}
],
"toolCalls": 1
} What teams build with it
Currency assistant in your product
Let users ask a question instead of filling a form. The AI endpoint returns both the answer and the data to render.
Research and briefings
Generate a weekly currency summary from real figures, then check each number against the data returned with the answer.
Agent workflows
Expose the currency tools to an agent over MCP, or use /v1/ai for natural-language HTTP requests, without building a retrieval pipeline around a rate API.
How it compares
Against a typical currency API at the same price point.
| Capability | CurrencyCore | Typical currency API |
|---|---|---|
| Grounded in sourced data | Yes, tools are called first | Often model memory |
| Structured data alongside the answer | Yes | Text only |
| Native metering | 1 credit per answer | Per token |
| Bring your own model | Growth+, billed per tool call | Rare |
| Trend questions | Growth and above | Varies by vendor |
| MCP access | Every plan | Rare |
Why the answers can be trusted
The AI endpoint does not answer from model memory. It selects from the same deterministic endpoints documented elsewhere on this site, then composes the answer from their output.
- Rates, history and PPP come from the same endpoints as the REST API.
- The response includes the data used, so a claim can be checked.
- A native answer costs one credit; BYOK bills one API request per tool call.
- BYOK keeps inference on your own provider account.
Every figure on this page is reproducible from the documented source. See the API documentation for the response schema. Last updated .
Start free, scale when you ship
Every plan includes the MCP server and commercial-use rights, including Free. Full history starts on Starter; analytics and BYOK start on Growth.
Commercial use is allowed on every plan, including Free.
Questions developers ask
What is a currency AI API?
It is an endpoint that accepts a natural-language question about currencies and returns an answer grounded in current reference and historical exchange-rate data, rather than a raw rate object.
Does it hallucinate exchange rates?
The numbers are computed by deterministic tools, not generated from model memory. The model can still misstate a figure when writing the sentence, so use the returned <code>data</code> as the source of truth and re-run the deterministic endpoint if you need to confirm a figure.
How are AI queries billed?
A native answer costs one AI credit. The monthly allowance is 100 on Free, 1,000 on Starter, 5,000 on Growth, 20,000 on Growth Plus and 50,000 on Business. With BYOK active, your provider answers and each tool call is billed as one API request instead, with no AI credit used.
Can I use my own OpenAI or Anthropic key?
Yes. Growth and above support BYOK for OpenAI, Anthropic, Gemini, Azure, OpenRouter, Groq, DeepSeek, Mistral and any OpenAI-compatible endpoint. The model must support tool calling. See the BYOK documentation.
What happens if a currency is not supported?
The model is told not to retry the same call. It answers in one sentence that the currency or asset is not supported. Precious metals such as XAU and XAG are not covered. For a date with no rate, it says no rate is available rather than inventing one.
Can I ask trend questions on the Free plan?
Free and Starter keys get single-point lookups: one conversion or one rate for one date. Trends, comparisons over time and movers need the Growth plan or higher, because they call the historical analysis tools.
Is the AI endpoint available over MCP?
The /v1/ai endpoint is HTTP-only. The same currency, history, PPP and analytics tools are available over the MCP server to Claude, Cursor, VS Code and other MCP clients.
Add a currency assistant
No credit card required.
100 free AI credits per month. No credit card required.