Path Parameters
endpointId
: The unique identifier of the endpoint to execute
Request Body
The request body should contain aninput
object with your model-specific data:
Example Usage
Text Generation
Image Generation
Response
Returns the execution results:Response Fields
output
: The result from your model (format varies by model type)executionTime
: Time taken to execute in secondsstatus
: Execution status (completed
orfailed
)metadata
: Additional information about the execution
Error Handling
Common error responses:400 Bad Request
404 Not Found
500 Internal Server Error
Best Practices
- Input Validation: Always validate your input data before sending requests
- Error Handling: Implement retry logic for transient failures
- Timeouts: Set appropriate request timeouts (default: 300 seconds)
- Rate Limiting: Respect rate limits to avoid throttling
For long-running tasks, consider using asynchronous execution or streaming responses through our SDK libraries.
Execution costs are charged per request. Monitor your usage to avoid unexpected bills.
Authorizations
API key authentication. Use 'Bearer YOUR_API_KEY' format.
Path Parameters
Unique identifier of the endpoint
Body
application/json
Input data for the endpoint execution
The body is of type object
.
Response
Execution completed successfully
The response is of type object
.