---
title: "Generate a full skill from a prompt"
method: POST
path: "/api/v1/ai/generate"
tags: ["AI"]
---

# Generate a full skill from a prompt

`POST /api/v1/ai/generate`

## Request

- Base URL: `https://api.skills-hub.ai`
- URL: `https://api.skills-hub.ai/api/v1/ai/generate`
- Auth: one of:
  - HTTP bearer
  - API key in header `Authorization`

Authenticated. Uses AI to generate all skill fields (name, description, tags, instructions) from a natural-language `prompt`. Enforces a daily per-user generation quota — returns `429` once the cap is exceeded; only successful generations count against it.

## Response `200`

Successful response. The returned fields are described in this endpoint's summary/description; typed per-field response schemas are being added incrementally.

- object: GeneratedSkill
  - `name` string, required
  - `description` string, required
  - `categorySlug` string, required
  - `platforms` string[], required
  - `tags` string[], required
  - `instructions` string, required

---

[API](https://skmtc.dev/skills-hub/apis/skills-hub-ai-api.md) · [All operations](https://skmtc.dev/skills-hub/apis/skills-hub-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/skills-hub/apis/skills-hub-ai-api/revisions/cb5d46d80300?raw)
