---
title: "AI Meme Generator"
method: POST
path: "/v1/ai-meme-generator"
tags: ["Image Projects"]
---

# AI Meme Generator

`POST /v1/ai-meme-generator`

Create an AI generated meme. Each meme costs 10 credits.

## Request body

- object
  - `name` string — The name of the meme.
  - `style` object, required
    - `topic` string, required — The topic of the meme.
    - `template` 'Random' | 'Drake Hotline Bling' | 'Galaxy Brain' | 'Two Buttons' | 'Gru's Plan' | 'Tuxedo Winnie The Pooh' | 'Is This a Pigeon' | 'Panik Kalm Panik' | 'Disappointed Guy' | 'Waiting Skeleton' | 'Bike Fall' | 'Change My Mind' | 'Side Eyeing Chloe', required — To use our templates, pass in one of the enum values.
    - `searchWeb` boolean — Whether to search the web for meme content.

## Response `200`

Success

- object — Success
  - `id` string, required — Unique ID of the image. Use it with the [Get image Project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch status and downloads.
  - `credits_charged` integer, required — The amount of credits deducted from your account to generate the image. We charge credits right when the request is made. If an error occurred while generating the image(s), credits will be refunded and this field will be updated to include the refund.

## Other responses

- `400` — Invalid Request
- `401` — Unauthorized
- `402` — Payment Required
- `404` — Not Found
- `422` — Unprocessable Entity

---

[API](https://skmtc.net/magichourhq/apis/magic-hour-api.md) · [All operations](https://skmtc.net/magichourhq/apis/magic-hour-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/magichourhq/magic-hour-api/revisions/941298cfb29f/schema)
