Quick Start
Get up and running with ProductAI in just a few minutes.
Prerequisites
- A ProductAI account (Sign up for free)
- An API key (available in your dashboard)
- A product image to enhance
Step 1: Get your API Key
Navigate to the API Access page in your dashboard to get your API key.
- Log in to your ProductAI dashboard
- Go to API Access
- Copy your API key
Important: Keep your API key secure and never share it publicly.
Step 2: Upload an Asset
Upload a product image to use as the base for AI generation.
curl -X POST "https://api.productai.photo/v1/training-asset" \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "file=@product.jpg"
# Response
{
"data": {
"id": 12345,
"url": "https://storage.productai.photo/assets/...",
"title": "product.jpg"
}
}Step 3: Generate an Image
Use the asset ID to generate an AI-enhanced product image.
curl -X POST "https://api.productai.photo/v1/prompt-edit" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"assetId": 12345,
"prompt": "Product on a clean white studio background with soft shadows"
}'
# Response
{
"jobId": "job_abc123",
"status": "processing"
}Step 4: Get the Result
Poll the job status to get your generated image.
curl -X GET "https://api.productai.photo/v1/jobs/job_abc123" \
-H "Authorization: Bearer YOUR_API_KEY"
# Response (when complete)
{
"id": "job_abc123",
"status": "completed",
"result": {
"url": "https://storage.productai.photo/results/..."
}
}