Servicio digital por uso · 0.50 USDC

Recipe yield calculator

Calculates portions per batch, cost per portion, and a target menu price from recipe yield and cost.

Para ti si: Agents and restaurants that need a consistent recipe yield before pricing or changing a portion.

✓ USDC / Base✓ JSON determinista✓ Sin cuenta
API / BASE● PAGO POR USO
Precio0.50USDC
EntradaGETQuery params
SalidaJSONRespuesta directa

La primera solicitud devuelve los requisitos exactos de pago.

Contrato de entrada

Parámetros que puedes enviar

Usa los nombres exactos para que tu automatización pueda construir la solicitud sin intervención manual.

Entradas

  • batch_cost
  • total_yield
  • portion_size
  • target_food_cost_pct
  • current_price (optional)

Respuesta

Portions per batch, cost per yield unit, cost per portion, recommended price, and current price comparison.

La respuesta exitosa incluye el resultado y el identificador de la transacción liquidada.

Ejemplo de llamada

Descubre, paga y reintenta

Primero realiza la llamada sin pago. El endpoint devuelve HTTP 402 con la red, el activo, el importe y la dirección exacta; después paga y repite la misma URL con el encabezado estándar.

/api/paid/recipe-yield-calculator?batch_cost=42&total_yield=3600&portion_size=300&target_food_cost_pct=30&current_price=14.95