Sand AISand AI MAGI-2MAGI-2 ya está en SandBase: video en 1080p con audio nativoPruébalo ahora

XE Convert Currency

Documentación de la 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.

Precio
$0.03USD / llamada
Método
POST
Respuesta
JSON
Parámetros
3 obligatorios · 0 opcionales

Entorno de pruebas

Entrada
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
SalidaListo

Su salida aparecerá aquí

Complete las entradas y luego haga clic en Ejecutar.

README de la 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.

Explorar más

APIs relacionadas

Todas las APIs
APIPrecioRespuesta
XE$0.03 por llamadaJSON
XE$0.06 por llamadaJSON
XE$0.03 por llamadaJSON
XE$0.03 por llamadaJSON
XE$0.03 por llamadaJSON
XE$0.03 por llamadaJSON

Preguntas

FAQ

¿Cómo uso la API de XE Convert Currency?

Envía una solicitud POST a https://api.sandbase.ai/v1/api/xe/convert-currency con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.

¿Cuánto cuesta la API de XE Convert Currency?

$0.03 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.

¿Qué parámetros acepta la API de XE Convert Currency?

Requeridos: to (string), from (string) y amount (number). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.

¿Qué devuelve la API de XE Convert Currency?

Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica).

¿Necesito una cuenta de desarrollador o una clave API de XE?

No. XE Convert Currency funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de XE por separado.