Skip to main content
POST
/
media
/
generate
Generate media
curl --request POST \
  --url https://api.pickfu.com/v1/media/generate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": "<string>",
  "type": "image",
  "aspectRatio": "1:1",
  "imageUrls": [
    "<string>"
  ]
}
'
{
  "success": true,
  "data": {
    "url": "<string>",
    "model": "<string>",
    "aspectRatio": "<string>",
    "prompt": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://www.pickfu.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

OAuth2 access token obtained via the authorization flow. Include in the Authorization header as: Bearer {access_token}

Body

application/json
prompt
string
required

Text prompt describing the image to generate

Required string length: 1 - 10000
type
enum<string>
default:image

Media type to generate (default: image)

Available options:
image
aspectRatio
enum<string>
default:1:1

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

Available options:
1:1,
2:3,
3:2,
3:4,
4:3,
4:5,
5:4,
9:16,
16:9,
21:9
imageUrls
string[]

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

Maximum array length: 3
Maximum string length: 8388608
Pattern: ^(https?:\/\/|data:)

Response

200 - application/json

Default Response

success
boolean
data
object