Luw.ai API
  • Luw.ai API Documentation
    • Introduction
      • Getting Started
      • API Reference
      • Authentication
      • Error Handling
      • Rate Limit and Quotas
      • Get Process Results
      • Uploading Files
    • Generators
      • Interior AI
      • Exterior AI
      • Sketch AI
      • Magic Prompt AI
      • Mood Board AI
      • Magic Wand AI
      • Enhance AI
      • Remove Furniture AI
      • Segment AI
      • ArchiGPT
      • Motion AI
      • Video AI
      • Fluw AI
      • Fluw Vector AI
      • 3DGen AI
      • Pattern AI
      • Change Background AI
    • Knowledge
      • Design Styles
      • Video Styles
      • Interior Types
      • Exterior Types
      • Mood Board Types
      • Magic Wand Materials
      • What is Mask Image?
      • Precision Levels
    • Personas
      • Persona Endpoints
      • Training Endpoints
      • Like a Design
      • Persona Slots
    • Projects API
Powered by GitBook
On this page
  • Endpoint
  • Parameters
  • Example Request
  • Response
  1. Luw.ai API Documentation
  2. Personas

Like a Design

Add a design to your personas liked collection. Save a design to your liked collection by creating a training.

Endpoint

POST /v2/personas/:persona_id/trainings

Parameters

Parameter
Type
Description

image

string

extras

string

Optional. Prompt of the liked design.

Example Request

curl -X POST https://api.luw.ai/v2/personas/123/trainings \
    -H "Authorization: Bearer YOUR_API_TOKEN" \
    -d "image=https://example.com/interior-design.jpg" \
    -d "extras=cozy living room"

Response

{
    "status": true,
    "training_id": 789
}

Note: Using the training endpoint without a slot allows you to save (like) designs to your persona's collection.

PreviousTraining EndpointsNextPersona Slots

Last updated 4 months ago

Required. Image URL of the design you want to like. You can upload it to Luw.ai servers with endpoint.

To remove likes, you can use with training_id returns from Luw.ai API.

/upload
Remove Training Endpoint