REST API

Add Recipe Costs to Your App

AI-powered ingredient parsing and regional price lookup. One API call to get the cost of any recipe.

Simple Integration

One POST request. Ingredients in, costs out.

curl -X POST https://api.recipeprice.com/v1/recipe/cost \
  -H "Content-Type: application/json" \
  -H "X-API-Key: rp_live_your_key_here" \
  -d '{"ingredients": ["500g chicken breast", "2 tbsp olive oil"], "servings": 4}'
{
  "success": true,
  "data": {
    "totalCost": 12.50,
    "costPerServing": 3.12,
    "currency": "AUD",
    "ingredients": [
      { "original": "500g chicken breast", "cost": 10.00 },
      { "original": "2 tbsp olive oil", "cost": 0.50 }
    ]
  },
  "usage": { "used": 142, "limit": 10000, "remaining": 9858 }
}
Avg Response Time
~1000ms
Includes LLM parsing (Groq)

API Pricing

Simple, predictable pricing. Scale as you grow.

Developer

For testing & prototypes

$0 /month
  • 500 requests/month
  • All regions
  • Community support
Get Free Key
Most Popular

Pro

For growing apps

$49 /month
  • 10,000 requests/month
  • 20% overage buffer
  • Email support
  • Usage dashboard
Subscribe

Business

For high-volume apps

$149 /month
  • 100,000 requests/month
  • 20% overage buffer
  • Priority support
  • SLA available
Subscribe

Need more? Enterprise customers can self-host for unlimited usage.

Self-Host Option

Recipe Price is open source. Run your own instance for unlimited usage.

What You Get

  • Full source code (AGPL-3.0)
  • Unlimited API requests
  • Your own Groq API key
  • Custom price databases

Requirements

  • AGPL compliance (share modifications)
  • Cloudflare account (free tier works)
  • Groq API key (~$0.00002/recipe)
  • Maintain your own price data

API Documentation

POST /v1/recipe/cost

Calculate the cost of a recipe from a list of ingredients.

Headers

HeaderRequiredDescription
X-API-KeyYesYour API key (rp_live_xxx)
Content-TypeYesapplication/json

Request Body

{
  "ingredients": ["500g chicken breast", "2 tbsp olive oil"],
  "servings": 4,           // optional, default: 1
  "region": "AU-NSW"        // optional, auto-detected from IP
}

Response

{
  "success": true,
  "data": {
    "totalCost": 12.50,
    "costPerServing": 3.12,
    "currency": "AUD",
    "region": "AU-NSW",
    "ingredients": [...]
  },
  "usage": { "used": 142, "limit": 10000 }
}

GET /v1/usage

Check your current API usage and limits.

{
  "type": "b2b",
  "tier": "api_pro",
  "limit": 10000,
  "used": 142,
  "remaining": 9858,
  "percentUsed": 1,
  "resetAt": "2025-02-01T00:00:00.000Z"
}

GET /v1/regions

List available pricing regions.

Base URL: https://api.recipeprice.com