Developer API Documentation

AI Content Generation API

Generate professional property listing titles and descriptions automatically using our powerful AI API

Getting Started

1

Sign Up

Create a free account to access your dashboard

Create Account →
2

Get API Key

Generate your API key from the settings page

Go to Settings →
3

Start Building

Make your first API request and get results

View Examples →

Authentication

All API requests require authentication using your API key in the request header.

API Key Authentication

Include your API key in the X-API-Key header of every request.

Example Header
X-API-Key: your_api_key_here

API Endpoint

POST/api/AIContent/generate-content

Generate AI-powered titles and descriptions for property listings based on uploaded images.

Base URL: https://contentapi.resideprime.com

Request Parameters

ParameterTypeRequiredDescription
ImagesFile[]✓ RequiredProperty images (max 10, 10MB each)
PropertyTypeInteger✓ Required0=Unknown, 1=House, 2=Apartment, 3=Condo, 4=Townhouse, 5=Duplex, 6=Studio, 7=Other
ListingTypeInteger✓ Required0=Sale, 1=Rent, 2=Lease
LocationStringOptionalProperty location (city)

Response Format

Success Response (200 OK)
{
  "Success": true,
  "Title": "Modern 3BR House in Downtown Toronto",
  "Description": "Spacious family home featuring...",
  "ProcessingTime": "13247ms"
}

Code Examples

Node.js (JavaScript)

example.js
const axios = require('axios');
const FormData = require('form-data');
const fs = require('fs');

const form = new FormData();
form.append('PropertyType', '1');
form.append('ListingType', '1');
form.append('Location', 'Toronto, ON');
form.append('Images', fs.createReadStream('./property.jpg'));

axios.post('https://contentapi.resideprime.com/api/AIContent/generate-content', form, {
  headers: {
    'X-API-Key': 'YOUR_API_KEY',
    ...form.getHeaders()
  }
})
.then(response => {
  console.log('Title:', response.data.Title);
  console.log('Description:', response.data.Description);
})
.catch(error => console.error(error));

Python

example.py
import requests

url = 'https://contentapi.resideprime.com/api/AIContent/generate-content'
headers = {'X-API-Key': 'YOUR_API_KEY'}

files = {'Images': open('property.jpg', 'rb')}
data = {
    'PropertyType': '1',
    'ListingType': '1',
    'Location': 'Toronto, ON'
}

response = requests.post(url, headers=headers, files=files, data=data)
result = response.json()

print(f"Title: {result['Title']}")
print(f"Description: {result['Description']}")

cURL

Terminal
curl -X POST 'https://contentapi.resideprime.com/api/AIContent/generate-content' \
  -H 'X-API-Key: YOUR_API_KEY' \
  -F 'PropertyType=1' \
  -F 'ListingType=1' \
  -F 'Location=Toronto, ON' \
  -F 'Images=@property.jpg'

Rate Limits

  • 1,000 requests/day

    Per API key on paid plans

  • 1 requests/second

    Maximum burst rate

Error Codes

  • 400Bad Request - Invalid parameters
  • 401Unauthorized - Invalid API key
  • 429Too Many Requests - Rate limit exceeded
  • 500Internal Server Error - Try again later

Ready to Get Started?

Start building with our AI-powered API today