# Recipe OG image template

Dish name in a serif face, cooking time, servings and difficulty next to a round photo.

- Slug: `recipe`
- Preview (real render): https://shareglint.com/img/templates/recipe.jpg
- Page: https://shareglint.com/en/templates/recipe

Recipes are shared on Pinterest, Facebook and WhatsApp more than almost anything else. Warm paper colours, a serif title and the dish on a round plate make the card look like a cookbook page, not like software.

## Fields

Every field is optional. Long text shrinks to fit instead of overflowing; an image field takes a public URL that we fetch on our side.

| Field | Type | Description | Example |
|---|---|---|---|
| `title` | text | Name of the dish. (default: Recipe name) | Crispy tofu bowl with sesame-lime dressing |
| `category` | text | Small label above the title, e.g. the course or category. | Weeknight dinner |
| `time` | text | Total cooking time. | 35 min |
| `servings` | text | Number of servings. | 4 servings |
| `difficulty` | text | Difficulty, e.g. Easy. | Easy |
| `author` | text | Byline, e.g. by Green Pantry. | by Green Pantry |
| `site` | text | Your domain or a short URL. | greenpantry.co |
| `photo` | image URL | Photo of the dish, ideally shot from above. | https://example.com/images/salad.jpg |
| `accent` | colour | Brand colour as hex, e.g. #6366f1. Drives buttons, highlights and the background glow. (default: #c2410c) | #c2410c |
| `theme` | dark | light | Colour scheme: dark or light. (default: light) | — |

## Render it with one request

```bash
curl -X POST "https://shareglint.com/v1/images?wait=true" \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "template": "recipe",
    "modifications": {
        "title": "Crispy tofu bowl with sesame-lime dressing",
        "category": "Weeknight dinner",
        "time": "35 min",
        "servings": "4 servings",
        "difficulty": "Easy",
        "author": "by Green Pantry",
        "site": "greenpantry.co",
        "photo": "https://example.com/images/salad.jpg"
    }
}'
```

## Make it yours

accent and theme change per request. For anything more, copy the template into your account: you get an ordinary HTML template with the same fields that you can edit in the dashboard or through the API. If the slug is free on your account, the copy takes it — your integrations switch to your version without changing a line.

```bash
curl -X POST "https://shareglint.com/v1/templates/library/recipe/copy" -H "Authorization: Bearer sk_live_YOUR_KEY"
```
