Phot.AI
    Phot.AI
    • Background Remover
      POST
    • Background Replacer
      POST
    • Color Restoration 2k
      POST
    • Color Restoration 4k
      POST
    • Enhancer 2k
      POST
    • Enhancer 4k
      POST
    • Image Extender(Outpaint)
      POST
    • Light Fix 2k
      POST
    • Light Fix 4k
      POST
    • Object Remover
      POST
    • Object Replacer
      POST
    • Old Photo Restoration 2k
      POST
    • Old Photo Restoration 4k
      POST
    • Text to Art
      POST
    • Upscaler 2k
      POST
    • Upscaler 4k
      POST
    • Order Status
      GET

      Text to Art

      Develop Env
      Develop Env
      POST
      /external/api/v3/user_activity/create-art
      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      curl --location --request POST '/external/api/v3/user_activity/create-art' \
      --header 'x-api-key: Paste your generated api-key here' \
      --header 'Content-Type: application/json' \
      --data-raw '{
        "prompt": "A beautiful little girl",
        "guidance_scale": 7.5,
        "num_outputs": 1,
        "aspect_ratio": "1:1",
        "studio_options": {
          "style": ["cinematic"] // here ascii is one of the style_id as attached the the description above
        }
      }'
      Response Response Example
      {}

      Request

      Header Params
      x-api-key
      string 
      required
      Example:
      Paste your generated api-key here
      Content-Type
      string 
      required
      Example:
      application/json
      Body Params application/json
      prompt
      string 
      required
      guidance_scale
      number 
      required
      num_outputs
      integer 
      required
      aspect_ratio
      string 
      required
      studio_options
      object 
      required
      style
      array[string]
      required
      Examples

      Responses

      🟢200Success
      application/json
      Body
      object {0}
      Modified at 2024-07-30 06:33:43
      Previous
      Old Photo Restoration 4k
      Next
      Upscaler 2k
      Built with