GET
/
data
/
generate
import PiClient from 'withpi';

const client = new PiClient({
  apiKey: process.env['WITHPI_API_KEY'], // This is the default and can be omitted
});

async function main() {
  const dataGenerationStatuses = await client.data.generate.list();

  console.log(dataGenerationStatuses);
}

main();
[
  {
    "data": [
      "The quick brown fox jumped over the lazy dog",
      "The lazy dog was jumped over by the quick brown fox"
    ],
    "detailed_status": [
      "Downloading model",
      "Tuning prompt"
    ],
    "job_id": "1234abcd",
    "state": "RUNNING"
  }
]

Authorizations

x-api-key
string
header
required

Query Parameters

state
enum<string> | null

Filter jobs by state

Available options:
QUEUED,
RUNNING,
DONE,
ERROR,
CANCELLED

Response

200
application/json
Successful Response

The response is of type object[].