---
title: "Generate Package"
method: POST
path: "/v1/packages/generate"
tags: ["General"]
---

# Generate Package

`POST /v1/packages/generate`

This endpoint generates a zip package from a specified GitHub source.

## Request body

- GeneratePackageRequest
  - `from` string, required — The GitHub source path in the format `github:{org}/{repo}/{sha}/{path_to_spicepod.yaml}`
  - `params` object, required — A key-value map of optional parameters (e.g., `github_token`)

## Response `200`

Package generated successfully

## Other responses

- `400` — Invalid request parameters
- `500` — Internal server error

---

[API](https://skmtc.dev/spiceai/apis/runtime.md) · [All operations](https://skmtc.dev/spiceai/apis/runtime/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/spiceai/runtime/revisions/fb597a4eaa56/schema)
