Skip to main content
Version: 0.3.94

Quick Start

Follow these steps to quickly get started with Seaplane.

  1. Create an account on the Flightdeck and follow the instructions to set up billing. Flightdeck automatically creates your first project and API key once you complete the billing setup.

  2. Install the seaplane SDK. Open a terminal and run pip3 install seaplane. Make sure you have Python 3.10 or higher installed on your machine. We recommend you create a virtual environment to avoid dependency conflicts. Confirm everything is working correctly by running seaplane version. This should return the currently installed Seaplane version.

  3. Create your first application by running seaplane init hello-world. This creates the default Seaplane directory structure and populates the file with a hello world app.

  4. Open the .env file in the root directory of your project. Replace sp-your-api-key with your Seaplane API key which you can get from the Flightdeck

  5. Open a terminal and navigate into hello-world/ directory created in step three. Run poetry install to install the required packages followed by seaplane deploy to deploy your first application.

  6. Your new application is now available at Start a new batch request by calling your endpoint with a POST request.

    curl -X POST -H 'Content-Type: application/json' \
    --header "Authorization: Bearer $(curl --request POST --header "Authorization: Bearer <YOUR-API-KEY>")" \
    -d '{"input" : [{"hello": "world"}]}'
  7. Query the API for the output of your batch request using the request_ID output from step six and the GET request listed below.

    curl -X GET \
    --header "Authorization: Bearer $(curl --request POST --header "Authorization: Bearer <YOUR-API-KEY>")" \<YOUR-BATCH-ID>
  8. If implemented correctly your API returns "hello world", the batch-id and status "completed"

    {"id":"b8329b4b-6ecc-46bf-878a-3cf420a8524a","output":["hello world"],"status":"completed"}