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
  • ✨ This endpoint returns answers directly, so you don't need processing_url for ArchiGPT.
  • Message History
  1. Luw.ai API Documentation
  2. Generators

ArchiGPT

Chat with architecture AI. Get advice on feng shui, architectural usability, personalized design recommendations, and more.

POST /v2/generate

Parameters

Name
Type
Description

model

string

Required

prompt

string

Optional A message from you.

history

array

image

string

Optional Input image to attach ArchiGPT.

pid

string

Optional

Persona Id to save knowledge.

lang

string

Optional Language for conversation, leave empty for auto-detect.

processing_url

string

Optional

Curl Example

curl -X POST https://api.luw.ai/v2/generate \
  -H "Authorization: Bearer LUW_API_TOKEN" \
  -d "model=archigpt" \
  -d "prompt=Hello, can you design my room like Pinterest designs?" \
  -d "images=https://example.com/room.jpg"

Response Example

{
    "status":true,
    "message":"Hello from ArchiGPT!",
    "usage":321,
    "left":3997
}

✨ This endpoint returns answers directly, so you don't need processing_url for ArchiGPT.

Message History

You can send your message history in this format to ArchiGPT, so you can make continuous talking session.

var history = [
    {
        id: "29580.13eohb48e", 
        content: "Hello", 
        role: "user"
    },
    {
        id: "32798.53eohae31", 
        content: "Hello! How can I assist you?",
        role: "assistant"
    },
    ...
]

Note: id parameter can be any id as long as unique, like:

Date.now() + Math.random().toString(32)

Also, role parameter can be user or assistant values only.

PreviousSegment AINextMotion AI

Last updated 2 months ago

Value must be archigpt for ArchiGPT AI. Browse other .

Optional A list of messages comprising the conversation so far.

Get process results with same endpoint, alternative to endpoint usage.

Generators
/results
See details