Sand AISand AI MAGI-2MAGI-2 jest teraz na SandBase: wideo 1080p z natywnym dźwiękiemWypróbuj teraz

XE Convert Currency

Dokumentacja API
https://api.sandbase.ai/v1/api/xe/convert-currency

Convert a specific amount from source to target currency. Returns the same structure as get_live_exchange_rate with the specified amount applied to the mid-market rate.

Cena
$0.03USD / wywołanie
Metoda
POST
Odpowiedź
JSON
Parametry
3 wymaganych · 0 opcjonalnych

Playground

Wejście
Target currency code (e.g. USD, JPY). Supports all codes returned by get_currency_symbols.
Source currency code (e.g. EUR, GBP). Supports all codes returned by get_currency_symbols.
Amount to convert
WyjścieGotowe

Twój wynik pojawi się tutaj

Uzupełnij dane wejściowe, a następnie kliknij Uruchom.

README API

XE Convert Currency API

Convert a specific amount from source to target currency. Returns the same structure as get_live_exchange_rate with the specified amount applied to the mid-market rate.

Request

curl -X POST "https://api.sandbase.ai/v1/run" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "xe/convert-currency", "to": "USD", "from": "EUR", "amount": 100.0}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
amountnumberYesAmount to convert
fromstringYesSource currency code (e.g. EUR, GBP). Supports all codes returned by get_currency_symbols.
tostringYesTarget currency code (e.g. USD, JPY). Supports all codes returned by get_currency_symbols.

Pricing

Flat $0.03 per call. Failed calls are not charged.

Odkryj więcej

Powiązane APIs

Wszystkie APIs
APICenaOdpowiedź
XE$0.03 za wywołanieJSON
XE$0.06 za wywołanieJSON
XE$0.03 za wywołanieJSON
XE$0.03 za wywołanieJSON
XE$0.03 za wywołanieJSON
XE$0.03 za wywołanieJSON

Pytania

FAQ

Jak używać API XE Convert Currency?

Wyślij żądanie POST do https://api.sandbase.ai/v1/api/xe/convert-currency z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.

Ile kosztuje API XE Convert Currency?

$0.03 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.

Jakie parametry przyjmuje API XE Convert Currency?

Wymagane: to (string), from (string) i amount (number). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.

Co zwraca API XE Convert Currency?

Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie).

Czy potrzebuję konta deweloperskiego XE lub klucza API?

Nie. XE Convert Currency działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API XE.