---
title: "Generate 2D Flats From Prompt"
method: POST
path: "/ideation/generate-2d-flats"
tags: ["ideation"]
---

# Generate 2D Flats From Prompt

`POST /ideation/generate-2d-flats`

## Request

- Base URL: `https://api.threadchain.pro` (the document declares no server; this is the origin it was published from)
- URL: `https://api.threadchain.pro/ideation/generate-2d-flats`
- Auth: OAuth 2
  - Password
  - Token URL: `auth/token`

Enqueue front+back 2D flat generation from a free-text garment prompt.
Poll GET /ideation/generate-2d-flats/{task_id} until status is completed/failed.

## Request body

- GenerateFlatsRequest
  - `prompt` string, required

## Response `202`

Successful Response

- GenerateFlatsJobResponse
  - `task_id` string, required
  - `status` string

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/threadchain/apis/threadchain-backend.md) - [All operations](https://skmtc.dev/threadchain/apis/threadchain-backend/llms.txt) - [OpenAPI document](https://skmtc.dev/threadchain/apis/threadchain-backend/revisions/8ee288a7e6bd?raw)
