Create Dataset

Create a new dataset with rows and columns in your organization.

Create Dataset

Create a new dataset with a specified number of rows and columns for evaluation, testing, or data management.

POST https://api.futureagi.com/model-hub/develops/create-dataset-manually/

Authentication

X-Api-Key API Key Required

Your Future AGI API key used to authenticate requests. You can find and manage your API keys in the Dashboard under Settings.

X-Secret-Key Secret Key Required

Your Future AGI secret key, used alongside the API key for request authentication. This is generated when you create an API key in the Dashboard.

Request Body

dataset_name string Required

Name for the dataset. Must be unique within your organization. Maximum 2000 characters.

number_of_rows integer Required

Number of rows to create. Must be between 1 and 100.

number_of_columns integer Required

Number of columns to create. Must be between 1 and 100. Columns are created with default names (Column 1, Column 2, etc.) and text data type.

Example

{
  "dataset_name": "My Evaluation Dataset",
  "number_of_rows": 10,
  "number_of_columns": 3
}

Response

Returns the created dataset details.

message string
Confirmation message. Example: Dataset created successfully.
dataset_id string
UUID of the newly created dataset.
rows_created integer
Number of rows created in the dataset.
columns_created integer
Number of columns created in the dataset.

Example Response

{
  "message": "Dataset created successfully",
  "dataset_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "rows_created": 10,
  "columns_created": 3
}

Responses

200

Dataset created successfully. Returns the dataset ID, rows created, and columns created.

400

Bad request. Possible reasons:

  • Missing dataset name - dataset_name is required.
  • Duplicate name - A dataset with this name already exists in your organization.
  • Invalid row or column count - number_of_rows and number_of_columns must be positive integers between 1 and 100.
  • Invalid number format - The provided values are not valid integers.

401

Authentication credentials were not provided or are invalid.

429

Resource limit reached. Your organization has exceeded the dataset creation or row addition quota.

500

Internal server error. Failed to create the dataset.

Code Examples

import requests

url = "https://api.futureagi.com/model-hub/develops/create-dataset-manually/"
headers = {
    "X-Api-Key": "YOUR_API_KEY",
    "X-Secret-Key": "YOUR_SECRET_KEY",
    "Content-Type": "application/json"
}
data = {
    "dataset_name": "My Evaluation Dataset",
    "number_of_rows": 10,
    "number_of_columns": 3
}

response = requests.post(url, headers=headers, json=data)
print(response.json())
const response = await fetch(
  "https://api.futureagi.com/model-hub/develops/create-dataset-manually/",
  {
    method: "POST",
    headers: {
      "X-Api-Key": "YOUR_API_KEY",
      "X-Secret-Key": "YOUR_SECRET_KEY",
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      dataset_name: "My Evaluation Dataset",
      number_of_rows: 10,
      number_of_columns: 3
    })
  }
);

const data = await response.json();
console.log(data);
curl -X POST "https://api.futureagi.com/model-hub/develops/create-dataset-manually/" \
  -H "X-Api-Key: YOUR_API_KEY" \
  -H "X-Secret-Key: YOUR_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "dataset_name": "My Evaluation Dataset",
    "number_of_rows": 10,
    "number_of_columns": 3
  }'
GET /
Authentication
REQUEST
 
RESPONSE