Media

Generate media

Generates an image from a text prompt using AI. The generated image is uploaded to the PickFu CDN and a permanent URL is returned.

post/media/generate

Request

  • Base URL: https://api.pickfu.com/v1
  • URL: https://api.pickfu.com/v1/media/generate
  • Auth: HTTP bearer

Request body

promptstring required

Text prompt describing the image to generate

type'image'

Media type to generate (default: image)

aspectRatio'1:1' | '2:3' | '3:2' | '3:4' | '4:3' | '4:5' | '5:4' | '9:16' | '16:9' | '21:9'

Aspect ratio of the generated image (default: 1:1)

imageUrlsstring[]

Up to 3 reference image URLs (https://… or data: URIs) the model can see while generating. Useful for preserving product appearance across variants.

Response

Default Response

successboolean

Changes

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