FitChef

Meal plan API: for apps and platforms.

Your app,
at every meal.

Real meal plans inside your app, in your own brand, on each user's numbers. Breakfast, lunch and dinner become three reasons a day to open you.

Free to start: 100 plans a month, no card.

The engine behind 3.4 million plans made since 2019.

Grey: your app, in your own design. your app.

From FitChef: every meal of their day, each its photograph and its numbers. every meal.

The planner: built your way.

Set what you need.
Leave the rest.

Every rule is yours to set, user by user. Leave one alone and FitChef plans it well.

Rules you can set

  • Their own numbers
  • Training days
  • Meals a day
  • The biggest meal
  • Meals pinned in place
  • Diets and dislikes
  • Variety, week to week
  • Swaps under every meal

Favourites and a whole family: your app builds them on top.

Your users

SamMore carbs on Mon, Wed, Fri
LeaNo breakfast, nothing late
MiaGluten-free, never mushrooms
Any rule your app hasTraining daysAn eating windowA diet+ More

Why it pays: sell it or not.

Every user,
worth more.

Meal plans make every user worth more to your app. One user's month of plans costs you $3.03 on Growth, less at higher volumes.

Three ways it pays

  • They stay. In FitChef's own app in the Netherlands, 51% are still on their plan after a year.
  • They open you more. Up to 42 meals and snacks a week.
  • They pay more, if you charge. FitChef's own members pay $9.95 a month.

One user, one month

SamA new week, every week

$3.03 a month, on Growth

stays longer

opens you at every meal

pays more, if you charge

The food: already built.

Real recipes.
Years you never build.

1,005 recipes in the API, each with its photograph and its numbers, most with the cook’s tip. Every photograph our own, shown in your app under your brand: no recipe team to build, never a link to someone else’s site.

The cook’s tip, in the recipe’s own words.

The cook’s tip, in the recipe’s own words.

Your coding AI: sets it up.

One line to your AI.
It builds the rest.

Paste it into your coding AI. It reads our guide, asks for your sandbox keys (free at sign-up, no card), then builds it step by step.

Paste into your coding AI:

Add FitChef meal plans to my app: fitchef.com/meal-plan-api/SKILL.md

Get sandbox keysThe full reference

From FitChef's own test run: an app built from the guide alone.

