AI
Pass

AI Cooking Assistant — Agent Skill

AI Cooking Assistant — Agent Skill

A ready-to-use skill for AI agents to generate recipes from ingredients.

What This Skill Does

Given a list of ingredients (and optional dietary preferences), this skill returns a complete recipe with measurements, steps, cooking times, and tips.

Getting Started

Quick Example

curl -s -X POST https://aipass.one/apikey/v1/chat/completions \
  -H "Authorization: Bearer $AIPASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"openai/gpt-4.1-mini","messages":[{"role":"system","content":"You are a professional chef. Create a detailed recipe."},{"role":"user","content":"chicken, rice, garlic, soy sauce"}]}'

Response: choices[0].message.content with the full recipe.

Model

Uses openai/gpt-4.1-mini — fast and very cheap for text generation.

Related

Skill File

---
name: cooking-assistant
description: Generate detailed recipes from a list of ingredients using AI Pass text completion API.
version: 1.0.0
---

# Cooking Assistant Skill

Generate recipes from ingredients using AI text completion.

## Requirements
- AI Pass API key (create at https://aipass.one/panel/developer.html)
- Set as environment variable: `$AIPASS_API_KEY`

## Usage

### Generate Recipe (curl)
```bash
curl -s -X POST https://aipass.one/apikey/v1/chat/completions \
  -H "Authorization: Bearer $AIPASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-4.1-mini",
    "messages": [
      {"role": "system", "content": "You are a professional chef. Given ingredients, create a detailed recipe including: recipe name, servings, prep time, cook time, full ingredients list with measurements, step-by-step instructions, and chef tips. Be specific and practical."},
      {"role": "user", "content": "chicken breast, garlic, lemon, rosemary, olive oil, potatoes"}
    ]
  }'
```

Response: `r.choices[0].message.content` — full recipe as text.

### With Dietary Preferences
```bash
curl -s -X POST https://aipass.one/apikey/v1/chat/completions \
  -H "Authorization: Bearer $AIPASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-4.1-mini",
    "messages": [
      {"role": "system", "content": "You are a professional chef specializing in dietary accommodations. Create recipes that respect the specified dietary needs while being delicious and practical."},
      {"role": "user", "content": "Ingredients: tofu, mushrooms, soy sauce, rice, sesame oil. Preference: vegan, quick (under 20 min)"}
    ]
  }'
```

### Python
```python
import requests, os

def get_recipe(ingredients, preferences=""):
    prompt = f"Ingredients: {ingredients}"
    if preferences:
        prompt += f". Preferences: {preferences}"
    
    r = requests.post(
        "https://aipass.one/apikey/v1/chat/completions",
        headers={
            "Authorization": f"Bearer {os.environ['AIPASS_API_KEY']}",
            "Content-Type": "application/json"
        },
        json={
            "model": "openai/gpt-4.1-mini",
            "messages": [
                {"role": "system", "content": "You are a professional chef. Create a detailed recipe with name, servings, times, ingredients with measurements, steps, and tips."},
                {"role": "user", "content": prompt}
            ]
        }
    )
    return r.json()["choices"][0]["message"]["content"]

# Examples
print(get_recipe("salmon, asparagus, lemon, butter"))
print(get_recipe("rice, beans, avocado", "vegan, Mexican-inspired"))
```

## Notes
- Model: `openai/gpt-4.1-mini` (fast, cheap text generation)
- Each recipe generation costs fractions of a cent
- $1 free credit on signup at https://aipass.one
- Create API key at https://aipass.one/panel/developer.html

## Related
- App: https://aipass.one/apps/cooking-assistant
- User guide: https://aipass.one/blog/ai-recipe-generator-from-ingredients
- Dev tutorial: https://aipass.one/blog/build-cooking-assistant-app-tutorial
Download Skill File