Create Dataset from HuggingFace

Create a new dataset by importing data from a HuggingFace dataset.

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

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

huggingface_dataset_name string Required

HuggingFace dataset path, e.g. squad or username/dataset-name.

huggingface_dataset_config string Optional

Dataset configuration or subset to import, e.g. plain_text.

huggingface_dataset_split string Optional

Data split to import. Common values: train, test, validation.

name string Optional

Name for the dataset. Defaults to the HuggingFace dataset name.

model_type string Optional

Model type classification for the dataset. Example: GenerativeLLM.

num_rows integer Optional

Maximum number of rows to import. Defaults to all rows.

Response

200 OK
message string
Confirmation message.
dataset_id string
UUID of the created dataset.
dataset_name string
Name of the created dataset.
dataset_model_type string
Model type assigned to the dataset.

Errors

400 Bad Request Optional
Invalid request parameters.
401 Unauthorized Optional
Invalid or missing API credentials.
429 Too Many Requests Optional
Resource limit reached.
500 Internal Server Error Optional
Unexpected server error.
GET /
Authentication
REQUEST
 
RESPONSE