POST
/
v0
/
assistant
/
photo
/
generate
curl --request POST \
  --url 'https://api.unify.ai/v0/assistant/photo/generate' \
  --header "Authorization: Bearer $UNIFY_KEY" \
  --header 'Content-Type: application/json' \
  --data '{}'
{
    "info": "string"
}

Generates a new photo using a text prompt via Replicate and returns the image URL. This action will deduct credits.

Authorizations

Authorization
string
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

prompt
string
required

Text prompt for image generation.

aspect_ratio
string | null
default:"1:1"

Aspect ratio of the generated image.

output_format
string | null
default:"webp"

Format of the output image.

output_quality
integer | null
default:"80"

Quality of the output image (1-100).

safety_tolerance
number | null
default:"2.0"

Safety tolerance for generation.

prompt_upsampling
boolean | null
default:"true"

Whether to use prompt upsampling.

curl --request POST \
  --url 'https://api.unify.ai/v0/assistant/photo/generate' \
  --header "Authorization: Bearer $UNIFY_KEY" \
  --header 'Content-Type: application/json' \
  --data '{}'
{
    "info": "string"
}