---
title: "Generate a new asset from a text prompt"
method: POST
path: "/v1/assets/generate"
tags: ["Assets"]
---

# Generate a new asset from a text prompt

`POST /v1/assets/generate`

## Request

- Base URL: `https://api.picsha.ai`
- URL: `https://api.picsha.ai/v1/assets/generate`
- Auth: HTTP bearer

## Headers

- `x-org-id` string
- `x-external-user-id` string

## Request body

- object
  - `prompt` string, required: Text description of the image to generate.
  - `aspect_ratio` '1:1' | '3:4' | '4:3' | '9:16' | '16:9' | '2:3' | '3:2' | '4:5' | '5:4': Output aspect ratio.
  - `quality` 'lite' | 'standard' | '4k': Quality tier — same ladder and pricing as MIMI edits.
  - `tags` string[]: Initial tags to attach to the generated asset.

## Response `201`

Default Response

- object
  - `assetId` string, required
  - `url` string, required

## Other responses

- `400`: Default Response
- `402`: Default Response
- `500`: Default Response

---

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