Set SHORTAPI_KEY as an environment variable in your runtime.
The client API handles the API submit protocol. It will handle the request status updates and return the result when the request is completed.
callback_url: optional parameter, the result of the request will be sent to this address.The URL should accept POST requests
The API uses an API Key for authentication. It is recommended you set the SHORTAPI_KEY environment variable in your runtime when possible.
When running code on the client-side (e.g. in a browser, mobile app or GUI applications), make sure to not expose your SHORTAPI_KEY. Instead, use a server-side proxy to make requests to the API.
For long-running requests, such as training jobs or models with slower inference times, it is recommended to check the Queue status and rely on Webhooks instead of blocking while waiting for the result.
The client API provides a convenient way to submit requests to the model.
You can fetch the status of a request to check if it is completed or still in progress.