API RestDatasets
Dernière mise à jour le 20 juillet 2026
Generate and create a dataset from a natural-language prompt using an AI model.
Request body:
- prompt: str (required) — Business description of the desired dataset.
- model: str (optional) — Model name (default: gpt-4o-mini).
- max_columns: int (optional) — Max columns to generate (default: 10).
Example prompt: "Create a dataset for e-commerce orders with columns order_id, customer_email, amount, currency, status, created_at"
Authorization
JwtAuth AuthorizationBearer <token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/datasets/from_prompt" \ -H "Content-Type: application/json" \ -d '{ "prompt": "string", "name": "string" }'{ "dataset_id": "8c4c51f1-f6f3-43bc-b65d-7415e8ef22c0", "name": "string", "message": "string"}Continuer plus loin