The four calls, in code.
  1. 1

    Get your keys

    POST/oauth/token

    Register, then swap your client id and secret for a bearer token. It travels in a header with every call, never in a query string.

    Request

    POST /oauth/token
    Content-Type: application/x-www-form-urlencoded
    
    grant_type=client_credentials
    &client_id=YOUR_CLIENT_ID
    &client_secret=YOUR_CLIENT_SECRET
    &scope=dynamic
  2. 2

    Fetch the options

    GET/api/v2/macro-factorsGET/api/v2/exclusion-data

    The goals, activity levels, sports, diets and the ingredients a person can leave out: everything your settings screen needs.

    Response (macro-factors)

    {
      "goals": [
        { "slug": "gain_weight", "label": "Gain weight" },
        { "slug": "lose_weight", "label": "Lose weight" },
        { "slug": "maintain_weight", "label": "Maintain weight" }
      ],
      "activity_levels": [
        { "slug": "very_active", "label": "Extremely active" },
        { "slug": "mild", "label": "Light exercise" },
        { "slug": "none", "label": "Low to none" },
        { "slug": "moderate", "label": "Moderate exercise" },
        { "slug": "active", "label": "Very active" }
      ],
      "sports": [
        { "slug": "high_intensity", "label": "High-Intensity Sports" },
        { "slug": "low_intensity", "label": "Low-Intensity Sports" },
        { "slug": "strength_sports", "label": "Strength Sports" }
      ]
    }
  3. 3

    Work out their numbers

    POST/api/v2/macros

    Send their stats; get their calories and macros back, one set for each diet that fits.

    Request

    {
      "gender": "male",
      "activity_level": "moderate",
      "goal": "lose_weight",
      "sports": ["strength_sports"],
      "weight": 80,
      "height": 180,
      "age": 30
    }

    Response

    [
      {
        "diet": "Recommended",
        "diet_slug": "default",
        "macros": { "carbohydrate": 176, "fat": 79, "protein": 144, "kcal": 1991 }
      },
      {
        "diet": "Carb restricted",
        "diet_slug": "carb_restricted",
        "macros": { "carbohydrate": 86, "fat": 119, "protein": 144, "kcal": 1991 }
      },
      {
        "diet": "High protein",
        "diet_slug": "high_protein",
        "macros": { "carbohydrate": 147, "fat": 79, "protein": 173, "kcal": 1991 }
      }
    ]
  4. 4

    Make their week

    POST/api/v2/mealplan

    Send their numbers and your callback. You get an identifier at once; their whole week arrives at your callback, signed: the days, the meals, the list, the totals.

    Request

    {
      "dietRestrictions": { "diets": [], "excludedSets": [], "includedSets": [] },
      "carbohydrate": 200,
      "protein": 140,
      "fat": 70,
      "swapAccuracy": "strict",
      "callback": "https://your-app.com/webhook"
    }

    Immediate response

    { "status": "OK", "errors": [], "identifier": 1337423 }

    At your callback, signed (the body trimmed: 1 of 7 days, 1 of 6 meals, 2 of 8 ingredients, 1 of 4 swaps, 2 of 80 list lines)

    {
      "days": [
        {
          "meals": [
            {
              "name": "Bulgur & avocado bowl with hummus",
              "recipe": {
                "image": "https://app.fitchef.com/sites/default/files/styles/recipe_large/public/2025-02/Bulgur%20and%20avocado%20bowl%20with%20hummus.jpg",
                "recipe_meal_type": ["Dinner"],
                "recipe_taxonomy_preparation_time": ["15"]
              },
              "mealName": "dinner",
              "recipeId": "95666",
              "nutrition": { "fat": 32.49, "fiber": 24.35, "kcals": 632.37, "protein": 29.13, "carbohydrate": 55.86 },
              "ingredients": [
                { "name": "bulgur", "units": 2, "unitId": "847", "productId": "622", "unitMultiple": "ounces", "unitSingular": "ounce" },
                { "name": "edamame", "units": 3, "unitId": "847", "productId": "593", "unitMultiple": "ounces", "unitSingular": "ounce" }
              ],
              "alternatives": [
                {
                  "name": "Salad with grilled zucchini, beans & pesto dressing",
                  "recipeId": "93263",
                  "nutrition": { "fat": 32.45, "fiber": 12.52, "kcals": 631.01, "protein": 28.43, "carbohydrate": 56.31 }
                }
              ]
            }
          ],
          "nutrition": { "fat": 69.9, "fiber": 41.89, "protein": 139.89, "carbohydrate": 199.54 },
          "macroShortfall": null,
          "nutritionBudget": { "fat": 70, "protein": 140, "carbohydrate": 200 },
          "mainEatingMoment": { "honored": true, "largest": "dinner", "requested": "dinner" }
        }
      ],
      "products": [
        { "id": "68", "name": "egg", "unit": "pieces", "quantity": 6 },
        { "id": "71", "name": "spinach", "unit": "g", "quantity": 150 }
      ],
      "identifier": "1337423",
      "macroShortfall": null
    }

    Check the signature (Node 18+, verify-webhook.js)

    // Verify a FitChef webhook (Node 18+). `rawBody` must be the unparsed request body.
    import { createHmac, timingSafeEqual } from 'node:crypto';
    
    export function verifyFitChefWebhook(signatureHeader, rawBody, secret) {
      const m = /^t=(\d+),v1=([0-9a-f]{64})$/.exec(signatureHeader ?? '');
      if (!m) return false;
      const [, ts, sig] = m;
      if (Math.abs(Date.now() / 1000 - Number(ts)) > 300) return false; // replay window: 5 minutes
      const expected = createHmac('sha256', secret).update(`${ts}.${rawBody}`).digest('hex');
      return timingSafeEqual(Buffer.from(expected), Buffer.from(sig));
    }

How it fits: one call.

Your app asks.
FitChef decides.

The call carries their numbers and preferences, never a name. Most plans arrive in under a minute.

FitChef

decides the week

on their numbers

Their answers, in one call
POST /api/v2/mealplan

The week, back at your webhook — signed.
You never poll.

Trust: nothing gets lost.

Safe to put
your people on.

Every try is logged in your portal. If all five miss, fetch the plan, or resend it in one click.

