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-idstring

Organization ID

x-external-user-idstring

External User ID

Request body

promptstring 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.

tagsstring[]

Initial tags to attach to the generated asset.

Response

Default Response

assetIdstring required
urlstring required

Changes

No recorded changes to this operation across all 1 revision of this API.