---
title: "Admin Ai Generator Generate"
method: POST
path: "/api/admin/ai-generator/generate"
tags: ["admin"]
---

# Admin Ai Generator Generate

`POST /api/admin/ai-generator/generate`

## Request

- Base URL: `https://store.hypergpt.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://store.hypergpt.ai/api/admin/ai-generator/generate`
- Auth: HTTP bearer

Enqueue a blog-post generation job and return its id immediately.

The actual LLM call + draft save run in a background task (see
_run_ai_generator_job) so the browser never holds a long synchronous
request open — that previously hit the edge gateway timeout on the slower
OpenLimits route. Poll GET /ai-generator/job/{job_id} for the result.

## Cookies

- `access_token` string, nullable

## Request body

- AIPostGenerate
  - `topic` string, required
  - `description` string, nullable
  - `primary_keyword` string, nullable
  - `save_as_draft` boolean

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/hypergpt/apis/hyperstore-api.md) · [All operations](https://skmtc.dev/hypergpt/apis/hyperstore-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hypergpt/apis/hyperstore-api/revisions/50dc6759e3b9?raw)
