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"
}
'
{
  "success": true,
  "data": {
    "url": "<string>",
    "model": "<string>",
    "aspectRatio": "<string>",
    "prompt": "<string>"
  }
}

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. Currently only "image" is supported.

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

Response

200 - application/json

Default Response

success
boolean
data
object