Quick Start Guide
This guide walks you through the complete flow — from first-time setup to receiving a finished AI-generated image — in the exact order you should perform each step.
Step 1 — Obtain Your API Key
Once you have your key, store it securely (e.g. in an environment variable — never hard-code it) and include it as x-api-key: <your_api_key> on every request.
Step 2 — Register Your Webhook URL
The platform will POST the result to your URL as soon as a process completes. See Webhook Reference for the full payload shape.
Step 3 — Create a Project
A project groups all orders for a single property. Create one project per property address.
curl --location 'https://api.aihomedesign.com/v3/project' \
--header 'x-api-key: <your_api_key>' \
--header 'Content-Type: application/json' \
--data '{ "address": "123 Maple Street, Austin TX 78701" }'Save the id from the response — this is your project_id.
Step 4 — Upload Your Image & Create an Order
Upload your image and create an order in a single multipart request.
Save from the response:
order_id— identifies this set of input imagesassets[0].id— the asset ID you will reference in the next step
Step 5 — Create a Process
Trigger the AI job by providing the order ID, the tool you want to run, and the widget configuration.
Response:
Save the process_id — use it to match the incoming webhook callback.
The process status begins as pending, moves to processing, and resolves to done or failed.
Step 6 — Receive the Webhook Callback
Once the AI finishes, the platform POSTs the result to your registered webhook URL:
Your server must respond with a 2xx status within 10 seconds.
Polling fallback: If you can't use webhooks, poll
GET /v3/process/<process_id>untilstatusisdoneorfailed. Avoid polling more than once every 5 seconds.
Step 7 — Download the Result
The src field in final_assets is a direct download URL for the generated image:
Flow Diagram
Last updated