POST
/
v1
/
datasets
curl --request POST \
  --url https://api.lunary.ai/v1/datasets \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "slug": "<string>",
  "format": "text",
  "prompt": "<string>",
  "withPromptVariation": true
}'
{
  "id": "<string>",
  "slug": "<string>",
  "format": "text",
  "ownerId": "<string>",
  "projectId": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

200 - application/json

Created dataset

The response is of type object.