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.

Last updated