Developer Docs
API Documentation
Integrate FoodPhoto.ai into your workflow with our REST API
Quick Start
Get started with the FoodPhoto.ai API in minutes.
1. Get API Key
Generate an API key from your dashboard settings.
2. Make Request
Send your image with desired preset and options.
3. Get Results
Receive webhook or poll for completed results.
Example Request
curl -X POST https://api.foodphoto.ai/v1/jobs \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"image_url": "https://example.com/my-food-photo.jpg",
"preset": "uber_eats",
"enhancements": {
"lighting": true,
"background_removal": true,
"upscale": 2
},
"callback_url": "https://your-server.com/webhook"
}'The API returns a job ID immediately. Results are delivered via webhook or can be polled.
Endpoints
POST
/api/jobsCreate a new enhancement jobGET
/api/jobs/:idGet job status and resultsGET
/api/jobsList all jobsDELETE
/api/jobs/:idCancel a pending jobPOST
/api/uploadUpload an imageGET
/api/presetsList available presets