cURL
curl --request POST \ --url https://api.eachlabs.ai/v1/prediction/ \ --header 'Content-Type: application/json' \ --header 'X-API-KEY: <api-key>' \ --data '{ "model": "<string>", "version": "<string>", "input": {}, "webhook_url": "<string>", "webhook_secret": "<string>" }'
{ "status": "success", "message": "Prediction created successfully", "predictionID": "abc123-def456-ghi789" }
Create a new model prediction with the specified model and input parameters
curl --request POST \ --url https://api.eachlabs.ai/v1/prediction/ \ --header "X-API-Key: YOUR_API_KEY" \ --header "Content-Type: application/json" \ --data '{ "model": "flux-1-1-pro", "version": "1.0.0", "input": { "prompt": "A beautiful sunset over the ocean with vibrant colors", "aspect_ratio": "16:9" }, "webhook_url": "https://your-app.com/webhook", "webhook_secret": "your-secret-key" }'
Create Model Prediction Request
Prediction created successfully
Was this page helpful?