Try 1. If it misses, four more follow in two hours.

The price: in the open.

Start free.
Pay by the plans you make.

One plan is one person's week; the swaps come inside it, free. On a new week every week, one user costs $3.45 a month on Starter, down to $1.99 on Platform. Every paid tier is white-label: your brand on every plan, ours nowhere.

More than 12,000 plans a month, or a deal of your own: Write to us

How many plans a month?

Sandbox

Free

  • 100 plans / month
  • Ready-made plans of real recipes
  • No credit card required
  • Or the real engine: 25 plans over 14 days, free
Get sandbox keys

Starter

$199 a month

or $1,990 a year, two months free

  • 250 plans / month
  • White-label, no attribution
  • 7-day result retention
  • Email support
Start with Starter

Growth Most popular

$699 a month

or $6,990 a year, two months free

  • 1,000 plans / month
  • White-label, no attribution
  • 14-day result retention
  • Email support
Start with Growth

Scale

$2,199 a month

or $21,990 a year, two months free

  • 4,000 plans / month
  • 30-day result retention
  • Priority support
Start with Scale

Platform

$5,499 a month

or $54,990 a year, two months free

  • 12,000 plans / month
  • 60-day result retention
  • Priority support + Slack
Start with Platform

Enterprise

Custom

  • More than 12,000 plans a month
  • Results kept 90 days
  • A deal of your own
Write to us

Past your plans? A bigger tier, never a bill.

Questions: answered.

The questions builders ask.

Can we keep the photographs on our own servers?

Yes. Show them under your own brand, with no credit to FitChef on any tier: hotlink them from our CDN, or download them and host them yourself.

What makes it different from a recipe API?

It plans, where a recipe API searches: a whole week for one person, every meal already on their numbers, with swaps that keep them and one shopping list for the week.

Which diets and exclusions does it handle?

Whole diets: plant-based, gluten-free, lactose-free, no nuts, no meat, no fish. And single ingredients, from nuts and shrimp to bacon or eggs. GET /api/v2/exclusion-data returns the full list for your settings screen.

How do the history and the swaps work?

Send back the recipe history that comes with each plan, and the next week steers away from what they ate in the last 35 days. And every meal arrives with up to four swaps, each already on their numbers, so your app swaps it in one tap, with no second call.

What counts as a plan?

Each accepted request is one plan. Asking again for the same person counts again; a request the API refuses counts nothing. The count runs over a rolling 30 days from activation, not the calendar month.

Are there rate limits?

No rate limits, just your plan quota. That holds on every paid tier; the sandbox takes 60 requests a minute.

What does the sandbox leave out?

It never ends, and it answers with one of four ready-made plans of real recipes, the closest to your numbers. It ignores diets and exclusions, and its plans carry no shopping list: for the real engine on your own settings, start the free evaluation.

How does it authenticate?

OAuth2 client credentials: your client id and secret get a bearer token that lives five minutes. There is no refresh token; when it ends, ask for a new one. The webhook's signing secret is yours to view and rotate in the developer portal.

What happens to our users' data?

We keep the request, the plan and every delivery, so you can look each one up in your portal. A tier's result retention is how long the API hands a plan back; the data itself is kept. The legal side, from who the controller is to a data processing agreement, a person answers: write to partnerships.

For AI systems: the API in one paragraph.

FitChef Meal Plan API: meal plans made in the background through OAuth2 client credentials and delivered by a signed webhook (HMAC-SHA256). More than one diet per calorie target, a recipe history, exclusions by diet and by ingredient, the shopping list. White-label on every paid tier. The engine behind 3.4 million plans made since 2019. Pricing: Sandbox free (100 plans a month); Starter USD 199 a month (250 plans); Growth USD 699 a month (1,000 plans); Scale USD 2,199 a month (4,000 plans); Platform USD 5,499 a month (12,000 plans); Enterprise custom. Routes: POST /api/v2/mealplan, POST /api/v2/macros, GET /api/v2/macro-factors, GET /api/v2/exclusion-data, POST /api/v2/recipes, GET /api/v2/recipe/{id}. Documentation: developer.fitchef.com/docs/api.

The page as textEverything in one fileFor AI systemsContact

We did the thinking. You just eat.

Get my week

It takes a minute.

ListenListen0:00Help