# Recipe Generator API

> Recipe Generator creates complete cooking recipes from a dish title or meal idea. Pass any dish name to get structured ingredients with quantities, step-by-step instructions, prep time, cook time, and serving counts.

**Endpoint:** `GET https://api.apiverve.com/v1/recipe`  
**Category:** Food  
**Cost:** 2 credits per call  
**Canonical page:** https://apiverve.com/marketplace/recipe

## Overview

A recipe generator API that writes a complete cooking recipe from a dish name or a short description. Recipe Generator uses AI to create detailed recipes: ask for "chicken fajitas" or "a vegan lentil soup with smoked paprika" and get back a named dish, a short description, an ingredient list with quantities, numbered step-by-step instructions, prep time, cook time and the number of servings, all as JSON.

Meal-planning apps, grocery and shopping-list tools, cooking chatbots, food blogs and smart-kitchen devices use it to fill gaps in a recipe library, answer "what can I make with" style requests, or draft a starting recipe that a cook then adjusts.

The Free plan and paid plans return the same fields. Because each recipe is generated fresh rather than pulled from a fixed database, asking for the same dish twice can give two different versions, which suits variety features but means you should store a recipe you want to keep.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/recipe?name=chicken%20fajitas" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | string | Yes | The name or description of the recipe you want to generate. length 0-200 |

## Response fields

- `name` — string · The name of the generated recipe dish
- `description` — string · Detailed description of the recipe including flavor profile and preparation method
- `ingredients` — array · List of ingredients with quantities required for the recipe
- `instructions` — string · Step-by-step cooking instructions for preparing the recipe
- `prep_time` — string · Time required to prepare ingredients before cooking begins
- `cook_time` — string · Time required to cook the recipe from start to finish
- `servings` — number · Number of people the recipe serves

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "name": "Chicken Fajitas",
    "description": "A flavorful and easy-to-make dish with marinated chicken, bell peppers, and onions, served with warm tortillas.",
    "ingredients": [
      "1.5 pounds boneless, skinless chicken breasts, sliced",
      "1 red bell pepper, sliced",
      "1 green bell pepper, sliced",
      "1 large onion, sliced",
      "2 tablespoons olive oil",
      "1 packet (1 ounce) fajita seasoning",
      "1/2 cup water",
      "12 flour tortillas",
      "Optional toppings: sour cream, guacamole, salsa, shredded cheese"
    ],
    "instructions": "1. In a bowl, combine chicken with fajita seasoning and water. Marinate for at least 15 minutes.\n2. Heat olive oil in a large skillet or cast-iron pan over medium-high heat.\n3. Add the chicken and cook until browned and cooked through, about 5-7 minutes.\n4. Add bell peppers and onions to the skillet. Cook until softened, about 5-7 minutes.\n5. Warm tortillas according to package instructions.\n6. Serve chicken and vegetables in warm tortillas with desired toppings.",
    "prep_time": "15 minutes",
    "cook_time": "20 minutes",
    "servings": 4
  }
}
```

## Use cases

- **Meal Planning Calendars** — Meal planning platforms generate weekly dinner schedules by passing suggested dish names and populating shopping lists with the returned ingredient quantities.
- **Smart Kitchen Displays** — When a cook selects a dish on a connected appliance, the interface displays ordered preparation instructions paired with active prep and cook timers.
- **Grocery Delivery Carts** — Supermarket apps turn customer meal requests into full ingredient lists with quantities, adding every required item directly to the digital shopping basket.
- **Fitness Calorie Trackers** — To help users log homemade meals accurately, nutrition logs look up dish concepts to retrieve exact ingredients and estimated serving sizes.

## SDKs

- **npm** — `npm install @apiverve/recipe` (https://www.npmjs.com/package/@apiverve/recipe)
- **NuGet** — `dotnet add package APIVerve.API.RecipeGenerator` (https://www.nuget.org/packages/APIVerve.API.RecipeGenerator)
- **Source** — https://github.com/apiverve/recipe-api

## More

- Full reference: https://docs.apiverve.com/ref/recipe
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
